ReportingAnalyst
MIS
Hi,
I have an ASP page which uses basic authentication for the users. The users enters their NT user id and the password to enter to this ASP page. There is no need for them to enter their domain in which they exist.
In my database, the employee table has the NT ID stored. So the script checks for the userid that that the users entered against the DB and then logs them in accordingly. If not, then I display the NT ID they entered and then show that what they entered does not exist in the database.
Certain users enter only the NT ID but still when I do a
, I see that even the domain name shows up like
domain_name\NTID
Where does this domain name come from when the users enter only the NTID?
Secondly it looks like I need to add a small strip function to check if there is something before the NTID, then strip that off and then check the NTID against the DB.
Any ideas on the 1st issue.
Thanks.
I have an ASP page which uses basic authentication for the users. The users enters their NT user id and the password to enter to this ASP page. There is no need for them to enter their domain in which they exist.
In my database, the employee table has the NT ID stored. So the script checks for the userid that that the users entered against the DB and then logs them in accordingly. If not, then I display the NT ID they entered and then show that what they entered does not exist in the database.
Certain users enter only the NT ID but still when I do a
Code:
strNetworkID = Request.ServerVariables("LOGON_USER")
domain_name\NTID
Where does this domain name come from when the users enter only the NTID?
Secondly it looks like I need to add a small strip function to check if there is something before the NTID, then strip that off and then check the NTID against the DB.
Any ideas on the 1st issue.
Thanks.