Download presentation
Presentation is loading. Please wait.
1
Custom Authentication Services Jim McCusker (Yale University) Arch/VCDE F2F October 29, 2008
2
Agenda Context (Single Sign On at Yale) JAAS and CSM A new LDAPLoginModule HOWTO Future Directions
3
Context (Single Sign On at Yale) Yale uses CAS (Central Authentication Service). http://www.ja-sig.org/products/cas/ CAS uses Kerberos. Kerberos doesn’t have names or email addresses (which AuthenticationService needs). Yale has an LDAP phone book with usernames, names, and email addresses. We have the technology. We have the information.
4
JAAS and CSM CSM (Common Security Module) uses JAAS (Java Authentication and Authorization Service) JAAS supports both LDAP and Kerberos for authentication. Shouldn’t this just work?
5
JAAS and CSM (cont.) No, there are some serious obstacles: CSM uses it’s own Login Module implementation for LDAP. The Login Module will fail if it can’t get username and password information from the LDAP server. The Kerberos Login Module only provides username information and authenticity, and doesn’t know about the custom CSM attributes of LN, FN, email.
6
A New LDAPLoginModule Code Change! Modified LDAPLoginModule (actually LDAPHelper) to allow configuration to just provide user information. This leaves the authentication task to Kerberos or PAM or something else. Deployed successfully and was able to authenticate using the service. Download the software at http://krauthammerlab.med.yale.edu/cabig
7
HOWTO (On Linux, at least) Set up a vanilla AuthenticationService using LDAP Download distribution http://krauthammerlab.med.yale.edu/wp-content/files/csmjaas- 1.0.ziphttp://krauthammerlab.med.yale.edu/wp-content/files/csmjaas- 1.0.zip Add csmjaas-1.0.jar to [tomcat-dir]/webapps/wsrf/WEB- INF/lib (cont.)
8
HOWTO (On Linux, at least) (cont.) Install the kerberos libraries and (on Linux) make /etc/krb5.conf look like: [libdefaults] default_realm = NET.YALE.EDU NET.YALE.EDU = { kdc = kserv2.net.yale.edu admin_server = kserv1.net.yale.edu } (cont.)
9
HOWTO (On Linux, at least) (cont.) Make ~/.java.login.config look like csmjaas- 1.0/java.login.config: AUTHNSVC{ com.sun.security.auth.module.Krb5LoginModule required; edu.yale.med.krauthammerlab.csm.LDAPLoginModule required ldapHost="ldap://directory.yale.edu:389" ldapInfoOnly="true" ldapSearchableBase="o=yale.edu" ldapUserIdLabel="uid" USER_FIRST_NAME="givenName" USER_LAST_NAME="sn" USER_EMAIL_ID="mail"; }; (cont.)
10
HOWTO (On Linux, at least) (cont.) Ask Steve Langella really nicely to add you to the training grid.
11
Future Directions Integrate the patch back into CSM. Enable Kerberos extension in installer. Use patch as an example on how to create a custom AuthenticationService LoginModule.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.