public abstract class RFC2307Directory extends SpringLDAPConnector
A user is a member of a group if either:
RFC2307GidNumberMapper,
RFC2307MemberUidMapperattributes, contextSource, contextSourceTransactionManager, DEFAULT_PAGE_SIZE, eventPublisher, ldapPropertiesMapper, ldapQueryTranslater, ldapTemplate, nameConverter, searchDN| Constructor and Description |
|---|
RFC2307Directory(LDAPQueryTranslater ldapQueryTranslater,
com.atlassian.event.api.EventPublisher eventPublisher,
InstanceFactory instanceFactory,
LdapContextSourceProvider ldapContextSourceProvider) |
| Modifier and Type | Method and Description |
|---|---|
protected List<AttributeMapper> |
getCustomGroupAttributeMappers()
As a minimum, this SHOULD provide an attribute mapper that maps the group members attribute (if available).
|
protected List<AttributeMapper> |
getCustomUserAttributeMappers(UserContextMapperConfig config) |
Iterable<Membership> |
getMemberships() |
boolean |
isGroupDirectGroupMember(String childGroup,
String parentGroup) |
boolean |
isUserDirectGroupMember(String username,
String groupName) |
protected <T> Iterable<T> |
searchGroupRelationshipsWithGroupTypeSpecified(MembershipQuery<T> query)
Execute the search for group relationships given that a group of type GROUP or LEGACY_ROLE has
been specified in the EntityDescriptor for the group(s).
|
boolean |
supportsNestedGroups()
As best I can determine, the RFC2307 schema does not support nested groups.
|
boolean |
supportsPasswordExpiration()
Does not support expiring passwords
|
addDefaultSnToUserAttributes, addDefaultValueToUserAttributesForAttribute, addGroup, addUser, addUser, asLdapGroupName, asLdapName, asLdapUserName, authenticate, avatarMapper, countDirectMembersOfGroup, createModificationItem, expireAllPasswords, findEntityByDN, findEntityByDN, findGroupByName, findGroupByNameAndType, findGroupWithAttributesByName, findUserByExternalId, findUserByName, findUserWithAttributesByName, getAttributeAsBoolean, getAttributeAsLong, getAuthoritativeDirectory, getBaseEnvironmentProperties, getContextSource, getCredentialEncoder, getDirectoryId, getGroupContextMapper, getInitialGroupMemberDN, getKeys, getLdapPropertiesMapper, getNewGroupAttributes, getNewGroupDirectorySpecificAttributes, getNewUserAttributes, getNewUserDirectorySpecificAttributes, getRequiredCustomGroupAttributeMappers, getSearchControls, getSearchDN, getUserAvatarByName, getUserModificationItems, getValue, getValues, isEmpty, isRolesDisabled, pageSearchResults, postprocessGroups, removeGroup, removeGroupAttributes, removeUser, removeUserAttributes, renameGroup, renameUser, searchEntities, searchEntitiesWithRequestControls, searchGroupObjects, searchGroupObjectsOfSpecifiedGroupType, searchGroupRelationships, searchGroups, searchUserObjects, searchUsers, setAttributes, setDirectoryId, setLdapPropertiesMapperAttributes, storeGroupAttributes, storeUserAttributes, supportsInactiveAccounts, supportsSettingEncryptedCredential, testConnection, typedEntityNotFoundException, updateGroup, updateUser, updateUserCredentialclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddGroupToGroup, addUserToGroup, getDescriptiveName, getLocallyFilteredGroupNames, removeGroupFromGroup, removeUserFromGroup, updateUserFromRemoteDirectory, userAuthenticatedpublic RFC2307Directory(LDAPQueryTranslater ldapQueryTranslater, com.atlassian.event.api.EventPublisher eventPublisher, InstanceFactory instanceFactory, LdapContextSourceProvider ldapContextSourceProvider)
protected List<AttributeMapper> getCustomGroupAttributeMappers()
SpringLDAPConnectorgetCustomGroupAttributeMappers in class SpringLDAPConnectorprotected List<AttributeMapper> getCustomUserAttributeMappers(UserContextMapperConfig config)
getCustomUserAttributeMappers in class SpringLDAPConnectorpublic boolean isUserDirectGroupMember(String username, String groupName) throws OperationFailedException
OperationFailedExceptionpublic boolean isGroupDirectGroupMember(String childGroup, String parentGroup)
childGroup - name of child group.parentGroup - name of parent group.false as nested groups are not supported.protected <T> Iterable<T> searchGroupRelationshipsWithGroupTypeSpecified(MembershipQuery<T> query) throws OperationFailedException
SpringLDAPConnectorsearchGroupRelationshipsWithGroupTypeSpecified in class SpringLDAPConnectorquery - membership query with all GroupType's not null.OperationFailedException - if the operation failed due to a communication error with the remote directory,
or if the query is invalidpublic boolean supportsNestedGroups()
supportsNestedGroups in interface RemoteDirectorysupportsNestedGroups in class SpringLDAPConnectorfalse.public boolean supportsPasswordExpiration()
supportsPasswordExpiration in interface RemoteDirectorysupportsPasswordExpiration in class SpringLDAPConnectorpublic Iterable<Membership> getMemberships() throws OperationFailedException
OperationFailedExceptionCopyright © 2023 Atlassian. All rights reserved.