Class LdapClient
java.lang.Object
org.camunda.bpm.identity.impl.ldap.LdapClient
This wrapper class should ensure that LDAP exceptions are wrapped as process engine exceptions
to avoid that error details are disclosed in the REST API.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addPaginationControl
(List<Control> listControls, byte[] cookie, Integer pageSize) static void
addSortKey
(SortKey sortKey, List<Control> controls) protected void
protected void
closeLdapCtx
(LdapContext context) protected void
static NamingEnumeration<String>
getAllMembers
(String attributeId, LdapSearchResults searchResults) Control[]
protected static String
getValue
(String attrName, Attributes attributes) protected LdapContext
openContext
(String dn, String password) void
setRequestControls
(List<Control> listControls)
-
Field Details
-
initialContext
-
ldapConfiguration
-
-
Constructor Details
-
LdapClient
-
-
Method Details
-
ensureContextInitialized
protected void ensureContextInitialized() -
openContext
-
openContext
-
closeLdapCtx
protected void closeLdapCtx() -
closeLdapCtx
-
search
-
setRequestControls
-
getResponseControls
-
addPaginationControl
-
addSortKey
-
getValue
-
getAllMembers
public static NamingEnumeration<String> getAllMembers(String attributeId, LdapSearchResults searchResults)
-