 | Try Atlassian Crowd for powerful LDAP integration Atlassian's Crowd is a web-based single sign-on (SSO) tool that simplifies application provisioning and identity management. |
Confluence can delegate user authentication to LDAP and use LDAP group memberships to set the user's Confluence access permissions. This also allows Active Directory (AD) integration. This guide is for both users enabling LDAP, and those upgrading their LDAP scheme to support group management. It applies to LDAP over HTTP and SSL/HTTPS.
Once the LDAP is enabled and LDAP users are using Confluence, you cannot revert to local user management without those users being disabled. However, you can create new local users while using LDAP integration.
Who is this guide for?
If you are using local user management in a version prior to Confluence 2.7, or os_user with authentication-only or jira user management, follow the guide to Migrate to LDAP User Management From OsUser. Otherwise, this is the correct guide for you.
 | Integrate only after completing Setup If you are doing an LDAP integration as part of a new install, do not integrate until after you complete the initial setup. You can add LDAP integration after you create the admin user for your instance. |
Step 1 - Upgrade Confluence
Please check that you are running the latest version of Confluence. If not, we strongly recommend that you consider upgrading Confluence according to this guide. Confirm that you have upgraded successfully before trying to add LDAP to the new version.
Step 2 - Contact your LDAP/AD Administrator
Integration can only be setup by an administrator confident with running user queries against their LDAP directory. You should request assistance from your LDAP or Active Directory administrator for the following steps.
Step 3 - Check your LDAP server
Confirm this information about your LDAP server.
- Check your server LDAP version. Supported versions are v2 and v3. Supported LDAP servers include OpenLDAP, Microsoft Active Directory, Novell eDirectory, and any server that uses Java JNDI-LDAP mapping.
- Your LDAP or Active Directory server must support static groups. This means that the user DNs must be stored against a membership attribute inside an LDAP groups. An example of a static group is shown below:
Dn: CN=Sales and Marketing,CN=Users,DC=ad,DC=atlassian,DC=com
objectClass: top; group;
cn: Sales and Marketing;
distinguishedName: CN=Sales and Marketing,CN=Users,DC=ad,DC=atlassian,DC=com;
name: Sales and Marketing;
...
member: CN=John Smith,CN=Users,DC=ad,DC=atlassian,DC=com
member: CN=Sally Smith,CN=Users,DC=ad,DC=atlassian,DC=com
...
The membership attribute in this case is member, but this is not required. Note that the full DNs of John and Sally Smith are listed. If the values against member are not full DNs, but are just usernames, then you need to add the flag
<useUnqualifiedUsernameForMembershipComparison>true</useUnqualifiedUsernameForMembershipComparison>
to your LDAP tag in atlassian-user.xml. Open Directory on OS X uses this configuration.
- You must not have LDAP groups called 'confluence-users' or 'confluence-administrators'.
- You must have at least one existing Confluence administrator with System Administrator permissions, whose username does not exist in the LDAP server (see Step 4).
Step 4 - Check the System Administrator account
This step assumes that you have at least one Confluence user account which has System Administrator permissions for your Confluence site. For this account, please check that there isn't an account on your LDAP system that has the exact same username.
If there is an LDAP account with the exact same username, and you do not have another local Confluence account that has System Administrator permissions rights, then you should perform one of the following:
- create another account, that doesn't exist on LDAP, to act as the administrator
OR:
- rename your local Confluence administrator account to use another username that doesn't exist in LDAP
OR:
- rename your LDAP account
This will ensure that you will have an account that has sufficient rights to administer your site after you migrate your users.
Step 5 - Configure your LDAP repository
- Follow Customising atlassian-user.xml
- Start up Confluence and check that you can log in using the System Administrator account you first set up when running through the Confluence Setup Wizard. If not, re-examine your steps and repeat where necessary.
- If you can't successfully log in with this account, please check that the username of this account does not already exist in your LDAP server. If usernames are the same, Confluence recognises LDAP accounts over local Confluence accounts.
- If you were using OS user previously, run the user migration. After the migration has run, remove the os user tag from atlassian-user.xml and restart Confluence.
Step 6 - Grant access to LDAP users and groups
To grant Confluence login access to your LDAP groups and users,
Go to the Confluence 'Administration Console'. To do this:
- Open the 'Browse' menu and select 'Confluence Admin'. The 'Administration Console' view will open.
- Select 'Global Permissions' in the left panel.
- Click to Edit Permissions for Groups.
- In the textbox to 'Grant Browse Permission', enter the name of an LDAP group that should have Confluence access. Click 'Add'.
- Tick the Can Use box for the LDAP group. If the group is not found, it was not present in your LDAP server.
- For other LDAP groups that need access to Confluence, add them using the same method.
- If you are integrating LDAP with Confluence for authentication only, no LDAP groups will appear in Confluence. All the individual LDAP users will have to be manually added to an internal Confluence group with Can Use permissions enabled before they can have access to Confluence.
- Set up your Confluence page and space permissions for these LDAP groups and users.
Installation complete!
Related Pages
Troubleshooting
Local user management not retained
If you run into this problem, you may be experiencing this bug.
Check your Confluence version
This documentation applies to the latest version of Confluence. There are a couple of key bugs that have been resolved in Confluence 2.6 or 2.6.1, but that pertain to 2.5.6 and 2.5.7.
- http://jira.atlassian.com/browse/CONF-9434 relates to hibernate cache=true;
The xml file supplied here has the hibernate cache set to "true".
- http://jira.atlassian.com/browse/CONF-9195 relates to the migration step.
Version 2.6.1 corrects this problem.
More information
- Browse the LDAP FAQ.
- If LDAP users or groups are not displayed in Confluence, try the External User Test tool.
- Check the list of known, unresolved LDAP bugs
- See the comments on this page, from other users who may have left some useful information.
- The 'External User Management' setting in the Confluence Administration Console should be set to OFF. This setting is for using JIRA or Crowd for External User Management.
Support
Failing all else, lodge a support request. Be sure to attach your atlassian-user.xml, a copy of the output from the External User Test tool, and a zip of your Confluence logs.
Comments (58)
Jun 25, 2006
jd lima says:
I too am interested in a authentication-only configuration for Confluence 2.23+....I too am interested in a authentication-only configuration for Confluence 2.23+. I had zero problems with LDAP authentication for JIRA 3.62. How should I diverge from this procedure to get LDAP authentication only for Confluence?
Aug 03, 2006
Matt Ryall (Atlassian) says:
Authentication-only LDAP integration is still available via OSUser in Confluence...Authentication-only LDAP integration is still available via OSUser in Confluence 2.2, but I don't really see why you would want that. In the old world of LDAP support in Confluence 2.1 and earlier, you only have one type of user and one type of group:
The new LDAP configuration allows so much more:
Confluence access can be granted to any of the above categories, without the extra step of creating a new user or group in Confluence. Once a user or group has Confluence access, it can be used in space permission and page restrictions, without worrying whether it is in LDAP or Confluence.
In the future, we're planning to support retrieval of arbitrary LDAP properties for users and displaying these on the profile page. Some LDAP servers support storage of user pictures, so this might also mean automatic profile icons. None of this will be possible if you stick with the old LDAP support.
There also seems to be a bit of a misunderstanding about the migration process. The migration is simply an internal database table migration, no data is copied to or from the LDAP server. At some point in the future we'll probably be migrating everyone to use the new database tables via an automatic upgrade task.
Mar 14, 2008
Anonymous says:
I am using Confluence 2.7.1. Never use osuser before and edited my atlassian-use...I am using Confluence 2.7.1. Never use osuser before and edited my atlassian-user to connect to LDAP.
However, once I did that, for users with usernames exist in LDAP, in 'view user', all groups disappeared. I think atlassian-user created a gap between LDAP user and local Confluence groups. How can I solve this problem?
I would like Atlassian-user to be compatible with OSUser to provide password auth. only to LDAP.
It might not make sense to Atlassian (why would any user want less functionality?), but that's what our org. need.
Plus keeping user profiles local in Confluence:
Mar 23, 2008
Choy Li Tham says:
Hi, However, once I did that, for users with usernames exist in LDAP, in 'view ...Hi,
I would suggest you to create a support ticket at the following Issue tracker so that we could further investigate this problem from there:
Unfortunately, Confluence does not provide this feature currently. However, we are aware of such needs and there is an improvement request being tracked at the following link:
The improvement request above suggest Confluence to include Atlassian-user to support password authentication only to LDAP. If you are keen on this improvement, feel free to cast a vote to increase its popularity and add yourself as a watcher for future updates. Also, you can add a comment in the improvement request to truly reflect the importance of this improvement.
Regards,
Choy Li
Jul 31, 2006
George Rothwell says:
I am currently evaluating 2.2.6a. I was able to get Confluence authenticat...I am currently evaluating 2.2.6a. I was able to get Confluence authenticating off a Windows 2003 Active Directory at the group level within a couple hours. Based on what I have seen with the LDAP integration, I trust it enough to take into production.
I am new to Confluence, so some of that time was reading through the users guide and administration guides.
This is a bit more difficult than other commerical software (such as those from Microsoft), but much better than open source applications.
I am not sure if this guide mentions it, but the log file can help you with this process. Check <install folder>\logs\atlassian-confluence.log
You will see messages like this if Confluence can't connect to the LDAP server:
ERROR [bucket.user.DefaultUserAccessor] hasMembership javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext error, data 525, vece
A key for me to get this working was this setting. If Confluence can't login to Active Directory, you will not get anywhere.
<securityPrincipal>cn=<username>,cn=users,dc=<domain>,dc=<domainExtension></securityPrincipal>
Example with username = Administrator, active directory domain = test.local.
<securityPrincipal>cn=Administrator,cn=users,dc=test,dc=local</securityPrincipal>
Aug 03, 2006
Mark says:
Not seeing atlassian-confluence.log anywhere on hosting server. Wow, this ...Not seeing atlassian-confluence.log anywhere on hosting server. Wow, this is very difficult, myself and another experienced admin have spent almost an entire day on ssl and ldap integration, all wasted time. I want to use this product, but feel as if I am doing alot of work for a product we will be paying quite a bit of $$ for. Almost feels like pure open source. Atleast just the ssl and ldap parts. Other parts are smooth.
Aug 03, 2006
Matt Ryall (Atlassian) says:
The location of your Confluence log file will depend on your application server....The location of your Confluence log file will depend on your application server. The location he mentions is configured for Confluence Standalone only; the EAR/WAR edition logs to the application server's stdout.
If you're still having trouble with configuring LDAP, please raise a support ticket on http://support.atlassian.com. We'll be able to walk you through the installation process and diagnose the problems you've encountered.
Aug 03, 2006
Mark says:
Ok, I finally got it working. It was my fault, I missed a detail on the us...Ok, I finally got it working. It was my fault, I missed a detail on the user and group repository. I left out a dc=. For example I had ou=people,dc=domaincontrollername,dc=edu when it should have been ou=people,dc=domaincontrollername,dc=parentlevel,dc=edu.
Just be sure to go over the config with a FINE TOOTH COMB before you give up!!!!!
Sorry for blaming confluence, it was my problem.:-)
Aug 03, 2006
Daniel Veselka says:
In my case the problem with configuration was in usernameAttribute - I had to re...In my case the problem with configuration was in usernameAttribute - I had to replace cn with uid. <usernameAttribute>uid</usernameAttribute>.
In original file it maps userName to cn which was in my case FirstName+LastName, not simple uid.
Aug 04, 2006
Mark says:
This information may help if you are new to looking at code. Just know tha...This information may help if you are new to looking at code. Just know that these marks in the file <!-
-> are commenting out what lies between. For example when this file full of code is run:<!--
execute, blah blah blah
-->
execute blah
Only execute blah is actually run. Look for this and make sure your entire LDAP configuration is not commented out.
FYI
Aug 10, 2006
Mark says:
Just wanted to offer this information, it may help someone. I did LDAP int...Just wanted to offer this information, it may help someone. I did LDAP integration and the groups the user belongs to do not reside as a "user attribute" this membership information only resided within the security group attributes, ie each group had a bunch of "uniquemember" fields listing the memebers. Anyway in the instructions this line below sort of made me think to look at the user attributes for this field
Just any FYI that this attribute could also reside within the group attribute. Or Active Directory environment is the opposite, the user object does list the groups that the user is a member of. Good luck.
Dec 11, 2006
Joshua Thomas says:
Is it possible to map other attributes of a user in LDAP into Confluence (for ex...Is it possible to map other attributes of a user in LDAP into Confluence (for example, homePhone, mobile, postalAddress, etc) for use in user profiles?
Dec 11, 2006
Mei Yan Chan says:
Hi Joshua, Unfortunately Confluence does not support this feature. The only att...Hi Joshua,
Unfortunately Confluence does not support this feature. The only attributes that you can map to Confluence is available at:
http://confluence.atlassian.com/x/eUUC
In addition, there is an open feature request being tracked at CONF-5286. Feel free to cast your vote to increase its popularity and add yourself as a watcher for future updates.
Regards,
Mei
Dec 20, 2006
Steven Jantzen says:
Ok, I started with Confluence 2.2.6, and was having no luck getting it to sync w...Ok, I started with Confluence 2.2.6, and was having no luck getting it to sync with our AD setup (Windows 2003). I upgraded to 2.2.9, and still had no luck. However, I was finally able to get it integrated. I found that with Active Directory in atlassian-user.xml you need to set your host as the IP address or your top level AD domain controller. The other thing is that the securityPrincipal attribute needs to be set to <user>@<domain>.<domain extension>, or test@thisisnotarealdomain.com. This is in contrast to CN=<fullname>,OU=<orginizationunit>,DC=<domain>,DC=<domainextension>
The other thing, and this could be specific to just our setup, but we have groups per branch office, and not in the Users OU. To get all groups (and users for that matter) we had to set the baseUserNamespace attribute to DC=<domain>,DC=<domain extension> and the baseGroupNamespace attribute to the same.
Finally, make sure that if you provide a dedicated user for your LDAP integration involving an AD setup, you set the password to never expire.
Once I figured it out, it's easy, it's just getting that first step.
Jun 14, 2007
Joe Kraska says:
For others who are doing LDAP integration VIA Active directory, this particular ...For others who are doing LDAP integration VIA Active directory, this particular entry works in my environment (where "XXXXXX" is replaced by a working password):
<ldap key="ldapRepository" name="IRAD LDAP" cache="true"> <host>10.35.24.59</host> <port>389</port> <securityPrincipal>cn=Administrator,cn=Users,dc=irad,dc=net</securityPrincipal> <securityCredential>XXXXXX</securityCredential> <securityProtocol>plain</securityProtocol> <securityAuthentication>simple</securityAuthentication> <baseContext>ou=IRAD OU,dc=irad,dc=net</baseContext> <baseUserNamespace>ou=IRAD OU,dc=irad,dc=net</baseUserNamespace> <baseGroupNamespace>ou=IRAD OU,dc=irad,dc=net</baseGroupNamespace> <usernameAttribute>sAMAccountName</usernameAttribute> <userSearchFilter>(objectClass=user)</userSearchFilter> <firstnameAttribute>givenname</firstnameAttribute> <surnameAttribute>sn</surnameAttribute> <emailAttribute>mail</emailAttribute> <groupnameAttribute>cn</groupnameAttribute> <groupSearchFilter>(objectClass=group)</groupSearchFilter> <membershipAttribute>member</membershipAttribute> <userSearchAllDepths>true</userSearchAllDepths> <groupSearchAllDepths>true</groupSearchAllDepths> </ldap> <hibernate name="Hibernate Repository" key="hibernateRepository" description="Hibernate Repository" />Sep 17, 2007
Arne Lovius says:
I had the "already exists in OSUser Repository" error, and eventually found this...I had the "already exists in OSUser Repository" error, and eventually found this which was quite an interesting read
Sep 22, 2007
Trevor Marshall says:
Same problem. Step 5 fails with same error and when I continue I can't get back ...Same problem. Step 5 fails with same error and when I continue I can't get back in with my admin user after enabling LDAP. confluence-2.5.7-std.
Sep 23, 2007
Mei Yan Chan says:
Hi Trevor, Could you please raise this issue at http://support.atlassian.com ? ...Hi Trevor,
Could you please raise this issue at http://support.atlassian.com ?
Thank you.
Regards,
Mei
Sep 27, 2007
Tomas Edwardsson says:
Is support finding anything out? I'm evaluating this product and getting Active ...Is support finding anything out? I'm evaluating this product and getting Active Directory integration is vital to the evaluation.
Migrating users ... ERROR
User [wikiadmin] already exists in OSUser Repository
My confluence/WEB-INF/classes/atlassian-user.xml is correct in regard to "hibernateRepository is first and the osuserRepository is second"
Sep 27, 2007
Tony Cheah Tong Nyee says:
Hi Tomas, May I know what is the version of Confluence you are running to integ...Hi Tomas,
May I know what is the version of Confluence you are running to integrate with the AD server? There is a bug reported that affects Confluence version 2.5.6 and later being tracked in the following link which is pretty similar to the problem that you are encountering:
Feel free to add yourself as a watcher so that you will be notified if there are any updates to the bug report.
Cheers,
Tony
Oct 17, 2007
Trevor Marshall says:
atlassian-user jar from http://jira.atlassian.com/browse/CONF-9195 fixed the imp...atlassian-user jar from http://jira.atlassian.com/browse/CONF-9195 fixed the import for us. Now it seems users are slowly showing up in the People Directory as they login for the first time, which is not expected behaviour, but not bad.
Oct 17, 2007
Trevor Marshall says:
Once we import all our users from LDAP, how do we hide those we don't want using...Once we import all our users from LDAP, how do we hide those we don't want using the wiki? We use Open Directory and it contains some administrative accounts that I don't want to look at in the wiki's People Directory.
Oct 19, 2007
Tony Cheah Tong Nyee says:
Hi Trevor, Did you mean that you would like to display only a certain number of...Hi Trevor,
Did you mean that you would like to display only a certain number of users in the Confluence's "People Directory" page?
If this is the case, it is not supported in Confluence. A workaround that I can think of is, to disable the "People Directory" feature. For more details on how this can be done, please see:
Additionally, there is also a feature request regarding restricting user profiles from being access by other users which you may be interested to look at:
Feel free to cast your votes to increase its popularity and add yourself as a watcher for future updates.
Cheers,
Tony
Oct 25, 2007
Anonymous says:
FYI, this document refers to the LDAP Dynamic Groups Plugin, which I don't think...FYI, this document refers to the LDAP Dynamic Groups Plugin, which I don't think will work against Confluence 2.6. I've set it up myself and it seems to be trying to make calls to an older API, giving a NoClassDefFound exception. I would be a good idea to note this for folks who are trying to set up 2.6. It's a very appealing plugin and I'd like to use it if I can.
Feb 10, 2008
Antonio Almazán says:
Hi! We need some help! We are trying to integrate Confluence 2.7.1 wit...Hi!
We need some help!
We are trying to integrate Confluence 2.7.1 with our Active Directory (under Windows 2003) but it is impossible for us. Our goal would be that only users defined in an Active Directory group called "Confluence" can log-in in Confluence server. Here are the steps we have followed "to do" the integration:
1.- We have defined a new group called "Confluence" in Active Directory under the "Users" section.
2.- We have "configurated" users in order to they can belong to this new group: we have defined that users "Daniel" and "Helen" belong to "Confluence" group. In other way, user "Peter" does not belong to this group. This is because we would like to use it in order to test (in the future) that only users which belong to "Confluence" group will able to log-in in Confluence server. All users are under the "Users" section.
3.- We have installed MySQL 5.0 in our Windows 2003 server
4.- We have installed and integrated Confluence 2.7.1 with MySQL in our Windows 2003 server (we have an "all-in-one" server
).
5.- We have setup Confluence without LDAP/AD integration: this means that in Confluence, we have defined only one user (the super-user) which username is "admconfluence" and we have defined a test-space called "Test". Of course, user "admconfluence" does not exist in our Active Directory server and also, we don't have defined in Active Directory any groups called "confluence-administratos" or "confluence-users". Althought it is obvious, we can log-in with user "admconfluence" and password: "XXYYZZ".
6.- We shutdown Confluence service. Thanks to JXplorer and Paddle, we have edited the atlassian-user.xml file (we think) succesfully. We say "succesfully" because we can connect to de Active Directory server, we can see all users, we can see all groups and finally, we can see that users "Daniel" and "Helen" belong to "Confluence" group. We have follow all teh recomendations of "http://confluence.atlassian.com/display/DOC/Add+LDAP+Integration" such as static groups.
7.- We start Confluence service: we can see the log-in window, so we try to log-in: username: "admconfluence" password: "XXYYZZ" (
), but system tell us that username or password are incorrect.
We have tested (probably) everything but we don't know why we can't log-in in. What's what we are doing wrong? Is this the way in which we have to integrate Confluence with Active Directory? In this case.... how we should do the integration?
This is our atlassian-user.xml file:
<atlassian-user>
<repositories>
<!
- LDAP repository -><!--
You will need to uncomment the ldap and hibernate repositories below to enable LDAP
user management. For more information, please see:
http://confluence.atlassian.com/display/DOC/Customising+atlassian-user.xml
-->
<ldap key="ldapRepository" name="LDAP Repository@servidor.dominioaaf.es" cache="true">
<host>192.168.1.35</host> <!-
servidor -><port>389</port>
<securityPrincipal>cn=Administrador,cn=Users,dc=dominioaaf,dc=es</securityPrincipal>
<securityCredential>XXYYZZ</securityCredential>
<securityProtocol>plain</securityProtocol>
<securityAuthentication>simple</securityAuthentication>
<baseContext>dc=dominioaaf,dc=es</baseContext>
<baseUserNamespace>cn=Users,dc=dominioaaf,dc=es</baseUserNamespace>
<baseGroupNamespace>cn=Users,dc=dominioaaf,dc=es</baseGroupNamespace>
<usernameAttribute>cn</usernameAttribute>
<userSearchFilter>(objectClass=person)</userSearchFilter>
<firstnameAttribute>givenname</firstnameAttribute>
<surnameAttribute>sn</surnameAttribute>
<emailAttribute>mail</emailAttribute>
<groupnameAttribute>cn</groupnameAttribute>
<groupSearchFilter>(objectClass=group)</groupSearchFilter>
<membershipAttribute>member</membershipAttribute>
<userSearchAllDepths>true</userSearchAllDepths> <!
- false-><groupSearchAllDepths>true</groupSearchAllDepths>
</ldap>
<!
- END of LDAP Repository -><!
- Default confluence user repository -><!--
<hibernate name="Hibernate Repository" key="hibernateRepository" description="Hibernate Repository" cache="true"/>
-->
<!
- CROWD respository -><!--
You will need to uncomment the repository below to enable Crowd integration. For more information,
please see:
You must also uncomment the osuser repository above.
http://confluence.atlassian.com/display/CROWD/3.2.3+Integrating+Crowd+with+Atlassian+Confluence
-->
<!--
<crowd key="crowd" name="Crowd Repository"/>
-->
<!
- END of CROWD repository -></repositories>
</atlassian-user>
Thank you very much in advance
Feb 10, 2008
Bob Swift says:
Try uncommenting the hibernate repository - I believe that is where your Conflue...Try uncommenting the hibernate repository - I believe that is where your Confluence defined admconfluence user exists. Both LDAP/AD and hiberate repositories can be used together.
Feb 11, 2008
Antonio Almazán says:
Thank you very much Bob, you are great! When we have uncomment that ...Thank you very much Bob, you are great!
When we have uncomment that line, everything is working. Thank you very much again.
Best regards
Antonio Almazán
Feb 12, 2008
Kev D'Arcy says:
Has LDAP integration for user authentication only been removed from the latest v...Has LDAP integration for user authentication only been removed from the latest versions of confluence? Our preference is for the user passwords to be managed by LDAP, but for groups to be managed by confluence. Is this achievable?
Feb 13, 2008
Choy Li Tham says:
Hi Kev, Indeed, LDAP integration for user authentication has been deprecated fr...Hi Kev,
Indeed, LDAP integration for user authentication has been deprecated from Confluence version 2.7 onwards as mentioned in the documentation here. However, it is still possible to allow user password to be controlled by the LDAP management but groups to be managed by local management. This is achievable if you have delegated Confluence with LDAP previously and would like to upgrade Confluence. Having said that, you can copy the osuser.xml and atlassian-user.xml file to your new Confluence installation during the upgrading process as outlined in the following documentation:
Meanwhile, another method that I can think of is to use a dummyValue for the groupSearchFilter filter in your atlassian-user.xml file as mentioned in the documentation here.
Thus, Confluence is still performed by the OSUser LDAP support instead of the AtlassianUser configuration.
Regards,
Choy Li
Feb 13, 2008
Kev D'Arcy says:
Hi, Thanks for that information. The main reason we want to keep groups within ...Hi,
Thanks for that information. The main reason we want to keep groups within Confluence and not LDAP is that our directory structure doesn't match that which Confluence expects i.e. we don't associate users with groups, we associate group with users.
Kev
Mar 23, 2008
eugenelin says:
Hi, I follow the steps described by http://confluence.atlassian.com/display/DOC...Hi,
I follow the steps described by http://confluence.atlassian.com/display/DOC/Upgrading+Confluence#UpgradingConfluence-Step3%3APerformingtheupgrade ,
Using LDAP Account to login is very slow (it almost takes about 26 secs~60 secs ) ,
Using local confluence admin to login at first time ,i was slow too. But after the second time, it becomes very quick.
what is going on?
here is my config
atlassian-user.xml:
<atlassian-user> <repositories> <ldap key="ldapRepository" name="LDAP Repository" cache="true"> <host>b2bmail.cmo.com.tw</host> <port>389</port> <securityPrincipal>cn=cpcadmin,o=cmeap</securityPrincipal> <securityCredential>XXXX</securityCredential> <securityProtocol>plain</securityProtocol> <securityAuthentication>simple</securityAuthentication> <baseContext>o=cme</baseContext> <baseUserNamespace>o=cme</baseUserNamespace> <baseGroupNamespace>o=cme</baseGroupNamespace> <usernameAttribute>uid</usernameAttribute> <userSearchFilter>(objectClass=inetorgperson)</userSearchFilter> <firstnameAttribute>altfullname</firstnameAttribute> <surnameAttribute>ext</surnameAttribute> <emailAttribute>mail</emailAttribute> <groupnameAttribute>department</groupnameAttribute> <groupSearchFilter>(objectClass=dummyValue)</groupSearchFilter> <membershipAttribute>member</membershipAttribute> <userSearchAllDepths>false</userSearchAllDepths> <groupSearchAllDepths>false</groupSearchAllDepths> </ldap> <hibernate name="Hibernate Repository" key="hibernateRepository" description="Hibernate Repository" cache="true"/> </repositories> </atlassian-user>osuser.xml
<opensymphony-user> <authenticator class="com.opensymphony.user.authenticator.SmartAuthenticator"/> <provider class="com.atlassian.confluence.user.ConfluenceLDAPCredentialsProvider"> <property name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</property> <property name="java.naming.provider.url">ldap://b2bmail.cmo.com.tw:389</property> <property name="searchBase">o=cme</property> <property name="uidSearchName">uid</property> <property name="java.naming.security.principal">cn=cpcadmin,o=cmeap</property> <property name="java.naming.security.credentials">XXXX</property> <property name="exclusive-access">true</property> </provider> <provider class="bucket.user.providers.CachingCredentialsProvider"> <property name="chain.classname">com.opensymphony.user.provider.hibernate.HibernateCredentialsProvider</property> <property name="chain.configuration.provider.class">bucket.user.BucketHibernateConfigProvider</property> </provider> <provider class="bucket.user.providers.CachingAccessProvider"> <property name="chain.classname">com.opensymphony.user.provider.hibernate.HibernateAccessProvider</property> <property name="chain.configuration.provider.class">bucket.user.BucketHibernateConfigProvider</property> </provider> <provider class="bucket.user.providers.CachingProfileProvider"> <property name="chain.classname">com.opensymphony.user.provider.hibernate.HibernateProfileProvider</property> <property name="chain.configuration.provider.class">bucket.user.BucketHibernateConfigProvider</property> </provider> </opensymphony-user>Mar 23, 2008
Choy Li Tham says:
Hi eugenelin, Please create a support ticket at the following Issue Tracker per...Hi eugenelin,
Please create a support ticket at the following Issue Tracker pertaining to the problem that you are having:
We will follow up and further investigate this issue from there. Thanks.
Regards,
Choy Li
Feb 21, 2008
Royce Wong says:
Confluence 2.7.1 and Sun Java Directory Server 5.2 Q4 I am using atlassi...Confluence 2.7.1 and Sun Java Directory Server 5.2 Q4
I am using atlassian-user.xml to integrate with LDAP. I can see all my local and LDAP groups in Administration->Manage Groups. I click on a LDAP group and it shows its members. However, when I click on a member in that LDAP group, the use profile page says:
Why is that? Is it because I don't have dynamic group setup?
Another question is: In Global Permission, I added a LDAP group with same permission as Confluence-users, however, users in that LDAP group couldn't log into Confluence. I got "You are not permitted to perform this operation." on the screen. It looked like the user got pass LDAP password auth. but unable to access Confluence's content. Why?
Feb 27, 2008
Ming Giet Chong says:
Hi Royce, I would suggest you to raise a support ticket at https://support.atla...Hi Royce,
I would suggest you to raise a support ticket at https://support.atlassian.com for further investigate to this issue. Thanks.
Regards,
MG
Feb 29, 2008
Igor Minar says:
I've just stumbled upon this problem too. The conclusion of my investigation is ...I've just stumbled upon this problem too. The conclusion of my investigation is that this happens when you migrate from osuser to atlassian-user repository and your confluence is set up so that LDAP is used only for authentication.
The problem is that the migration script that is part of confluence doesn't account for the fact that in the osuser repo, the local accounts were used to hold group memberships for LDAP users. In atlassian-user repo the implementation is different and there are so called external_entities and external_members (see the db schema). I'll try to resolve this problem by migrating my local users and local_members to external_entities and external_members.
This is a major problem for all the Confluence instances that are set up with LDAP for authentication only and need to migrate to atlassian-user repo. :-/
HTH,
Igor
Mar 17, 2008
Royce Wong says:
Hi Igor, I am using Confluence 2.7.1. Once I have atlassian-user enabled, for t...Hi Igor,
I am using Confluence 2.7.1. Once I have atlassian-user enabled, for those user names exists in both Confluence and LDAP, I lost all local groups under 'view user' (including 'confluence-users' group). Therefore no one can log in. But the local groups are actually still there because I can see them under 'Manager Groups'. I have hundred of users and dozens of groups, and manually adding the groups back to every user is not an option.
What do I need to do to migrate/associate the local groups with LDAP users?
This is a known problem with Confluence atlassian-user:The ability to translate local membership into external membership for initial LDAP integration
I also created a ticket here, please vote: Atlassian-user should support password authentication only to LDAP (like OSUser)
Feb 25, 2008
Vivek Dixit says:
In my organization, we are using CAS and MS Active directory both. Most of the j...In my organization, we are using CAS and MS Active directory both. Most of the java based applications are authenticating using CAS (SSO). We have a portal which authenticates a user from CAS and gets the group membership information for all logged in users from MS ADS using single read-only ADS user.
I want to integrate confluence with this portal. Since my portal authenticates with CAS, I put a JA SIG CAS filter in confluence and it worked fine. Now the problem is I need Group membership information from MS ADS after logging in the conffluence. I want all user and group management to be done at ADS and CAS and not in my Confluence. Otherwise it would be a maintenance issue for confluence.
Can you suggest a solution to this problem? Like I thought about an ADS plugin for CAS but that does not exist. Another solution is getting group membership information from ADS into confluence programmatically using the application username and password. But I dont know where to make code changes. I have got educational license for confluence not the commercial one.
Feb 28, 2008
Choy Li Tham says:
Hi Vivek, I would suggest you to post your queries to our forum or mailing list...Hi Vivek,
I would suggest you to post your queries to our forum or mailing list. From there, others developer/user who have experience should be able to share their ideas with you.
Regards,
Choy Li
Apr 17, 2008
James Hines says:
After configuring Confluence for LDAP Group integration can you leverage LDAP dy...After configuring Confluence for LDAP Group integration can you leverage LDAP dynamic groups immediately, or must you use the LDAP Dynamic Groups plugin to leverage dynamic groups?
I ask because I have no need of the mapping functionality provided by the plugin. I simply want to use the dynamic groups defined in my LDAP directory.
Apr 20, 2008
Mei Yan Chan says:
Hi James, You will have to use the plugin to leverage dynamic groups. For more ...Hi James,
You will have to use the plugin to leverage dynamic groups. For more information, please see:
Regards,
Mei
May 06, 2008
Fennie Ng says:
Please note that LDAP Dynamic Groups Plugin works from Confluence v2.2.9 to v2.5...Please note that LDAP Dynamic Groups Plugin works from Confluence v2.2.9 to v2.5 only. It is not compatible with Confluence 2.8
May 22, 2008
Anonymous says:
Is there a way to restrict the number of users returned on an LDAP query. a wild...Is there a way to restrict the number of users returned on an LDAP query. a wildcard
search will bring back all users.
May 23, 2008
Mei Yan Chan says:
Hi, You can try to configure the filter within your LDAP in order to restrict y...Hi,
You can try to configure the filter within your LDAP in order to restrict your searches. For more information, please see:
Regards,
Mei
Aug 08, 2008
Tim Hobbs says:
We've been using Confluence for over a year now and everyone generally likes it....We've been using Confluence for over a year now and everyone generally likes it. That is, except for out IT department. After being asked to investigate LDAP integration with Confluence I find myself on this page. And I just have to say.. wow... I can see their (my IT Team's) point.
Does this process really need to be so arcane and cryptic? Or is that the point? Make it that way so that your Crowd product gets more mention.
Rant over...
Aug 09, 2008
Bear Golightly says:
If you're not familiar enough with LDAP to configure the product with moderate d...If you're not familiar enough with LDAP to configure the product with moderate documentation, you probably should be using Crowd (or similar.)
Nov 04, 2008
Marc Cortinas Val says:
Hello, I've a problem. I had a group of user in my app...Hello,
I've a problem. I had a group of user in my app where your username was "surname_name".
In my LDAP server the same user have the username "Surname_Name", only change the uppercase.
I've configured LDAP for User Authentication Only.
I can acces to app with my old local user because when i try log in, the app log to ldap server and autorize the ldap user.
Why i cannot log in with user "surname_name" and the Confluence log in the user "Surname_Name" to ldap server???
Furthermore, when i log in with my Admin User, i cannot modify properties from my local user, when i try view the properties, confluence show me the LDAP User.
I understand this is a bug of aplication because only change the uppercase betwen my local user and LDAP user, is not it??
Thank you ,
Best regards,
Marc
Nov 18, 2008
Arie Murdianto says:
Yeah, if you use a mixed upper case in your LDAP server, then your profile will...Yeah,
if you use a mixed upper case in your LDAP server, then your profile will be in "read only" as you cannot see more menu to personalize your profile. Changing the upper case to be lower case should fix the problem.
If you need more investigation on the problem, feel free to raise a ticket to:
Cheers,
Nov 06, 2008
Marc Cortinas Val says:
Hello, I've another question. When you see the user profile with a LDAP integ...Hello,
I've another question.
When you see the user profile with a LDAP integration for autetification only i can see less information than can see qhen i've configurated without LDAP.
Do you know if i can see the same information for LDAP users when i click User --> Preferences??
Best regards,
Marc
Nov 17, 2008
Anonymous says:
is any change when a user log in to say Welcome John you belong to the domain xx...is any change when a user log in to say Welcome John you belong to the domain xxxxxxxx
Best Regards,
Dec 18, 2008
Azwandi Mohd Aris says:
Confluence does not store information of the user domain (from LDAP, I believe),...Confluence does not store information of the user domain (from LDAP, I believe), hence that may be impossible. Unless you want to display the group the user belongs to, perhaps, you can start from a user macro that contains this:
Dec 19, 2008
Alan Berezin says:
Can the ldap integration work with anything better than  ...Can the ldap integration work with anything better than <securityAuthentication>simple</securityAuthentication>
I am using ApacheDS as an ldap server hooked to our database of users and we only store a one-way hash of the user's pw.
So, I need to come up with some kindof custom authenication scheme in ldap.
Any ideas?
Jan 06
Arie Murdianto says:
Hi, I have tried another value beside simple which is none. There are 3 values ...Hi,
I have tried another value beside simple which is none. There are 3 values that you can fill in, they are none, simple and sasl_mech. please refer to the following page:
Jan 27
Anonymous says:
I'm trying to auth against Mac OS X (10.5) Open Directory, and I cannot get any ...I'm trying to auth against Mac OS X (10.5) Open Directory, and I cannot get any of those options to authenticate. Using Apache Directory Studio, I can authenticate with my diradmin account using CRAM-MD5 SASL, but sasl_mech does not work with Confluence. It would be really nice for some clear documentation on how to enable LDAP with Open Directory.
Crowd says Apple's Open Directory is a read-only configuration. Perhaps this is because only anonymous binding works against it from atlassian products. What ramifications does this have when I am configuring Confluence? Does Confluence have to manage my groups internally? Again, some simple documentation for this seemingly widely used directory would be helpful. It is pretty set in its ways when it is configured out of the box.
Thanks
Feb 24
Anonymous says:
FYI, to anyone who misses step #4 and integrates with LDAP, thereby disabling th...FYI, to anyone who misses step #4 and integrates with LDAP, thereby disabling their admin:
You can fix this by changing the filters in your LDAP setup. Add a cn=<some username that's not the same as the admin name>, to the baseUserNamespace attribute. Restart your server, and login as your admin that once worked. From there, you can add a new user (not in LDAP) as an admin, then reset the filter in atlassian-user.xml
As far as I can tell, you cannot change the user's username.
Mar 24
Michael Vescovo says:
Hi, I've got the AD integration working well but it doesn't seem to be able to ...Hi,
I've got the AD integration working well but it doesn't seem to be able to recognise that a user is already logged on (to windows) and we have to login again (to confluence) and then again when viewing attachments etc.
How can I configure confluence to use windows pass though authentication?
Mar 25
Arie Murdianto says:
Hi, Please have a look on the following page which may be helpful: http://con...Hi,
Please have a look on the following page which may be helpful:
Cheers,
Jun 23
Anonymous says:
Hello, Right now I am evaluating Confluence for my company and I have just been...Hello,
Right now I am evaluating Confluence for my company and I have just been able to see all users and groups from the Active Directory in the Administration Console upon logging in to Confluence.
However, when I log out and try to log back in as one of those users using their username and password, the browser tells me to try again because the username and password are incorrect...
Has anyone encountered this type of problem yet upon integrating LDAP to Confluence, and if so how did you solve it?
I would appreciate any help...
Jun 23
Anonymous says:
Hello again, OK, so I figured it out. After completing the instructions on this...Hello again,
OK, so I figured it out. After completing the instructions on this page, the key was to also do the little procedure on automatically adding ldap users to the atlassian-user group in Confluence. After that, the login went smooth for every user tested.
Hope this helps some of you.
Cheers
Add Comment