Class SearchDN
java.lang.Object
com.atlassian.crowd.directory.ldap.name.SearchDN
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBase()
Returns a Name representing the DN beneath which all objects should reside.getGroup()
Returns a Name representing the DN to anchor the search for groups.Returns a Name representing the DN beneath which all objects should reside OR the blank root DSE if none is specified.getRole()
Deprecated.protected CrowdLdapName
getSearchDN
(String propertyName) Given an additional DN (e.g.getUser()
Returns a Name representing the DN to search beneath for users.
-
Field Details
-
logger
protected final org.slf4j.Logger logger
-
-
Constructor Details
-
SearchDN
-
-
Method Details
-
getGroup
Returns a Name representing the DN to anchor the search for groups. Reads directory configuration to build the dn. -
getRole
Deprecated.Returns a Name representing the DN form which to search for roles. Reads directory configuration to build the dn. -
getUser
Returns a Name representing the DN to search beneath for users. Reads directory configuration to build the dn. -
getBase
Returns a Name representing the DN beneath which all objects should reside.- Throws:
LdapNameFormatException
-
getNamingContext
Returns a Name representing the DN beneath which all objects should reside OR the blank root DSE if none is specified. -
getSearchDN
Given an additional DN (e.g. "ou=Groups") and a base search DN (e.g. "dc=example, dc=org") builds a full search DN "ou=Groups, dc=example, dc=org". Handles if there's no additional DN specified.- Throws:
LdapNameFormatException
-