fix get guest with ldap
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1430636 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
710b4632d7
commit
44232d70f6
|
@ -186,11 +186,6 @@ public class LdapUserManager
|
|||
throw new UserNotFoundException( "Unable to find user based on null username." );
|
||||
}
|
||||
|
||||
if ( GUEST_USERNAME.equals( username ) )
|
||||
{
|
||||
return getGuestUser();
|
||||
}
|
||||
|
||||
// REDBACK-289/MRM-1488
|
||||
// look for the user in the cache first
|
||||
LdapUser ldapUser = ldapCacheService.getUser( username );
|
||||
|
@ -239,16 +234,6 @@ public class LdapUserManager
|
|||
}
|
||||
}
|
||||
|
||||
public User getGuestUser()
|
||||
throws UserNotFoundException
|
||||
{
|
||||
if ( guestUser == null )
|
||||
{
|
||||
throw new UserNotFoundException( "Guest user doesn't exist." );
|
||||
}
|
||||
return guestUser;
|
||||
}
|
||||
|
||||
public List<User> findUsersByEmailKey( String emailKey, boolean orderAscending )
|
||||
throws UserManagerException
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue