Skip to main content

Properties used in read-Write Active Directory user store manager

You're reading Identity & Access Management 7.2.0. The newest release is 7.3.0, and Cloud has the newest features. Go to the newest release

Following are the minimum configurations that are needed to be provided to configure the Read-write Active Directory user store manager.

Configuration NameDisplay NameDescription
typeUser Store TypeThis denotes the type of the user store manager that we are using. For Read-only LDAP user store manager, this value should be active_directory_unique_id.
base_dnUser Search BaseThis is the DN of the context or object under which the user entries are stored in the user store. When the user store searches for users, it will start from this location of the directory.
Sample values: ou=Users,dc=wso2,dc=org

Following are the minimum user store properties that need to be provided to configure the Read-only LDAP user store manager.

Property IdPrimary user store PropertySecondary user store PropertyDescription
ConnectionURLconnection_urlConnection URL

This is the connection URL to the user store server.

Sample values:
ldap://10.100.1.100:389
ldaps://10.100.1.102:639

If you are connecting over ldaps (secured LDAP),
you need to import the certificate of user store to <​IS_HOME>/repository/resources/security/client-truststore.p12. For information on how to add certificates to the truststore and how keystores are configured and used in a system, see
Use asymmetric encryption.

If LDAP connection pooling is used, see
performance tuning ldaps pooling.

ConnectionNameconnection_nameConnection Name

This is the username that is used to connect to the user store and perform various operations. This user does not need to be an administrator in the user store or have an administrator role in WSO2 IS. However, this user must have permissions to read the user list and users' attributes and to perform search operations on the user store. The value you specify is used as the DN (Distinguish Name) attribute of the user who has sufficient permissions to perform operations on users and roles in LDAP.

This property is mandatory.
Sample values: uid=admin,ou=system

ConnectionPasswordconnection_passwordConnection PasswordPassword for the ConnectionName user

The following table lists the advanced properties used in Read-write Active Directory and their descriptions.

<tr class="odd">

Property IdPrimary user store PropertySecondary user store PropertyDescription
UserEntryObjectClassuser_entry_object_classUser Entry Object ClassObject class used to construct user entries.
Default: identityPerson (a custom object class defined in WSO2 Identity Server)
UserNameAttributeuser_name_attributeUsername Attribute

This is a uniquely identifying attribute that represents the username of the user. Users can be authenticated using their email address, UID, etc. The value of the attribute is considered as the username.

Default: uid

Note: email address is considered as a special case in WSO2 Identity Server, if you want to set the email address as username, see Enable using email address as the username.

Note: Should use the same AD attribute when mapping the username SCIM attribute to the active directory attributes, see Configure Active Directory Userstores for SCIM 2.0 based Inbound Provisioning.


sample values: sAMAccountName

UserIDAttributeuser_id_attributeUser ID Attribute

This is the attribute used for uniquely identifying a user entry. The value of the attribute is considered as the unique user ID.

Default: ObjectGUID

<br >

UserNameSearchFilteruser_name_search_filterUser Search FilterFiltering criteria used to search for a particular user entry
Default : (&(objectClass=user)(uid=?))
UserNameListFilteruser_name_list_filterUser List FilterThis denotes the filtering criteria for searching user entries in the user store. This query or filter is used when doing search operations on users with different search attributes.

Default: (objectClass=user)
In this case, the search operation only provides the objects created from the person object class.
UserDNPatternuser_dn_patternUser DN Pattern

This is the pattern for the user's DN, which can be defined to improve the search. When there are many user entries in the LDAP user store, defining a UserDNPattern provides more impact on performances as the LDAP does not have to travel through the entire tree to find users.

Sample values: uid={0},ou=Users,dc=wso2,dc=org

DisplayNameAttributedisplay_name_attributeDisplay name attribute

This is an optional property. The Display Name Attribute is the name by which users will be listed when you list users in the management console.

Default: blank

ReadGroupsread_groupsRead Groups

When WriteGroups is set to falses, this Indicates whether groups should be read from the user store. If this is disabled by setting it to false, none of the groups in the user store can be read, and the following group configurations are NOT mandatory: GroupSearchBase, GroupNameListFilter, or GroupNameAttribute.

Default: true
Possible values:
true: Read groups from user store
false: Don’t read groups from user store

WriteGroupswrite_groupsWrite Groups

Indicates whether groups should be write to the user store.

Default: true
Possible values:
true: Write groups to user store
false: Do not write groups to user store, so only internal roles can be created. Depend on the value of ReadGroups property, it will read existing groups from user store or not

