Uploaded image for project: 'Bitbucket Server'
  1. Bitbucket Server
  2. BSERV-3321

Synchronise user on demand for delegated LDAP



    • Suggestion
    • Status: Gathering Interest (View Workflow)
    • Resolution: Unresolved
    • None
    • None
    • 3
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.


      Problem Definition

      For installations that use delegated LDAP for authentication users will be created in Bitbucket Server on their first login. This causes problem for plugins that provide authentication based on a custom token (e.g. SSO token / Kerberos).

      If the plugin is able to resolve the username from the token, but the user has never logged in to Bitbucket Server, authentication will fail because the StashUser cannot be found.

      Migrating to a Delegated Directory in Bitbucket
       While this is possible, there is one caveat which is that users must login for the first time via the UI in order to synchronise user groups and permissions. This means that if you have users who have access keys in their user profile, they will not be able to push using those access keys until they login via the UI or perform an HTTP(s) git operation. 

      Suggested Solution

      Bitbucket Server should provide a way to sync a remote user based on the username.


      Login to Bitbucket Server for the user to be authenticated.


        Issue Links



              Unassigned Unassigned
              mheemskerk Michael Heemskerk
              3 Vote for this issue
              5 Start watching this issue