Windows IIS Web Server as DATA SOURCE

 

 

Download the project files from http://sourceforge.net/projects/sfg/ here.

 

First set up the IIS web server :

    * If your running both web server in the same machine, Change IIS web server port number for example 8080

    * Copy app\code\iis-asp\user.asp file into into IIS web directory.

                eg. c:\Inetpub\wwwroot direcoty.

    * Start the IIS web server and point your browser to http://localhost:8080/user.asp you should be able to see login form enter your domain name, user name and password.  This page will give success or failure message.

Now setup the tomcat web server,  follow these steps :-

    * Copy authenticate   direcotry into tomcat webapps directory.

    * rename webapps/authenticate/WEB-INF/web-win32iis.xml file into  webapps/authenticate/WEB-INF/web.xml

 

Now edit the web.xml file :

=====================

<servlet>

<servlet-name>authenticate</servlet-name>
<servlet-class>com.sfg.servlet.AuthenticateServlet</servlet-class>

<init-param>
<param-name>authSource</param-name> 
<param-value>windowsiis</param-value> 
</init-param>

<init-param>
<param-name>domain</param-name>
<param-value>sundaram</param-value> 
</init-param>
<init-param>
<param-name>url</param-name>
<param-value>http://localhost:8080/USER.ASP</param-value> 
</init-param>

<load-on-startup>1</load-on-startup>

</servlet>

=====================

* Replace domain name (sundaram) with your domain name.

* If your URL is different than http://localhost:8080/user.asp change that also.

* Save the changes and start the tomcat web server

* Point your URL to login.jsp, you should be able to see the login page.

 

For more information about ASP refer this link:

Authenticating Web Users Transparently against NTLM with ASP Script and ADSI