com.sas.services.security.login
Class LdapLoginModule
java.lang.Object
|
+--com.sas.services.security.login.LdapLoginModule
- All Implemented Interfaces:
- public class LdapLoginModule
- extends Object
- implements javax.security.auth.spi.LoginModule
This is a JAAS login module for authenticating a user
with an LDAP server using the simple bind operation.
The LdapLoginModule uses the follwing options:
- host - The IP host name where the server is running
- port - The port the server is listening on
- base - The search base to use when searching for a uid
- protocol - If present, must be "ldap"
If the principal name is passed in as a DN, it will be
used to attempt the bind with the server. Otherwise, if the
privileged user was defined in the configuration, it will be
used to look up the UID in the directory to get the DN to
bind with.
If the authentication is successful, the commit operation
will put the contents of the user entry into the global
profile of the user's context. The 'cn' attribute, if
present will be used to set the name in the user context.
This module should not be used directly by client code.
- Since:
- 1.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LdapLoginModule
public LdapLoginModule()
initialize
public void initialize(Subject subject,
CallbackHandler callbackHandler,
Map sharedState,
Map options)
- initialize the module
- Specified by:
initialize in interface LoginModule
login
public boolean login()
throws LoginException
- Specified by:
login in interface LoginModule
logout
public boolean logout()
throws LoginException
- Specified by:
logout in interface LoginModule
commit
public boolean commit()
throws LoginException
- Specified by:
commit in interface LoginModule
abort
public boolean abort()
throws LoginException
- Specified by:
abort in interface LoginModule
Copyright © 2006 SAS Institute Inc. All Rights Reserved.
javadoc generated Fri, 10 Feb 2006 17:29:02