 | This document applies only to Confluence 2.1. For Confluence 2.2 and later, please read LDAP 연동 추가하기. Many improvements have been made to Confluence 2.2 to resolve the common issues people were facing with LDAP integration in 2.1. If you are still running Confluence 2.1 and would like to enable LDAP Integration, we strongly recommend that you upgrade to Confluence 2.2 before doing so. |
소개
Confluence LDAP integration lets you delegate user and group management and authentication to your favourite LDAP server. LDAP v2 and v3 servers are supported via Java's JNDI-LDAP mapping (this includes OpenLDAP, Microsoft Active Directory, Novell eDirectory and many more).
[Open LDAP Integration Issues]
 | Currently, Confluence LDAP integration only works if your LDAP or Active Directory server supports static groups. This basically means that you have LDAP groups that store membership information like this:
The membership attribute in this case is member, but this can vary for your installation. The important thing is that your user DN's are stored against some membership attribute inside your LDAP groups. In the above, notice that the full DN's of John and Sally Smith are listed. |
설치 지침
Confluence now uses a component called Atlassian-User for LDAP integration as of version 2.1.
One of the main improvements of Atlassian-User-LDAP-Integration over the old style OSUser integration (configured via osuser.xml) is that administrators will no longer have to manually create a corresponding Confluence user account for each external LDAP user wanting access to the Confluence.
Atlassian-User-LDAP-Integration is configured directly in an XML file called atlassianUserContext.xml. This document will outline how to configure this XML file and migrate your existing users so that you can take advantage of this new integration.
 |
This document applies to new and old installations, except if you have Confluence delegating user management to JIRA. In this case, please use [this doc].
|
 |
It is not compulsory to upgrade to Atlassian-User LDAP integration. However, to continue using OSUser LDAP integration in Confluence 2.1 or later, you must [*enable backwards compatibility*]. |
Migration to new User Management Component
The new Atlassian-User-LDAP-Integration depends on a new user managment component. As such in order to take advantage of this new integration, you need to migrate your current users (even if there is only one user - in the case of new installs). This following steps will guide through this:
- Make a backup of your:
- database
- Confluence home directory
- confluence/WEB-INF/classes/atlassianUserContext.xml (only if you have made changes)
 | This is critical to allow you the option to rollback should the migration not succeed. |
- Download hibernate_osuser_atlassianUserContext.xml
and rename to atlassianUserContext.xml and copy to your confluence/WEB-INF/classes directory (you can overwrite the one that's there)
- Now uncomment the osuserMigrationBean in {{confluence/WEB-INF/classes/upgradeSubsystemContext.xml}}
Notice how the <!-- before the <bean id="osuserMigrationBean"... and the --> after the </bean> have been removed.
- Restart Confluence and login as an Administrator and point a browser to http://host.com/contextpath/admin/osuser2atluser.jsp
(where http://host.com/contextpath
is your baseurl. If you don't know what it is, please see Administration > General Configuration > Base Url)
- Click the link Begin migration
- You will know the migration has been successful if you see this reported:
If you encounter errors, please create a support ticket at http://support.atlassian.com
and attach your application server logs.
- Stop Confluence and comment back in the osuMigrationBean in confluence/WEB-INF/classes/upgradeSubsystemContext.xml. That is:
- Start up Confluence and you should be able to login using the admin account you first set up when running through the Confluence Setup Wizard.
다운로드와 설치 샘플 atlassianUserContext.xml
Download ldap_hibernate_cache_atlassianUserContext.xml
and rename to atlassianUserContext.xml and copy it to your confluence/WEB-INF/classes directory.
 | This file is different from the one downloaded for the migration step above. It contains LDAP settings we've configured for you in advance to make things easier |
Unable to render {include} Couldn't find a page to include called: Customising atlassianUserContext.xml
Confluence에 사용자 접근 허용하기
We're almost finished. Right now, current registered users that are not in LDAP should be able to login and use Confluence.
However, LDAP users (that also have accounts inside Confluence) must have Confluence 'USE' permission granted to the LDAP groups they belong to before they can access Confluence.
To enable a user in your LDAP system to access Confluence, you need to do one of the following:
- grant the Confluence 'USE" permission to the LDAP group the user currently belongs to. This is done in the Administration > Global Permissions page.
- Alternatively, create a new LDAP group (you must not name it 'confluence-users' or 'confluence-administrators') and repeat the above for thi s group. In future, you only need to grant an LDAP user account membership to this group for them to have access to Confluence.
Having problems with your LDAP configuration?
Please follow these guidelines for creating a new support issue:
Requesting External User Management Support