Brandy
|
| Posted: 04/30/2003, 10:49 AM |
|
Is there a way to use a username and pword from an NT account to login?
|
|
|
 |
Hamilton
|
| Posted: 04/30/2003, 12:52 PM |
|
'Uses NT Authentication
'Example Call: if session("permission") <> "OK" then Response.Redirect "loginfailure.asp"
strUsername=Replace(ucase(Request.ServerVariables("LOGON_USER")) , "\", "/")
set adsUser = getobject("WinNT://" & strUsername)
for each group in adsUser.groups
GrpList = GrpList & lcase(trim(group.name)) & ";"
next
if instr(1, GrpList ,"SecureNTGroupName") then session("permission") = "OK"
Essentially, you can get the NT Login Name, but I don't know about getting the password.
ads = Active Directory Services
Consequently searching the web for "Active Directory Services" + "authentication" may provide more answers.
|
|
|
 |
|