Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bamboo with Active Directory

Nicolas Vila April 6, 2018

I'm integrating Bamboo with Active Directory, and found that after the initial bind operation bamboo performs a search using the filter specified in <userSearchFilter> from atlassian-user-custom.xml, BUT on the LDAP searchrequest the filter is modified:

- the file specifies <userSearchFilter>(objectClass=user)</userSearchFilter>

- the operation shows (&(objectClass=user)(sAMAccountName=anonymousUser))

 

Since there is no account called anonymousUser (and is not the user that is trying the login) the search operation returns with zero values, and the login is rejected. If I try Paddle with the atlassian-user-custom.xml file, the search DOES use the filter specified in the XML file.

Why does bamboo add an extra filter if paddle doesn't? This defeats the purpose of using paddle for testing, if bamboo modifies the search. Also, how can I stop bamboo from adding that "sAMAccountName=anonymousUse" filter? Because of that no domain user can login, while paddle shows that everything is working.

 

Many thanks!!

1 answer

0 votes
rsperafico
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 6, 2018

Hello @Nicolas Vila,

What do you have as <usernameAttribute>xxx</usernameAttribute> in "atlassian-user-custom.xml"?

If I try Paddle with the atlassian-user-custom.xml file, the search DOES use the filter specified in the XML file.

Paddle runs against "atlassian-user.xml" and you should expect two tests as result (reference How to set up LDAP in Bamboo):

TEST 1: Search and list XXX users
TEST 2: Search and list XXX groups

Which result are you getting from Paddle?

Regarding on the search filter, if you are connecting to Windows Active Directory, you should consider updating your search filter to https://msdn.microsoft.com/en-us/library/ms677643(v=vs.85).aspx

If possible, please raise a support case (https://support.atlassian.com) so we can review "atlassian-user-custom.xml", paddle's output and Bamboo logs.

Kind regards,

Rafael

Nicolas Vila April 6, 2018

Hello Rafael,

 

First let me tell you that I made it work. For username attribute i have:

<usernameAttribute>sAMAccountName</usernameAttribute>

I was renaming the XML file for paddle to find it, and it was in fact finding all users and groups. As for the search filter, I modified for the following:

<userSearchFilter>(&amp;(objectClass=user)(sAMAccountName=*))</userSearchFilter>

 

Once I did that, now I see on the packet capture that the search uses the following filter:

(&(&(objectClass=user)(sAMAccountName=*))(sAMAccountName=johndoe))

where johndoe is the username tried in the login. The searchfilter looks a little strange but nevertheless it's working.

Thanks, regards.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events