Confluence - Custom LDAP Authenticator


We use a custom ldap authenticator to facilitate single-signon for Confluence. This custom authenticator does the below:
a: Relies on LDAP for user authentication
b: Retrieves the groups for the user from Crowd to facilitate authorization.
c: If the user is authenticated by LDAP but doesnt exist in Crowd, it adds the user to crowd and associates "confluence-users" group for that user in Crowd's confluence directory

This piece of functionality works fine in Confluence 3.5, that uses Crowd's crowd-integration-client-2.3.3.jar under confluence/web-inf/lib directory.

Our new Crowd version is 2.5.1 and new confluence version is 4.3.5. In this confluence, functionalities "a" and "b" mentioned above works. But "c" doesnt work.


When I add "crowd-integration-client-2.3.3.jar" [originally used in my confluence 3.5] to confluence/web-inf/lib, the "User Directories" link under confluence -> admin is missing.

When I add "crowd-integration-client-2.5.1.jar" to confluence/web-inf/lib, Confluence doesnt start at all. There is a unix process running as Confluence, but confluence doesnt come up. And no logs populate under ConfluenceHome/log. Essentially Confluence doesnt come up.

When I *dont* add this crowd-integration-client-x.x.x.jar at all, "a" and "b" still works fine. BUt when a scenario of "c" happens [User authenticated in LDAP but not existing in crowd], my custom LDAP authenticator tried to add the user to Crowd, finds this jar missing and reports the following error in logs:
java.lang.NoClassDefFoundError: com/atlassian/crowd/service/soap/client/SecurityServerClientFactory

Code Snip of the part that fails:
SecurityServerClient securityServerClient = SecurityServerClientFactory
// Try creating new user
if (log.isDebugEnabled())

{ log.debug("Creating User record in Crowd repository."); }

SOAPPrincipal principal = new SOAPPrincipal();

The first line on the snip fails due to absence of JAR.

NOTE: We are in the UAT phase and migrating to this new version of Crowd and Confluence by Mid March. This is a blocker and I would be happy and pleased to receive a fast reply on this.

Please Help. Many Thanks in advance!


2 answers

0 vote
Paul Greig Atlassian Team Feb 24, 2013

Hi Mani,

Is this issue related to a locally installed version of Confluence or the OnDemand hosted solution?

locally installed version within my organization

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

907 views 23 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you