1 package com.atlassian.user.impl.ldap.properties;
2
3 public interface LdapMembershipProperties
4 {
5 /**
6 * @return <code>true</code> if the membership attribute specified in {@link #getMembershipAttribute()} is
7 * on the group record (the most common situation), or <code>false</code> if the user record lists the memberships
8 * of the user.
9 */
10 boolean isMembershipAttributeOnGroup();
11
12 /**
13 * @return attribute name of the attribute on an LDAP group or user which represents a user's membership in that group,
14 * for example 'member'
15 */
16 String getMembershipAttribute();
17
18 /**
19 * @return <code>false</code> if the membership attribute specified in {@link #getMembershipAttribute()} is a
20 * fully-qualified distinguished name (DN), or <code>true</code> if the membership attribute has an unqualified
21 * identifier of the member or group.
22 * @see LdapSearchProperties#getUsernameAttribute()
23 * @see LdapSearchProperties#getGroupnameAttribute()
24 */
25 boolean isMembershipAttributeUnqualified();
26 }