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
- usernameNamingException
String findGroupDn(String group) throws NamingException
group
- group name or unique identifierNamingException
boolean 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.NamingException
List<String> findGroupsForUser(String userDn) throws NamingException
userDn
- user's distinguished nameNamingException
List<String> executeCustomQuery(String query) throws NamingException
query
- any queryNamingException
Copyright © 2021 The Apache Software Foundation. All rights reserved.