com.retek.rsm.domain.security.dao.impl.user
Class UserDaoLDAPImpl

java.lang.Object
  extended bycom.retek.rsm.domain.security.dao.impl.user.UserDaoLDAPImpl
All Implemented Interfaces:
com.retek.platform.persistence.Dao, UserDao

public class UserDaoLDAPImpl
extends java.lang.Object
implements UserDao


Field Summary
protected  org.apache.commons.logging.Log LOG
           
 
Constructor Summary
UserDaoLDAPImpl()
           
 
Method Summary
 void authenticate(java.lang.String userName, java.lang.String password)
          Validates the userName and password with the ldap server specified in the security.properties file.
 java.util.Set findUsers(UserSearchCriteria criteria)
          If the customer's ldap server only keeps a full name, the ldap.firstname.attrname should be left blank in the properties file and the results of the ldap.lastname.attrname will be returned as the user's full name.
 boolean isUserNameValid(java.lang.String userName)
           
 com.retek.platform.util.type.security.User readUser(com.retek.platform.bo.IdentifiableReference reference)
           
 com.retek.platform.util.type.security.User readUser(java.lang.String userName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected org.apache.commons.logging.Log LOG
Constructor Detail

UserDaoLDAPImpl

public UserDaoLDAPImpl()
Method Detail

isUserNameValid

public boolean isUserNameValid(java.lang.String userName)
Specified by:
isUserNameValid in interface UserDao

readUser

public com.retek.platform.util.type.security.User readUser(com.retek.platform.bo.IdentifiableReference reference)
Specified by:
readUser in interface UserDao

readUser

public com.retek.platform.util.type.security.User readUser(java.lang.String userName)
Specified by:
readUser in interface UserDao

findUsers

public java.util.Set findUsers(UserSearchCriteria criteria)
If the customer's ldap server only keeps a full name, the ldap.firstname.attrname should be left blank in the properties file and the results of the ldap.lastname.attrname will be returned as the user's full name.

Specified by:
findUsers in interface UserDao

authenticate

public void authenticate(java.lang.String userName,
                         java.lang.String password)
                  throws javax.security.auth.login.FailedLoginException,
                         javax.security.auth.login.LoginException
Validates the userName and password with the ldap server specified in the security.properties file. This is a two step process where the distinguished name(DN) of the userName is located in the ldap server and then the DN is used with the password to authenticate the user.

Specified by:
authenticate in interface UserDao
Throws:
javax.security.auth.login.FailedLoginException
javax.security.auth.login.LoginException