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

0 votes
Saqib I'm New Here Jan 31, 2019

@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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published 15 hours ago in Agile

Managing Projects in Several Jiras at the Same Time

Have you ever noticed that fixing specific problems might be a door opener for a bigger challenge, affecting a wider audience? This was exactly the case when we, as a service company working with mul...

64 views 0 9
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