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 ?
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.