Error when validating LDAP with Paddle

I get an error when trying to validate with Paddle:
Username is missing from configuration, and anonymous authentication not configured

I don't see "Username" as a field anywhere in the documentation. 

root@ip-10-13-8-43 ~]# java -jar paddle-2.0.jar debug
###########################################################################################################################
LDAP Support Tool version 2.0
###########################################################################################################################
Username is missing from configuration, and anonymous authentication not configured
Exception in thread "main" java.lang.NullPointerException
	at java.util.Hashtable.put(Hashtable.java:459)
	at com.atlassian.paddle.connection.DefaultConnectionFactory.buildEnvironment(DefaultConnectionFactory.java:68)
	at com.atlassian.paddle.connection.DefaultConnectionFactory.<init>(DefaultConnectionFactory.java:18)
	at com.atlassian.paddle.Paddle.main(Paddle.java:58)

2 answers

This widget could not be displayed.

Hello Weston,

Thank you for your inquire.

What is the User (CN= or UID= ) you are using to authenticate against LDAP?

<securityPrincipal>CN=[DISPLAY-NAME],CN=Users,DC=example,DC=com</securityPrincipal>

Please, refer to the following fro further information:

If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.

Thank you for your understanding.

Kind regards,
Rafael P. Sperafico
Atlassian Support

This answer is not helpful. I've already creating the atlassian-user.xml file. That's why I'm testing it using Paddle.

Hello Weston, Please, place the '<bamboo-home>/xml-data/configuration/atlassian-user.xml ' content so we can review it. Please, obfuscate the following tags as per following: <host>[HOSTNAME]</host> <port>389</port> <securityCredential>[PASSWORD]</securityCredential> — Kind regards, Rafael P. Sperafico Atlassian Support

I just joined this forum, and I don't have any "points", so I can only reply once every 24 hours. If you couple please remove that restriction from my account, that would be great, as I could really use this help so we can finish our migration to Bamboo. Here's atlassian-user.xml <atlassian-user> <repositories> <ldap key="ldapRepository" name="[ADHOSTNAME]" cache="true"> <host>[HOSTNAME]</host> <port>389</port> <securityPrinciple>CN=Bamboo User,OU=Service Accounts,DC=USCorp,DC=MyDomain,DC=com</securityPrinciple> <securityCredential>[PASSWORD]</securityCredential> <securityProtocol>plain</securityProtocol> <securityAuthentication>simple</securityAuthentication> <baseContext>dc=USCorp,dc=MyDomain,dc=com</baseContext> <baseUserNamespace>ou=USCorp Users,dc=USCorp,dc=MyDomain,dc=com</baseUserNamespace> <baseGroupNamespace>ou=Security Groups,dc=USCorp,dc=MyDomain,dc=com</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> </ldap> <hibernate name="Hibernate Repository" key="hibernateRepository" description="Hibernate Repository" cache="true"/> </repositories> </atlassian-user>

This widget could not be displayed.

Hello Weston,

Thank you for your update.

This is the minimum required to connect to your LDAP.

&lt;atlassian-user&gt;
    &lt;repositories&gt;
		&lt;ldap key="ldapRepository" name="ADHOSTNAME" cache="true"&gt;
		    &lt;host&gt;192.168.10.71&lt;/host&gt;
		    &lt;port&gt;389&lt;/port&gt;
			
			&lt;securityPrincipal&gt;CN=Bamboo User,OU=Service Accounts,DC=USCorp,DC=MyDomain,DC=com&lt;/securityPrincipal&gt;
            &lt;securityCredential&gt;abc123&lt;/securityCredential&gt;
            &lt;securityProtocol&gt;plain&lt;/securityProtocol&gt;
            &lt;securityAuthentication&gt;simple&lt;/securityAuthentication&gt;
            &lt;baseContext&gt;DC=USCorp,DC=MyDomain,DC=com&lt;/baseContext&gt;
		&lt;/ldap&gt;
		&lt;hibernate name="Hibernate Repository" key="hibernateRepository" description="Hibernate Repository" cache="true"/&gt;
    &lt;/repositories&gt;
&lt;/atlassian-user&gt;
  • is "CN=Bamboo User" a user?
  • please, notice the above will not return any users or groups.

In case you continue on experiencing issues, I would suggest you on raising Support Request on https://support.atlassian.com or from "Bamboo administration >> Bamboo Administration >> System >> Atlassian Support Tools >> Support Request".

  • please, do not forget on mentioning this Answers.
  • please, attach LDIFF of "CN=Bamboo User,OU=Service Accounts,DC=USCorp,DC=MyDomain,DC=com"

Kind regards,
Rafael P. Sperafico
Atlassian Support

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked yesterday in Data Center

Hi! I'm Cameron Deatsch, enterprise enthusiast and Head of Server at Atlassian. AMA!

Hey team! I'm Cameron Deatsch, Head of Server at Atlassian. At our European Summit just a few weeks ago, I spoke about the latest regarding our Server and Data center products and o...

19,233 views 4 4
View question

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