Download the project files from http://sourceforge.net/projects/sfg/ here.
To setup the tomcat webserver do the following steps
<!-- Sample Application Init Servlet -->
<servlet>
<servlet-name>authenticate</servlet-name>
<servlet-class>com.sfg.servlet.AuthenticateServlet</servlet-class>
<!-- Application servlet parameter for Data Source -->
<init-param>
<param-name>authSource</param-name>
<param-value>windows</param-value>
</init-param>
<!-- if DataSource is Windows specify the Server Name -->
<init-param>
<param-name>server</param-name>
<param-value>domainserver</param-value>
</init-param>
</servlet>
Now start the web server and point your URL to login.jsp.
Replace domainserver name with you server name
Note :
The Windows user running web server must have the SE_TCB_NAME privilege.
Never add the SE_TCB_NAME privilege to either the IUSR_MACHINE or IWAM_MACHINE accounts, and never add either of them to the Administrators group. It would expose serious security problems.
Action:
To grant the web user account right to "Act as part
of the operating system":
Instructions for Windows NT
Operating System:
1. Open "User
Manager for Domains" ("User Manager" if you are using a Workgroup
network).
2. Select User Rights from the Policies Menu.
3.
Enable the "Show advance user rights" checkbox.
4. Select "Act as part of the
Operating System" from the dropdown list of rights.
5. Add the webserver
user
Instructions for Windows 2000
Operating System:
1. Start
2. Settings
3. Control Panel
4.
Administrative Tools
5. Local Security Settings
6. User Rights
Assign
7. Double-click on "Act As Part of the Operating System"
8. Click
"Add"
9. Select
webserver user account from the list
10. Click
"OK"
Reboot the server. The server must be rebooted for these changes to take effect.