Make your own free website on


IBM 483 Tips | SCJEA Exam Tips | About Me | Code Review Tool | SmartApp | JAAS - LDAP | MVC Frameworks | C# - Variations from Java | DotNet Best Practices | Interesting Links
Architect's Corner

click here to download the code

This section uses the sample mentioned in JDK 1.4 JAAS Authentication tutorial. The enhancement is the LDAP authentication integrated with JAAS. Regarding the basics on JAAS, I have attached the links in the resources section. I have modified the SampleLoginModule java (login method) to authenticate with LDAPAuthenticator class which picks up the ldap server properties and authenticates with LDAP user info.
The ldap server properties are specified in the The properties file location is passed as the java parameter with jaas.config.
for example:
java\project\jaas-ldap\sample_jaas.config SampleAcn