Class LDAPSearchService
java.lang.Object
com.peterphi.usermanager.guice.authentication.ldap.LDAPSearchService
-
Field Summary
Modifier and TypeFieldDescriptionFormatted with 1 argument, the usernameFormatted with 1 argument, the user's DN.The find pattern to use on group DNs.The replacement pattern to use after the find pattern is executed - e.g.long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionexecuteLdapSearch
(DirContext ldapContext, SearchControls search, String searchFilter)
-
Field Details
-
domain
-
ldapEndpoint
-
ldapAuthenticationType
-
ldapReadTimeout
@Inject(optional=true) public long ldapReadTimeout -
ldapSearchBase
-
ldapFilter
Formatted with 1 argument, the username -
ldapGroupFilter
Formatted with 1 argument, the user's DN. Searches for the groups a user is a member of (directly or indirectly) -
ldapGroupFind
The find pattern to use on group DNs. e.g.(?i)^cn=([^,]+),
-
ldapGroupReplace
The replacement pattern to use after the find pattern is executed - e.g.$1
for the first capture group -
groupUserManagerAdmin
-
groupAdmin
-
groupUser
-
groupFrameworkAdmin
-
groupFrameworkInfo
-
-
Constructor Details
-
LDAPSearchService
public LDAPSearchService()
-
-
Method Details
-
parseUser
-
search
- Parameters:
authUser
-password
-searchFor
-- Returns:
- the LDAP user record - or null if the user did not meet the ldap search criteria
-
search
-
executeLdapSearch
public NamingEnumeration<SearchResult> executeLdapSearch(DirContext ldapContext, SearchControls search, String searchFilter) throws LDAPSearchException - Throws:
LDAPSearchException
-