com.atlassian.crowd.directory
Class AppleOpenDirectory
java.lang.Object
com.atlassian.crowd.directory.SpringLDAPConnector
com.atlassian.crowd.directory.RFC2307Directory
com.atlassian.crowd.directory.Rfc2307
com.atlassian.crowd.directory.AppleOpenDirectory
- All Implemented Interfaces:
- LDAPDirectory, RemoteDirectory, Attributes
public class AppleOpenDirectory
- extends Rfc2307
Provides limited support for Apple's Open Directory. It's a customised version of OpenLDAP, using an RFC230-alike
schema.
It has some quirks, and is not particularly well documented. We've been unable to determine exactly how to change
user passwords.
| Methods inherited from class com.atlassian.crowd.directory.Rfc2307 |
addGroup, addGroupToGroup, addUser, addUserToGroup, encodePassword, getNewUserDirectorySpecificAttributes, removeGroup, removeGroupFromGroup, removeUser, removeUserFromGroup, renameGroup, renameUser, updateGroup, updateUser |
| Methods inherited from class com.atlassian.crowd.directory.SpringLDAPConnector |
addDefaultSnToUserAttributes, addDefaultValueToUserAttributesForAttribute, asLdapGroupName, asLdapName, asLdapUserName, authenticate, findEntityByDN, findEntityByDN, findGroupByName, findGroupByNameAndType, findGroupWithAttributesByName, findUserByName, findUserWithAttributesByName, getAttributeAsBoolean, getAttributeAsLong, getAuthoritativeDirectory, getContextSource, getDirectoryId, getEncoder, getGroupContextMapper, getInitialGroupMemberDN, getKeys, getLdapPropertiesMapper, getMemberships, getNewGroupAttributes, getNewGroupDirectorySpecificAttributes, getNewUserAttributes, getSearchDN, getStandardisedDN, getSubTreeSearchControl, getUserContextMapper, getValue, getValues, isEmpty, isRolesDisabled, pageSearchResults, postprocessGroups, removeGroupAttributes, removeUserAttributes, searchEntities, searchEntitiesWithRequestControls, searchGroupObjects, searchGroupObjectsOfSpecifiedGroupType, searchGroupRelationships, searchGroups, searchUserObjects, searchUsers, setAttributes, setDirectoryId, storeGroupAttributes, storeUserAttributes, supportsInactiveAccounts, testConnection, typedEntityNotFoundException |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AppleOpenDirectory
public AppleOpenDirectory(LDAPQueryTranslater ldapQueryTranslater,
com.atlassian.event.api.EventPublisher eventPublisher,
InstanceFactory instanceFactory,
PasswordEncoderFactory passwordEncoderFactory)
getStaticDirectoryType
public static java.lang.String getStaticDirectoryType()
getDescriptiveName
public java.lang.String getDescriptiveName()
- Specified by:
getDescriptiveName in interface RemoteDirectory- Overrides:
getDescriptiveName in class Rfc2307
getBaseEnvironmentProperties
protected java.util.Map<java.lang.String,java.lang.String> getBaseEnvironmentProperties()
- Returns the properties used to set up the Ldap ContextSource. Overridden to make sure CRAM-MD5 is
used for authentication - for security reasons, Open Directory does not support Simple Authentication.
- Overrides:
getBaseEnvironmentProperties in class SpringLDAPConnector
- Returns:
updateUserCredential
public void updateUserCredential(java.lang.String name,
PasswordCredential credential)
throws UserNotFoundException,
InvalidCredentialException
- We don't support changing passwords in Open Directory, mainly because we can't figure out how.
- Specified by:
updateUserCredential in interface RemoteDirectory- Overrides:
updateUserCredential in class SpringLDAPConnector
- Throws:
UserNotFoundException
InvalidCredentialException
Copyright © 2012 Atlassian. All Rights Reserved.