com.atlassian.user.impl.ldap.properties
Interface LdapSearchProperties

All Known Implementing Classes:
DefaultLdapSearchProperties

public interface LdapSearchProperties

Properties which map an LDAP data structure to users and groups for searching an LDAP repository.


Method Summary
 String getBaseGroupNamespace()
           
 String getBaseUserNamespace()
           
 String getEmailAttribute()
           
 String getFirstnameAttribute()
           
 String getGroupFilter()
           
 String getGroupnameAttribute()
           
 String getSurnameAttribute()
           
 int getTimeLimitMillis()
           
 String getUserFilter()
           
 String getUsernameAttribute()
           
 boolean isGroupSearchScopeAllDepths()
          Returns true if group searches will scan the entire LDAP tree beneath the DN specified by getBaseGroupNamespace() (sub-tree scope), or false if only direct children of that DN should be scanned (one-level scope).
 boolean isUserSearchScopeAllDepths()
          Returns true if user searches will scan the entire LDAP tree beneath the DN specified by getBaseUserNamespace() (sub-tree scope), or false if only direct children of that DN should be scanned (one-level scope).
 

Method Detail

getBaseUserNamespace

String getBaseUserNamespace()
Returns:
base DN of user tree in LDAP server, for example 'ou=users,dc=atlassian,dc=com'

getUserFilter

String getUserFilter()
Returns:
LDAP search filter for users, for example '(objectClass=inetOrgPerson)'

isUserSearchScopeAllDepths

boolean isUserSearchScopeAllDepths()
Returns true if user searches will scan the entire LDAP tree beneath the DN specified by getBaseUserNamespace() (sub-tree scope), or false if only direct children of that DN should be scanned (one-level scope).

See Also:
SearchControls.SUBTREE_SCOPE, SearchControls.ONELEVEL_SCOPE

getUsernameAttribute

String getUsernameAttribute()
Returns:
attribute name of the user identifier attribute on an LDAP user record, for example 'sAMAccountName'

getFirstnameAttribute

String getFirstnameAttribute()
Returns:
attribute name of the first name attribute on an LDAP user record, for example 'givenName'

getSurnameAttribute

String getSurnameAttribute()
Returns:
attribute name of the surname attribute on an LDAP user record, for example 'sn'

getEmailAttribute

String getEmailAttribute()
Returns:
attribute name of the email attribute on an LDAP user record, for example 'mail'

getBaseGroupNamespace

String getBaseGroupNamespace()
Returns:
base DN of group tree in LDAP server, for example 'ou=groups,dc=atlassian,dc=com'

getGroupFilter

String getGroupFilter()
Returns:
LDAP search filter for group, for example '(objectClass=groupOfNames)'

isGroupSearchScopeAllDepths

boolean isGroupSearchScopeAllDepths()
Returns true if group searches will scan the entire LDAP tree beneath the DN specified by getBaseGroupNamespace() (sub-tree scope), or false if only direct children of that DN should be scanned (one-level scope).

See Also:
SearchControls.SUBTREE_SCOPE, SearchControls.ONELEVEL_SCOPE

getGroupnameAttribute

String getGroupnameAttribute()
Returns:
attribute name of the group identifier attribute on an LDAP group record, for example 'cn'

getTimeLimitMillis

int getTimeLimitMillis()
Returns:
maximum time LDAP connection will wait for search results to return before aborting the search. Measured in milliseconds, where 0 means wait indefinitely.
See Also:
SearchControls.getTimeLimit()


Copyright © 2005-2009 Atlassian Software Systems Pty Ltd. All Rights Reserved.