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:
With our LDAP directory structure this query will not work. How can I configure stash to use this query filter:
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)
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.
You should be able to configure the Group Object Filter to fit your needs in the LDAP configuration of Stash:
Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda ...
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot