|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.authentication.Authentication
org.silverpeas.authentication.AuthenticationLDAP
public class AuthenticationLDAP
This class performs the LDAP authentication
Field Summary | |
---|---|
protected LdapConfiguration |
configuration
|
protected String |
ldapImpl
|
protected boolean |
m_MustAlertPasswordExpiration
|
protected int |
m_PwdExpirationReminderDelay
|
protected int |
m_PwdLastSetFieldFormat
|
protected String |
m_PwdLastSetFieldName
|
protected int |
m_PwdMaxAge
|
protected String |
m_UserBaseDN
|
protected String |
m_UserLoginFieldName
|
Fields inherited from class org.silverpeas.authentication.Authentication |
---|
enabled, ENC_TYPE_CLEAR, ENC_TYPE_MD5, ENC_TYPE_UNIX, module, PASSWORD_CHANGE_ALLOWED, PASSWORD_IS_ABOUT_TO_EXPIRE |
Constructor Summary | |
---|---|
AuthenticationLDAP()
|
Method Summary | |
---|---|
protected void |
closeConnection(AuthenticationConnection connection)
Closes the connection that was previously opened with the server of the remote authentication service. |
protected void |
doAuthentication(AuthenticationConnection connection,
AuthenticationCredential credential)
Does the authentication by using the specified connection with the remote server and with with the specified user credential. |
protected void |
doChangePassword(AuthenticationConnection connection,
AuthenticationCredential credential,
String newPassword)
Does the password change by using the specified connection with the remote server and with with the specified user credential and new password. |
protected void |
doResetPassword(AuthenticationConnection connection,
String login,
String newPassword)
Does the password reset by using the specified connection with the remote server the user login for which the password has to be reset and a new password. |
void |
loadProperties(ResourceLocator settings)
Loads the specified properties to set the communication information with the authentication service. |
protected AuthenticationConnection<com.novell.ldap.LDAPConnection> |
openConnection()
Opens a connection with a server of the remote authentication service. |
Methods inherited from class org.silverpeas.authentication.Authentication |
---|
authenticate, changePassword, getServerName, init, isEnabled, resetPassword |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean m_MustAlertPasswordExpiration
protected String m_PwdLastSetFieldName
protected int m_PwdLastSetFieldFormat
protected int m_PwdMaxAge
protected int m_PwdExpirationReminderDelay
protected String ldapImpl
protected String m_UserBaseDN
protected String m_UserLoginFieldName
protected LdapConfiguration configuration
Constructor Detail |
---|
public AuthenticationLDAP()
Method Detail |
---|
public void loadProperties(ResourceLocator settings)
Authentication
loadProperties
in class Authentication
settings
- the communication settings.protected AuthenticationConnection<com.novell.ldap.LDAPConnection> openConnection() throws AuthenticationException
Authentication
openConnection
in class Authentication
AuthenticationException
- if no connection can be established with a server of the remote
authentication service.protected void closeConnection(AuthenticationConnection connection) throws AuthenticationException
Authentication
closeConnection
in class Authentication
connection
- the connection with a remote authentication server.
AuthenticationException
- if no connection was previously opened or if the connection
cannot be closed for any reason.protected void doAuthentication(AuthenticationConnection connection, AuthenticationCredential credential) throws AuthenticationException
Authentication
doAuthentication
in class Authentication
connection
- the connection with a remote authentication server.credential
- the credential to use to authenticate the user.
AuthenticationException
- if an error occurs while authenticating the user.protected void doChangePassword(AuthenticationConnection connection, AuthenticationCredential credential, String newPassword) throws AuthenticationException
Authentication
doChangePassword
in class Authentication
connection
- the connection with a remote authentication server.credential
- the credential to use to authenticate the user.newPassword
- the new password that will replace the one in the user credential.
AuthenticationException
- if an error occurs while changing the user password.protected void doResetPassword(AuthenticationConnection connection, String login, String newPassword) throws AuthenticationException
Authentication
doResetPassword
in class Authentication
connection
- the connection with a remote authentication server.login
- the login of the user for which the password has to be reset.newPassword
- the new password with which the user password will be reset.
AuthenticationException
- if an error occurs while resetting the user password.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |