CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge -> Programming

 Steps to implement Windows Authentication in CodeCharge?

Print topic Send  topic

Author Message
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.
View profile  Send private message
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.
View profile  Send private message
CameronF

Posts: 23
Posted: 03/16/2004, 8:26 AM

If I find anything i'll let you know... i'm interested as well...
View profile  Send private message
Lavdrim
Posted: 03/28/2004, 11:31 AM

I like to change my password

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.