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

Bitbucket authentication using LDAP and Client Certificate DN

We have integrated Bitbucket Server behind Apache HTTP Server using SSL.

Apache HTTP Server requires a client certificate and set HTTP SSL_CLIENT_S_DN request header to Bitbucket with user DN extracted from given client certificate.

How can we configure Bitbucket to automatically authenticate user from this request header ?

Our user is managed in LDAP. Each one have an UUID as username.

1 answer

@Jean-Yves CRONIER, were you able to find a solution for this? We have the same requirement.

We have developed a small module on Apache HTTP Server that performs an LDAP query to retrieve the UUID and password of the user from the DN of his certificate.
Next, we value the HTTP Authorization header of the request that the reverse-proxy returns to Bitbucket.
As a result, Bitbucket is able to automatically authenticate the user according to the configured LDAP settings.

Will it allow you to do the https git operations using the mirror as well ( using SSL cert based auth)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Training & Certification

Atlassian University Live: Conquering Jira Permissions

Atlassian University Live webinars provide you and your teams with the chance to strengthen your Atlassian product skills, and learn directly from Atlassian experts. Our next webinar is titled Conq...

201 views 4 2
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