Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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
rsperafico Atlassian Team Nov 17, 2015

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.

rsperafico Atlassian Team Nov 18, 2015

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
rsperafico Atlassian Team Nov 20, 2015

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
TAGS
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

943 views 4 7
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you