K
K
Kirill Ponomarev2018-04-28 16:13:18
linux
Kirill Ponomarev, 2018-04-28 16:13:18

How to synchronize users in Gitlab CE with AD without logging into Gitlab itself?

Good time.
There is such a moment in the work of Gitlab CE with users in AD. Gitlab CE does not add a user if they are not logged in. Those. I can't assign the rights to the repository to a user created in AD until he is logged into Gitlab. Is there an option to sync users on the fly?

spoiler
gitlab_rails['ldap_servers'] = YAML.load <<-'EOS'
main: # 'main' is the GitLab 'provider ID' of this LDAP server
label: 'LDAP'
host: '192.168.1.1'
port: 389
uid: 'sAMAccountName'
bind_dn: 'my_bind_dn'
password: 'password'
encryption: 'plain' # "start_tls" or "simple_tls" or "plain"
verify_certificates: false
active_directory: true
allow_username_or_email_login: false
lowercase_usernames: false
block_auto_created_users: false
base: '_base'
user_filter: ''
## EE only
# group_base: ''
# admin_group: ''
# sync_ssh_keys: false
EOS

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Zakharov, 2018-04-28
@blazenn12

One option is to write a script that takes users from AD and creates them in gitlab

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question