Hello,
we are runnning a Bitbucket server instance (version 5.9) with internal user directory only. Now we are planning to hand-over user authentication to LDAP. Current user name scheme in the Bitbucket internal directory is "forename.surname". From LDAP we recieve the user name scheme "forename.surname@mycompany.com".
We tend to use the "delegated user authentication only" approach as described in Delegating Bitbucket Server authentication to an LDAP directory. We run some tests in our development instance (Bitbucket server version 5.13). The connection to LDAP is stable and works as expected. Users were synchronized and put into the correct default group. As next step we renamed user names from internal directory user name scheme to LDAP user name scheme, e.g. from "john.doe" to "john.doe@mycompany.com". From now login was possible with "john.doe@mycompany.com" and LDAP password only. That's what I expected.
However, I discovered user "john.doe@mycompany.com" exists twice in Bitbucket server's database (db cwd_user): One entry is linked to the internal directory and the other one is connected to external directory (LDAP).
The document Deleting users and groups explains what will happen if users are deleted. And now my confusion begins: As far as I understood a user who is deleted, let's assume in LDAP, will be not deleted in Bitbucket server internal directory because Bitbucket Server assumes the administrator intended to migrate the user between directories. But this is not my intention in this szenario.
How can I reliably avoid that a user from internal user directory will be revived, if the user with same name is removed from LDAP? Unfortunately it is not possible to run comprehensive test because my access to LDAP is restricted to read only.
Perhaps I missed an important detail or I missunderstood something. Therefore I would be glad about every hint.
Regards,
Marko
Hi Marko!
That "duplicate" user is normal, it just means that if the LDAP server is down, the internal user can still log in with their internal password. What is in the DB is not a problem, however, if you see double license usage, then that would be an issue. Let us know if that's your case and we'll have a look for you!
Cheers :)
Ana
Hi Ana,
thank you very much for your reply. Fortunately there is no double license usage. However, I'd like to come back to question which is most interesting for me: What happens, if a user is removed from LDAP meanwhile a user with same name still exists in Bitbucket's internal directory?
Thank you.
Marko
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.