| Modifier and Type | Method and Description |
|---|---|
static LdapService |
LdapService.getInstance(String url,
String principal,
String password)
Static factory method for
LdapServices configured with one set of credentials to
use for all operations. |
static LdapService |
LdapService.getInstanceAnon(String url)
Static factory method for unauthenticated
LdapServices. |
static LdapService |
LdapService.getInstanceExplicitlyConfigured(String url,
String generalPrincipal,
String generalPassword,
String groupPrincipal,
String groupPassword,
String configPrincipal,
String configPassword,
int maxPageSize,
int maxRetries)
Static factory method for
LdapServices configured with one set of credentials for
general operations, a separate set for group operations, and a third set for config
operations (e.g. |
static LdapService |
LdapService.getInstanceGroup(String url,
String generalPrincipal,
String generalPassword,
String groupPrincipal,
String groupPassword)
Static factory method for
LdapServices configured with one set of credentials for
general operations and a separate set for group operations. |
static LdapService |
LdapService.getInstanceGroupConfig(String url,
String generalPrincipal,
String generalPassword,
String groupPrincipal,
String groupPassword,
String configPrincipal,
String configPassword)
Static factory method for
LdapServices configured with one set of credentials for
general operations, a separate set for group operations, and a third set for config
operations (e.g. |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
LdapUtils.addGroupMember(LdapService ldapSvc,
String uid,
String groupCn)
A light-weight method to add a member to a
groupOfNames without reading the whole
thing in first. |
static boolean |
LdapUtils.addGroupOwner(LdapService ldapSvc,
String uid,
String groupCn)
A light-weight method to add an owner to a
groupOfNames without reading the whole
thing in first. |
static boolean |
LdapUtils.addPosixGroupMember(LdapService ldapSvc,
String uid,
String groupCn)
A light-weight method to add a member to a
posixGroup without reading the whole
thing in first. |
T |
ResultHandler.handle(SearchResult result,
LdapService ldapSvc)
Handles a single result from an LDAP search.
|
static boolean |
LdapUtils.isGroupMember(LdapService ldapSvc,
String groupCn,
String userUid)
Tests to see if a particular user is a member of a particular LDAP
groupOfNames. |
static boolean |
LdapUtils.isGroupOwner(LdapService ldapSvc,
String groupCn,
String userUid)
Tests to see if a particular user is an owner of a particular LDAP
groupOfNames. |
static String |
LdapUtils.personIdToUid(LdapService ldapSvc,
int personId)
Converts a PersonId to a uid by querying the LDAP.
|
static boolean |
LdapUtils.removeGroupMember(LdapService ldapSvc,
String uid,
String groupCn)
A light-weight method to remove a member from a
groupOfNames without reading the
whole thing in first. |
static boolean |
LdapUtils.removeGroupOwner(LdapService ldapSvc,
String uid,
String groupCn)
A light-weight method to remove an owner from a
groupOfNames without reading the
whole thing in first. |
static boolean |
LdapUtils.removePosixGroupMember(LdapService ldapSvc,
String uid,
String groupCn)
A light-weight method to remove a member from a
posixGroup without reading the
whole thing in first. |
static List<GroupRecord> |
LdapUtils.searchGroupRecords(LdapService ldapSvc,
String filter)
Searches for groups (
groupOfNames or posixGroup) using the supplied filter,
and returns a fully-fledged GroupRecord object for each one found. |
static List<GroupRecord> |
LdapUtils.searchGroupRecords(LdapService ldapSvc,
String filter,
int searchScope)
Searches for groups (
groupOfNames or posixGroup) using the supplied filter
and search scope, and returns a fully-fledged GroupRecord object for each one found. |
static List<PersonRecord> |
LdapUtils.searchPersonRecords(LdapService ldapSvc,
String filter)
Searches for people using the supplied filter, and returns a fully-fledged
PersonRecord object for each one found.
|
static Map<RoleRecord,PersonRecord> |
LdapUtils.searchRoleRecords(LdapService ldapSvc,
String filter)
Searches for roles using the supplied filter and returns a RoleRecord object,
along with the fully-fledged PersonRecord object containing it, for each one
found.
|
static List<UnitRecord> |
LdapUtils.searchUnitRecords(LdapService ldapSvc,
String filter)
Searches for units using the supplied filter, and returns a fully-fledged
UnitRecord object for each one found.
|
static int |
LdapUtils.uidToPersonId(LdapService ldapSvc,
String uid)
Converts a uid to a PersonId by querying the LDAP.
|
static boolean |
LdapUtils.usernameExists(LdapService ldapSvc,
String uid)
Queries the LDAP to check if a username exists.
|
Copyright © 2018. All rights reserved.