Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

LDAP configuration as a code

Maciej Szczesiak December 7, 2022

Hello, i am installing and configuring Bitbucket via Ansible and i would like to know if it is possible to configure LDAP connection as a code ? Like editing any configuration file ? There is no option like that in the bitbucket.properties file afaik. Or with API calls maybe ?

1 answer

0 votes
Dominik January 30, 2024

I've been wondering the same thing and it doesn't look like it's possible to setup an LDAP connection via configuration file or API call. Would be nice anyone could prove me wrong.

Maciej Szczesiak February 2, 2024

The only option i have found was to get a clean bitbucket installation, configure LDAP as you please and then dump its database, so you basically get a clean install with LDAP configured and you can then script out database import after new bitbucket installation which will contain LDAP config. If its dumb, and works - its not dumb.

Like Dominik likes this
Dominik February 4, 2024

Another option would be to use SQL commands to insert the database objects directly. All LDAP connection related information seems to be stored in these tables:

bitbucket.cwd_directory
bitbucket.cwd_directory_attribute
bitbucket.cwd_directory_operation

 

Maciej Szczesiak February 4, 2024

This might be even better. I didn't look into that very much as i suck in databases and whatever i was doing back then was hung in the closet for some other day that didnt come yet :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events