I have been looking at replies to this sort of question but they go into a lot of detail and I am hoping that they contain a lot of stuff that I don't need as they are a bit over my head.
Basically I want my ASP page to retrieve the domain name of the Windows logon. Then if the domain is X then I can run some ASP so that the user can only see the appropriate records in a SQL Server table.
I was thinking along the lines of:
strNetworkID = Request.ServerVariables("LOGON_USER")
Is this correct way to get windows logon info? Then I need to be able to pull out the name of the domain from strNetworkID. At moment I get nothing so not sure what form this string will take. Is this were I need to turn off the anonymous access?
I will then use the domain name to limit the records the user sees
set rs=objonnection.execute("SELECT * FROM myTable WHERE myDomain=X")
Can anyone advise? Maybe I am over simplyfying!
Basically I want my ASP page to retrieve the domain name of the Windows logon. Then if the domain is X then I can run some ASP so that the user can only see the appropriate records in a SQL Server table.
I was thinking along the lines of:
strNetworkID = Request.ServerVariables("LOGON_USER")
Is this correct way to get windows logon info? Then I need to be able to pull out the name of the domain from strNetworkID. At moment I get nothing so not sure what form this string will take. Is this were I need to turn off the anonymous access?
I will then use the domain name to limit the records the user sees
set rs=objonnection.execute("SELECT * FROM myTable WHERE myDomain=X")
Can anyone advise? Maybe I am over simplyfying!