Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: Authentication: NT
 NT Auto Register with multiple Domains
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

geoffr
Starting Member

16 Posts

Posted - 29 April 2003 :  12:55:47  Show Profile
Hi everyone, I am running 3.4.03 on an NT box with a SQL backend. I have multiple domains with accounts in each domain. My problem is that there are a few users with the same username in different domains.

Domain1\JoeS -->Joe Smith
Domain2\JoeS -->Joe Schneider

Two different guys, but when they autoregister, it lists the first guy as the second guy. I haven't seen the second guy listed as the first guy yet.

I noticed that Line 1078 in inc_func_common.asp is pulling the AUTH_USER parameter from the NT Challenge and goes on to remove the domain information from the strNTUser.


sub NTAuthenticate()
	dim strUser, strNTUser, checkNT
	strNTUser = Request.ServerVariables("AUTH_USER")
	strNTUser = replace(strNTUser, "\", "/")
	if Session(strCookieURL & "userid") = "" then
		strUser = Mid(strNTUser,(instr(1,strNTUser,"/")+1),len(strNTUser))
		Session(strCookieURL & "userid") = strUser
	end if


I would like to keep the domain for the username so the system would recognize that there are 2 different people.

Any help is appreciated.

Kal Corp
Average Member

USA
878 Posts

Posted - 09 May 2003 :  11:21:46  Show Profile  Visit Kal Corp's Homepage
I have not tried it but do you try to keep the Domain in the name ?

whats would happen if you removed
strUser = Mid(strNTUser,(instr(1,strNTUser,"/")+1),len(strNTUser))
???


{VAS}-Kal Corp
VAS Development NetWork - Forums for old Snitz Mods!
Creator of all things {VAS}
Go to Top of Page

geoffr
Starting Member

16 Posts

Posted - 12 May 2003 :  11:59:11  Show Profile
I'll try that. Thanks for the info. What I am really trying to do is have the forum make a distinction between the two accounts. If it recognizes that the two accounts are different, by some other means then that would work fine. I'll try it out.

Edited by - geoffr on 12 May 2003 12:01:42
Go to Top of Page

geoffr
Starting Member

16 Posts

Posted - 12 May 2003 :  19:40:38  Show Profile
Ok, I tried to remove the string and it didn't work. I did get it to work the way I wanted it to work by modifying the line from
strUser = Mid(strNTUser,(instr(1,strNTUser,"/")+1),len(strNTUser))

to
strUser = Mid(strNTUser,(instr(1,strNTUser,"\")+1),len(strNTUser))
This left the line alone without causing any major problems. I know this isn't the best/cleanest way to get this to work, but it seems to be doing what I expect it to do. I'll update this post if it blows up. Thanks for the help.
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 12 May 2003 :  19:57:08  Show Profile
that's kinda weird cuz it should be covered in this statment:

strNTUser = replace(strNTUser, "\", "/")

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

geoffr
Starting Member

16 Posts

Posted - 14 May 2003 :  19:54:56  Show Profile
I found out that the reason why it didn't work is due to this line
Set strNTUserInfo = GetObject("WinNT://"+strNTUser)

If the slash is left as \ then the code above won't work to pull the users info. By switching it to / and leaving it in there, the system does a check for WinNT://Domain/Account.

Removing the line would do WinNT://Domain\Account and that clearly was where the error came from. It seems to be working now...for real this time!

quote:
Originally posted by Nikkol

that's kinda weird cuz it should be covered in this statment:

strNTUser = replace(strNTUser, "\", "/")


Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.12 seconds. Powered By: Snitz Forums 2000 Version 3.4.07