com.atlassian.crowd.integration.directory.connector
Class ApacheDS

java.lang.Object
  extended by com.atlassian.crowd.integration.directory.connector.SpringLDAPConnector
      extended by com.atlassian.crowd.integration.directory.connector.ApacheDS
All Implemented Interfaces:
LDAPDirectory, RemoteDirectory
Direct Known Subclasses:
ApacheDS15

public class ApacheDS
extends SpringLDAPConnector


Field Summary
 
Fields inherited from class com.atlassian.crowd.integration.directory.connector.SpringLDAPConnector
attributes, DEFAULT_PAGE_SIZE, eventManager, ldapPropertiesMapper, ldapTemplate, logger, nameConverter, searchDN
 
Constructor Summary
ApacheDS()
           
 
Method Summary
protected  java.lang.String encodePassword(java.lang.String unencodedPassword)
          ApacheDS doesn't want passwords encoded before they're passed to the directory.
 java.lang.String getDirectoryType()
          Returns the name of the type of directory.
protected  void getNewPrincipalDirectorySpecificAttributes(RemotePrincipal principal, javax.naming.directory.Attributes attributes)
          ApacheDS in a default install requires the sn to be set before a user can be created.
static java.lang.String getStaticDirectoryType()
           
 void removePrincipalFromGroup(java.lang.String name, java.lang.String unsubscribedGroup)
          ApacheDS 1.0.2 is very very stupid and will remove entire sub-groups because a user is a member of that sub-group.
 
Methods inherited from class com.atlassian.crowd.integration.directory.connector.SpringLDAPConnector
addBlankSnToPrincipalAttributes, addContainerObject, addGroup, addGroupToGroup, addPrincipal, addPrincipalToGroup, addPrincipalToRole, addRole, addSnToPrincipalAttributes, authenticate, buildDN, buildFilter, findAllGroupMembers, findAllRoleMembers, findEntityByDN, findGroup, findGroupByDN, findGroupByName, findGroupByName, findGroupByNameUsingMembershipAttribute, findGroupMemberships, findPrincipal, findPrincipalByDN, findPrincipalByName, findRole, findRoleByDN, findRoleByName, findRoleMemberships, getAttributes, getAuthenticationName, getBaseEnvironmentProperties, getContextSource, getDefaultContainerMemberDN, getDirectorySpecificMemberParser, getEncoder, getEntityContextMapper, getGroupContextMapper, getGroupPopulateMembersType, getGroupRelationshipContextMapper, getID, getLdapPropertiesMapper, getMemberFilter, getNewContainerDirectorySpecificAttributes, getNewPrincipalAttributes, getPassword, getPrincipalContextMapper, getRoleContextMapper, getRolePopulateMembersType, getSearchDN, getSubTreeSearchControl, isDirectGroupMember, isDirectMember, isGroupMember, isGroupMember, isNestedMember, isRoleMember, pageResults, pageSearchResults, pageSearchResults, removeGroup, removeGroupFromGroup, removePrincipal, removePrincipalFromRole, removeRole, searchGroupRelationships, searchGroups, searchGroups, searchGroupsInternal, searchPrincipals, searchPrincipals, searchRoles, setAttributes, setEventManager, setID, setLdapPropertiesMapper, supportsNestedGroups, surroundWithAsterisks, testConnection, throwIREIfRolesDisabled, throwONFEIfRolesDisabled, updateGroup, updatePrincipal, updatePrincipalCredential, updateRole
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApacheDS

public ApacheDS()
Method Detail

getStaticDirectoryType

public static java.lang.String getStaticDirectoryType()

getDirectoryType

public java.lang.String getDirectoryType()
Description copied from interface: RemoteDirectory
Returns the name of the type of directory.

Returns:
directory type.

encodePassword

protected java.lang.String encodePassword(java.lang.String unencodedPassword)
ApacheDS doesn't want passwords encoded before they're passed to the directory. At least, we don't currently support it.

Specified by:
encodePassword in class SpringLDAPConnector
Parameters:
unencodedPassword -
Returns:

getNewPrincipalDirectorySpecificAttributes

protected void getNewPrincipalDirectorySpecificAttributes(RemotePrincipal principal,
                                                          javax.naming.directory.Attributes attributes)
ApacheDS in a default install requires the sn to be set before a user can be created.

Overrides:
getNewPrincipalDirectorySpecificAttributes in class SpringLDAPConnector
Parameters:
principal -
attributes -

removePrincipalFromGroup

public void removePrincipalFromGroup(java.lang.String name,
                                     java.lang.String unsubscribedGroup)
                              throws ObjectNotFoundException
ApacheDS 1.0.2 is very very stupid and will remove entire sub-groups because a user is a member of that sub-group.

Specified by:
removePrincipalFromGroup in interface RemoteDirectory
Overrides:
removePrincipalFromGroup in class SpringLDAPConnector
Parameters:
name -
unsubscribedGroup -
Throws:
java.rmi.RemoteException
ObjectNotFoundException


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.