Problem using LDAP directory service

I'm trying to setup external LDAP directory service for stash. After setting up the ldap configuration page the test is not entirely successful:

Test basic connection: Succeeded

Test retrieve user: Succeeded

Test get user's memberhips with 0 groups retrieved. : Failed

Test retrieve group: Not performed

Test get group members.: Not performed

Test user can authenticate: Succeded

Looking in the LDAP log I see this query:

base=ou=Group,dc=develer,dc=com filter=(&(objectClass=posixGroup)(memberUid=uid=username,ou=people,dc=develer,dc=com))

With our LDAP directory structure this query will not work. How can I configure stash to use this query filter:

(&(objectClass=posixGroup)(memberUid=username))

i.e. the memberUid attribute contains only the username, without all the rest of the user DN.

(memberUid is the value specified in stash configuration: Membership schema settings/Group Members attribute)

2 answers

1 accepted

Accepted Answer
1 vote

I discovered what was wrong: it's sufficient to select the right directory type in configuration: the right one for our ldap configuration is "OpenLDAP (read-only posix schema)". I thought it was only the read only version of "OpenLDAP" entry, instead these two configurations use different schemas for groups.

Hi Simone,

You should be able to configure the Group Object Filter to fit your needs in the LDAP configuration of Stash:

https://confluence.atlassian.com/display/STASH/Configuring+an+LDAP+directory#ConfiguringanLDAPdirectory-Groupschemasettings

- Pelle

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

2,373 views 9 12
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