StormyMonday
|
| Posted: 05/06/2003, 12:05 PM |
|
Hi,
I wanna build a CC app with an user based security.
Because the application only will work on the internal network (WINDOWS 2000) every user can be retreived with his Windows network userame.
For this reason, I do not have to build an additional login-page as Codecharge is offering.
Question; How can I use this NTLM-based loginname for secure access to Codecharge pages ? I wanna make use of the restricted property of each page, because I do not want to invent the wheel for a second time.
Any ideas how to reach this goal ?
Thanks a lot.
|
|
|
 |
Hamilton
|
| Posted: 05/07/2003, 6:20 AM |
|
'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.
|
|
|
 |
|