public class Rfc2307 extends RFC2307Directory
attributes, contextSource, contextSourceTransactionManager, DEFAULT_PAGE_SIZE, eventPublisher, ldapPropertiesMapper, ldapQueryTranslater, ldapTemplate, nameConverter, searchDN| Constructor and Description |
|---|
Rfc2307(LDAPQueryTranslater ldapQueryTranslater,
com.atlassian.event.api.EventPublisher eventPublisher,
InstanceFactory instanceFactory,
PasswordEncoderFactory passwordEncoderFactory) |
getCustomGroupAttributeMappers, getCustomUserAttributeMappers, getMemberships, isGroupDirectGroupMember, isUserDirectGroupMember, searchGroupRelationshipsWithGroupTypeSpecified, supportsNestedGroups, supportsPasswordExpirationaddDefaultSnToUserAttributes, addDefaultValueToUserAttributesForAttribute, asLdapGroupName, asLdapName, asLdapUserName, authenticate, avatarMapper, countDirectMembersOfGroup, createModificationItem, expireAllPasswords, findEntityByDN, findEntityByDN, findGroupByName, findGroupByNameAndType, findGroupWithAttributesByName, findUserByExternalId, findUserByName, findUserWithAttributesByName, getAttributeAsBoolean, getAttributeAsLong, getAuthoritativeDirectory, getBaseEnvironmentProperties, getContextSource, getDirectoryId, getGroupContextMapper, getInitialGroupMemberDN, getKeys, getLdapPropertiesMapper, getNewGroupAttributes, getNewGroupDirectorySpecificAttributes, getNewUserAttributes, getSearchDN, getSubTreeSearchControls, getUserAvatarByName, getUserContextMapper, getUserModificationItems, getValue, getValues, isEmpty, isRolesDisabled, pageSearchResults, postprocessGroups, removeGroupAttributes, removeUserAttributes, searchEntities, searchEntitiesWithRequestControls, searchGroupObjects, searchGroupObjectsOfSpecifiedGroupType, searchGroupRelationships, searchGroups, searchUserObjects, searchUsers, setAttributes, setDirectoryId, storeGroupAttributes, storeUserAttributes, supportsInactiveAccounts, supportsSettingEncryptedCredential, testConnection, typedEntityNotFoundException, updateUserCredentialclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitupdateUserFromRemoteDirectory, userAuthenticatedpublic Rfc2307(LDAPQueryTranslater ldapQueryTranslater, com.atlassian.event.api.EventPublisher eventPublisher, InstanceFactory instanceFactory, PasswordEncoderFactory passwordEncoderFactory)
public static String getStaticDirectoryType()
protected LDAPCredentialEncoder getCredentialEncoder()
getCredentialEncoder in class SpringLDAPConnectorprotected void getNewUserDirectorySpecificAttributes(User user, Attributes attributes)
SpringLDAPConnectorOverrider of this method can take advantage of the default group attributes mapping logic in {#getNewUserAttributes(User)}.
Note that the attribute values supplied here will be used raw. This entails that overrider is responsible for supplying values in a format supported by the directory. In some directory implementations, for example, a blank string ("") is considered illegal. Overrider thus would have to make sure the method does not generate a value as such.
getNewUserDirectorySpecificAttributes in class SpringLDAPConnectoruser - (potential) source of information that needs to be added.attributes - attributes to add directory-specific information to.public String getDescriptiveName()
public void addUserToGroup(String username, String groupName) throws UserNotFoundException, GroupNotFoundException, OperationFailedException
public void addGroupToGroup(String childGroup, String parentGroup) throws GroupNotFoundException, OperationFailedException
public void removeUserFromGroup(String username, String groupName) throws UserNotFoundException, GroupNotFoundException, MembershipNotFoundException, OperationFailedException
public void removeGroupFromGroup(String childGroup, String parentGroup) throws GroupNotFoundException, MembershipNotFoundException, OperationFailedException
public LDAPUserWithAttributes addUser(UserTemplate user, PasswordCredential credential) throws InvalidUserException, InvalidCredentialException, OperationFailedException
SpringLDAPConnectoraddUser in interface RemoteDirectoryaddUser in class SpringLDAPConnectoruser - template of the user to add.credential - password.InvalidUserException - if the user to create was deemed invalid by the LDAP server or already exists.InvalidCredentialException - if the password credential was deemed invalid by the password encoder.OperationFailedException - if we were unable to add the user to LDAP.public LDAPUserWithAttributes addUser(UserTemplateWithAttributes user, PasswordCredential credential) throws InvalidUserException, InvalidCredentialException, OperationFailedException
SpringLDAPConnectoraddUser in interface RemoteDirectoryaddUser in class SpringLDAPConnectoruser - template of the user to add.credential - password.InvalidUserException - if the user to create was deemed invalid by the LDAP server or already exists.InvalidCredentialException - if the password credential was deemed invalid by the password encoder.OperationFailedException - if we were unable to add the user to LDAP.public Group addGroup(GroupTemplate group) throws InvalidGroupException, OperationFailedException
addGroup in interface RemoteDirectoryaddGroup in class SpringLDAPConnectorInvalidGroupExceptionOperationFailedExceptionpublic Group renameGroup(String oldName, String newName) throws GroupNotFoundException, InvalidGroupException, OperationFailedException
renameGroup in interface RemoteDirectoryrenameGroup in class SpringLDAPConnectorGroupNotFoundExceptionInvalidGroupExceptionOperationFailedExceptionpublic User renameUser(String oldName, String newName) throws UserNotFoundException, InvalidUserException, OperationFailedException
renameUser in interface RemoteDirectoryrenameUser in class SpringLDAPConnectorUserNotFoundExceptionInvalidUserExceptionOperationFailedExceptionpublic Group updateGroup(GroupTemplate group) throws GroupNotFoundException, OperationFailedException
updateGroup in interface RemoteDirectoryupdateGroup in class SpringLDAPConnectorGroupNotFoundExceptionOperationFailedExceptionpublic User updateUser(UserTemplate user) throws UserNotFoundException, OperationFailedException
updateUser in interface RemoteDirectoryupdateUser in class SpringLDAPConnectorUserNotFoundExceptionOperationFailedExceptionpublic void removeUser(String name) throws UserNotFoundException, OperationFailedException
removeUser in interface RemoteDirectoryremoveUser in class SpringLDAPConnectorUserNotFoundExceptionOperationFailedExceptionpublic void removeGroup(String name) throws GroupNotFoundException, OperationFailedException
removeGroup in interface RemoteDirectoryremoveGroup in class SpringLDAPConnectorGroupNotFoundExceptionOperationFailedExceptionCopyright © 2018 Atlassian. All rights reserved.