GroupSearchBasegroup_search_baseGroup Search Base

DN of the context or object under which the group entries are stored in the user store. When the user store searches for groups, it will start from this location of the directory

Default: ou=Groups,cn=Users,dc=wso2,dc=org

GroupEntryObjectClassgroup_entry_object_classGroup Entry Object ClassObject class used to construct group entries.
Default: groupOfNames
GroupNameAttributegroup_name_attributeGroup Name AttributeAttribute used for uniquely identifying a group entry. This attribute is to be treated as the group name.
Default: cn
GroupNameSearchFiltergroup_name_search_filterGroup Search Filter

Filtering criteria used to search for a particular group entry.

Default: (&(objectClass=groupOfNames)(cn=?))

GroupNameListFiltergroup_name_list_filterGroup List Filter

Filtering criteria for searching group entries in the user store. This query or filter is used when doing search operations on groups with different search attributes.

Default: (objectClass=groupOfNames) In this case, the search operation only provides the objects created from the groupOfName object class.

RoleDNPatternrole_dn_patternRole DN Pattern

The pattern for the group's DN, which can be defined to improve the search. When there are many group entries in the LDAP user store, defining a RoleDNPattern provides more impact on performances as the LDAP does not have to traverse through the entire tree to findgroup.

Sample values: cn={0},ou=Groups,dc=wso2,dc=org

MembershipAttributemembership_attributeMembership Attribute

Defines the attribute that contains the distinguished names (DN) of user objects that are in a group.

Default: member

