Error when validating LDAP with Paddle
Asked by WestonM:

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 configuredException 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.&lt;init&gt;(DefaultConnectionFactory.java:18)	at com.atlassian.paddle.Paddle.main(Paddle.java:58)
```


Answers:
author: rsperafico
body: 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


author: rsperafico
body: Hello Weston,

Thank you for your inquire.

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

```
&lt;securityPrincipal&gt;CN=[DISPLAY-NAME],CN=Users,DC=example,DC=com&lt;/securityPrincipal&gt;
```

Please, refer to the following fro further information:

* [How to set up LDAP in Bamboo](https://confluence.atlassian.com/display/BAMKB/How+to+set+up+LDAP+in+Bamboo)

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

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


author: rsperafico
body: 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. SperaficoAtlassian Support


author: WestonM
body: 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\>


Tags: bamboo-administration

ldap