public interface DirSearch extends Closeable
| Modifier and Type | Method and Description |
|---|---|
List<String> |
executeCustomQuery(String query)
Executes an arbitrary query.
|
String |
findGroupDn(String group)
Finds group's distinguished name.
|
List<String> |
findGroupsForUser(String userDn)
Finds groups that contain the specified user.
|
String |
findUserDn(String user)
Finds user's distinguished name.
|
boolean |
isUserMemberOfGroup(String user,
String groupDn)
Verifies that specified user is a member of specified group.
|
String findUserDn(String user) throws NamingException
user - usernameNamingExceptionString findGroupDn(String group) throws NamingException
group - group name or unique identifierNamingExceptionboolean isUserMemberOfGroup(String user, String groupDn) throws NamingException
user - user id or distinguished namegroupDn - group's DNtrue if the user is a member of the group, false - otherwise.NamingExceptionList<String> findGroupsForUser(String userDn) throws NamingException
userDn - user's distinguished nameNamingExceptionList<String> executeCustomQuery(String query) throws NamingException
query - any queryNamingExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.