MemberOfAttributemember_of_attributeMember Of AttributeDefine the attribute that contains the distinguished names (DN ) of group objects that user is assigned to.
Default: memberOf
BackLinksEnabledback_links_enabledEnable Back LinksDefines whether the backlink support is enabled. If you are using MemberOfAttribute attributes this should be set to 'true'.
Default : false
UsernameJavaRegExusername_java_regexUsername RegEx (Java)The regular expression used by the back-end components for username validation. By default, strings with non-empty characters have a length of 3 to 30 allowed. You can provide ranges of alphabets, numbers and also ranges of ASCII values in the RegEx properties.
Default: [a-zA-Z0-9._\-|//]{3,30}$
UsernameJava
ScriptRegEx
username_java_
script_regex
Username RegEx (Javascript)The regular expression used by the front-end components for username validation.
Default: ^[\S]{3,30}$
UsernameJavaReg
ExViolationErrorMsg
username_java_reg_
ex_violation_error_msg
Username RegEx Violation Error MessageError message when the Username is not matched with UsernameJavaRegEx
Default: Username pattern policy violated
PasswordJavaRegExpassword_java_regexPassword RegEx (Java)The regular expression used by the back-end components for password validation. By default, strings with non-empty characters have a length of 5 to 30 allowed. You can provide ranges of alphabets, numbers and also ranges of ASCII values in the RegEx properties.
Default: ^[\S]{5,30}$
PasswordJava
ScriptRegEx
password_java_
script_regex
Password RegEx (Javascript)The regular expression used by the front-end components for password validation.
Default: ^[\S]{5,30}$
PasswordJavaReg
ExViolationErrorMsg
password_java_reg
ex_violation_error_msg
Password RegEx Violation Error MessageError message when the Password is not matched with passwordJavaRegEx
Default: Password length should be within 5 to 30 characters
RolenameJavaRegExrolename_java_regexRole Name RegEx (Java)The regular expression used by the back-end components for role name validation. By default, strings with non-empty characters have a length of 3 to 30 allowed. You can provide ranges of alphabets, numbers and also ranges of ASCII values in the RegEx properties.
Default: [a-zA-Z0-9._\-|//]{3,30}$
PasswordHashMethodpassword_hash_methodPassword Hashing Algorithm

Specifies the Password Hashing Algorithm used the hash the password before storing in the user store.
Possible values:
SHA - Uses SHA digest method. SHA-1, SHA-256
MD5 - Uses MD 5 digest method.
PLAIN_TEXT - Plain text passwords.(Default)

If you just configure as SHA, It is considered as SHA-1, It is always better to configure algorithm with higher bit value as digest bit size would be increased.

Most of the LDAP servers (such as OpenLdap, OpenDJ, AD, ApacheDS and etc.) are supported to store passwords as salted hashed values (SSHA).
Therefore, the WSO2 IS requires the password fed in to the connected user store as a plain text value. Then the LDAP user store can store them as a salted hashed value. To feed the plain text into the LDAP server, you need to set PasswordHashMethod to “PLAIN_TEXT”.
However, if your LDAP does not support storing user passwords as hashed values you can configure the WSO2 server to hash the password and feed the hashed password into the LDAP server. To do this, you need to configure the PasswordHashMethod property with SHA (SHA-1), SHA-256, SHA-512. WSO2 server cannot create a salted hashed password (SSHA) to feed into the LDAP.

MultiAttributeSeparatormulti_attribute_separatorMultiple Attribute SeparatorThis property is used to define a character to separate multiple attributes. This ensures that it will not appear as part of a claim value. Normally “,” is used to separate multiple attributes, but you can define ",,," or "...", or a similar character sequence.
Default: “,”
MaxUserName
ListLength
max_user_name_
list_length
Maximum User List LengthThis controls the number of users listed in the user store. This is useful when you have a large number of users and don't want to list them all. Setting this property to 0, displays all users.
Default: 100

In some user stores, there are policies to limit the number of records that can be returned from the query. Setting the value to 0, will list the maximum results returned by the user store. If you need to increase this, you need to set it in the user store level.
Eg : Active directory has the MaxPageSize property with the default value 1000.
MaxRoleName
ListLength
max_role_name_
list_length
Maximum Role List Length

This controls the number of roles listed in the user store. This is useful when you have a large number of roles and don't want to list them all. Setting this property to 0, displays all roles.
Default: 100

In some user stores, there are policies to limit the number of records that can be returned from the query. Setting the value to 0, will list the maximum results returned by the user store. If you need to increase this, you need to set it in the user store level.

Eg: Active directory has the MaxPageSize property with the default value 1000.

kdcEnabledkdc_enabledEnable KDCIf your user store is capable of acting as a Kerberos Key Distribution Center (KDC) and if you need to enable it, set this property to true.
Default: false
UserRoles
CacheEnabled
user_roles_
cache_enabled
Enable User Role CacheThis is to indicate whether to cache the role list of a user.
Default: true

Possible values:
false: Set it to false if the user roles are changed by external means and those changes should be instantly reflected in the Carbon instance
Default: true
Connection
PoolingEnabled
connection_
pooling_enabled
Enable LDAP Connection PoolingDefine whether LDAP connection pooling is enabled
Possible values:
True: Enables connection pooling which will improve the performance
False: Disables connection pooling
Default: false
LDAPConnectionT
imeout
ldap_connection
_timeout
LDAP Connection TimeoutTimeout in making the initial LDAP connection which is configured in milliseconds
Default: 5000
ReadTimeoutread_timeoutLDAP Read TimeoutThe value of this property is the read timeout in milliseconds for LDAP operations. If the LDAP provider cannot get a LDAP response within that period, it aborts the read attempt. The integer should be greater than zero. An integer less than or equal to zero means no read timeout is specified which is equivalent to waiting for the response infinitely until it is received.
Default: not configured
Membership
AttributeRange
membership_
attribute_range
Membership Attribute Range

This is to define the maximum users of role returned by the LDAP/AD user store. This does not depend on the max page size of the user store.

Default: 1500

RetryAttemptsretry_attemptsRetry Attempts

Retry the authentication request if a timeout happened

Default: not configured

UserIdSearchFilteruser_id_search_filterUserID Search Filter

This is a filtering criteria that is used to search a user entry.

Default : (&(objectClass=person)(uid=?))

java.naming.ldap.attributes.binaryldap_binary_attributesLDAP Binary Attributes

Configure this to define the LDAP binary attributes separated by a space.

Default: not configured

ImmutableAttributesimmutable_attributesImmutable Attributes

This is a comma-separated list of immutable attributes that are maintained in the user store.

Default: not configured

TimestampAttributestimestamp_attributesTimestamp Attributes

This is a comma-separated list of user store attributes that have the data type of Timestamp and may require a conversion when reading from/writing to a user store.

Default: not configured

BulkImportSupportedproperties.
BulkImportSupported
BulkImportSupported

Enables bulk import support for the user store.

Default : true

GroupIDEnabledgroup_id_enabledEnable Group Unique IdEnables support for assigning a unique, persistent ID for SCIM groups.
GroupIdAttributegroup_id_attributeGroup Id AttributeDefines which LDAP attribute should be used as the SCIM group ID
GroupCreated
DateAttribute
group_created_timestamp_attributeGroup Created Date AttributeSpecifies the LDAP attribute that represents the group's creation time.
GroupLastModified
DateAttribute
group_modified_timestamp_attributeGroup Last Modified Date AttributeSpecifies the LDAP attribute that indicates the last modification time of a group.

Was this page helpful?