Make your own free website on Tripod.com

Home

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
JAAS - LDAP

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 ldap.properties. The properties file location is passed as the java parameter with jaas.config.
 
for example:
java -Djava.security.auth.login.config=D:\project\jaas-ldap\sample_jaas.config   -Dldap.properties.config=ldap.properties SampleAcn