It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

0 votes

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>

0 votes

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published yesterday in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

61 views 0 9
Read article

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