I have got a problem with nt authentication with the new Snitz ASP code - the old verision (3x) had no problems.
After a bit of investigation I notice that the mlev value is 0 (it should be 4 if it new that it was me and thereofore an admin.). Other interesting values returned are chkAccountReg=1, strAutoLogon=0, strLoginStatus= blank.
I would be grateful with some kind of direction as it's confusing me greatly.
Do you know of any differences between the old inc_functions.asp and the inc_func_common.asp files are? I'm assuming the problem lies within here. Reading up on this it seems that no significant changes have been made with the functions used for authentication. Maybe there's a rogue new variable name somewhere thati've missed.
Any further help would be much appreciated - thanks.
I really don't know. Maybe compare the two file versions... If you've never used it, try Beyond Compare, from http://www.scootersoftware.com They have a trial version that can be used for 30 effective days of use.
There are quite a few differences between the two so pretty difficult to find an obviosu difference. However, I think i'm closer to working out this perculiar authentication issue though.
1) Existing user profiles setup on the old snitz forum are not picked up by the new snitz forum. (either admin or normal user). 2) If I register a new account in the new forum (normal user) the user profile is again not picked up ("you are logge on as...").
Now for the strange bit.
3) If I upgrade the new profile to an admin user then the user profile is picked up.
For the new snitz code to work you need to ensure that the password field in the members table is not blank. All the memeber records need to be updated with a SQL script, inserting any password in the blank fields. The code is simply checking if a password exists - if it does authentication issues resolved and you are automatically logged in.