Ron
Posts: 26
|
Posted: 01/23/2004, 3:45 AM |
|
What are the steps to implement Windows authenication for a intranet only CodeCharge only web site. I don't want a login page, but I still want to use the CheckSecurity function.
|
|
|
Ron
Posts: 26
|
Posted: 01/23/2004, 6:25 AM |
|
I'm going to get things started here:
Step 1. Setup IIS. Setup virtual directory as an application. Go to properties and check the integrated windows authenication box in the Directory Security tab, Edit authenication control.
Step 2. Not sure, do you uncheck "Use Authenication" in the Site Properties?
Step 3. In CC, create a session variable to get the network id using the following:
'--- My Open Any Page Event Begin ----------------------------------------------
Dim intPos
If Session("NetID") = "" Then
intPos = InStr(Request.ServerVariables("LOGON_USER"), "\") + 1
Session("NetID") = UCase(Mid(Request.ServerVariables("LOGON_USER"), intPos))
End If
'--- My Open Any Page Event End ------------------------------------------------
Step 4. Modify the CheckSecurity function to use Session("NetID").
Step 5. Do you replace the existing CheckSecurity function in Common.asp or do you just add it to the Global Fuctions??
Step 6. Do you put the new CheckSecurity in the Custom Securty event of each page?
So far I've got the windows authenication working, but the CheckSecurity function is somehow being called before the forms open event which is causing problems opening a page from an email. (thanks Edd) I just don't know about steps 2, 5 and 6.
|
|
|
CameronF
Posts: 23
|
Posted: 03/16/2004, 8:26 AM |
|
If I find anything i'll let you know... i'm interested as well...
|
|
|
Lavdrim
|
Posted: 03/28/2004, 11:31 AM |
|
I like to change my password
|
|
|
|