Confluence 2.8 has reached end of life
Check out the [latest version] of the documentation
This page describes the function of each of the tags in an atlassian-user.xml file. These can be added as child tags of the <ldap>
tag in your atlassian-user.xml file to configure each option.
Developer note: this information is derived from atlassian-user-defaults.xml, which can be found in the source of Atlassian-User under src/main/resources/
. It also ships in atlassian-user.jar.
Core settings
These settings do not have a default value and must be provided to configure an LDAP connection.
XML tag |
Description |
---|---|
LDAP connection properties |
|
|
The host name of the machine running the LDAP server. This must resolve from the machine running Confluence. |
|
The port number that the LDAP server is running on. This should usually be 389. |
|
The distinguished name (DN) of a user who is allowed to browse the entire LDAP repository. This can be omitted if the repository has anonymous access enabled. |
|
The password for the user configured as the securityPrincipal. This can be omitted if the repository has anonymous access enabled. [1] |
|
The DN of the top of the LDAP tree that contains both users and groups. |
LDAP user mapping properties |
|
|
The DN at the top of the LDAP tree which contains users. For example: |
|
An LDAP search filter which matches only users under the baseUserNamespace. For example: |
|
The attribute on a user in LDAP which contains the Confluence username. It must be unique across all users. For example: |
|
The attribute on a user in LDAP which contains the first name of the user. For example: |
|
The attribute on a user in LDAP which contains the last name of the user. For example: |
|
The attribute on a user in LDAP which contains the email address of the user. For example: |
LDAP group mapping properties |
|
|
The DN at the top of the LDAP tree which contains groups. For example: |
|
An LDAP search filter which matches only group entities under the baseGroupNamespace. For example: |
|
The attribute on a group in LDAP which contains the Confluence group name. It must be unique across all groups. For example: |
|
The attribute on a group in LDAP which contains the DN of each member in the group. [2] For example: |
Notes
- If these values contain ampersands, they must be escaped in the XML file. This is a common situation with LDAP search filters and passwords containing ampersands. For example, the LDAP search filter
(&(objectClass=user)(mail=*@example.com))
would be put in the XML as:<userSearchFilter>(&(objectClass=user)(mail=*@example.com))</userSearchFilter>
. - This can also contain the user name of each member of the group. See the
useUnqualifiedUsernameForMembershipComparison
optional configuration setting below.
Optional settings
XML tag Default value Description LDAP connection properties plain ssl Allow encrypted (SSL) connections. Can be omitted if anonymous access is available. simple Plain-text password transmission. Can be 'none' if anonymous access to the LDAP server is available. com.sun.jndi.ldap.LdapCtxFactory Class name of LDAP provider (default: Sun JNDI) 100 Size of pages in search results true Use connection pooling 30000 Timeout in milliseconds when opening new server connections. Default: 30 seconds. 60000 Timeout in milliseconds for search and other read operations. Default: 60 seconds. LDAP connection pool properties 1 Initial size of connection pool, e.g. number of connections to open at start-up. [1] 10 Preferred size of connection pool. [1] 0 Maximum size of connection pool. Zero means no maximum size. [1] 300000 Idle time in milliseconds for a connection before it is removed from the pool. Default: 5 minutes. [1] none Debug level for logging. [1] simple Authentication for pool connections. [1] LDAP search properties 0 Time limit on searches in milliseconds. Zero means no limit. [2] false Whether user searches should search through the LDAP tree or only for direct children of the DN specified by the userSearchFilter. [3] false Whether group searches should search through the LDAP tree or only for direct children of the DN specified by the groupSearchFilter. [3] false If set to true, Confluence will use the value of the usernameAttribute on the user to check for group membership comparisons instead of the complete distinguished name. Notes
securityProtocol
authentication
initialContextFactory
batchSize
poolingOn
connectTimeout
readTimeout
initSize
prefSize
maxSize
timeout
debugLevel
poolAuthentication
timeToLive
userSearchAllDepths
groupSearchAllDepths
useUnqualifiedUsernameForMembershipComparison
RELATED TOPICS
Customising atlassian-user.xml
Add LDAP Integration
LDAP User Management