synchronize-users
Create users in gitlab and add them to a group.
Install
gem install synchronize-users
Usage
Usage: bin/synchronize-users [options]
-f, --logfile FILE Logfile
-v, --verbose Verbose
-c, --config FILE Config file
Configuration
SynchronizeUsers.configure do |config|
config.ldap = {
host: 'ldaphost',
port: 389,
bind_dn: 'DC=domain,DC=com',
bind_password: '123',
treebase: 'DC=domain,DC=com'
}
config.gitlab = {
endpoint: 'http://gitlab',
private_token: 'xxxxx'
}
config.from = { dn: 'CN=Users,DC=domain,DC=com' }
config.to = "employees"
config.role = DEVELOPER
end