mirror of
https://github.com/YunoHost-Apps/gitlab_ynh.git
synced 2024-09-03 18:36:35 +02:00
add attributes to ldap config
This commit is contained in:
parent
f81d841fd4
commit
403cda1dcf
3 changed files with 16 additions and 2 deletions
|
@ -506,7 +506,7 @@ gitlab_rails['ldap_servers'] = YAML.load <<-'EOS' # remember to close this block
|
|||
host: 'localhost'
|
||||
port: 389
|
||||
uid: 'uid'
|
||||
encryption: 'plain' # "start_tls" or "simple_tls" or "plain"
|
||||
encryption: 'plain' # 'start_tls' or 'simple_tls' or 'plain'
|
||||
bind_dn: 'ou=users,dc=yunohost,dc=org'
|
||||
password: ''
|
||||
active_directory: false
|
||||
|
@ -514,6 +514,13 @@ gitlab_rails['ldap_servers'] = YAML.load <<-'EOS' # remember to close this block
|
|||
block_auto_created_users: false
|
||||
base: 'dc=yunohost,dc=org'
|
||||
user_filter: '(&(objectClass=posixAccount)(permission=cn=gitlab.main,ou=permission,dc=yunohost,dc=org))'
|
||||
timeout: 10
|
||||
attributes: {
|
||||
username: ['uid', 'sAMAccountName'],
|
||||
name: 'cn',
|
||||
first_name: 'givenName',
|
||||
last_name: 'sn'
|
||||
}
|
||||
EOS
|
||||
|
||||
### Smartcard authentication settings
|
||||
|
|
|
@ -242,7 +242,7 @@ ynh_script_progression --message="Configuring SSOwat..." --weight=1
|
|||
|
||||
# Make app public if necessary
|
||||
if [ $is_public -eq 1 ]; then
|
||||
ynh_permission_update --permission "main" --remove "all_users" --add "visitors"
|
||||
ynh_permission_update --permission="main" --add "visitors"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -94,6 +94,13 @@ gitlab_rails['ldap_servers'] = YAML.load <<-'EOS' # remember to close this block
|
|||
block_auto_created_users: false
|
||||
base: 'dc=yunohost,dc=org'
|
||||
user_filter: '(&(objectClass=posixAccount)(permission=cn=gitlab.main,ou=permission,dc=yunohost,dc=org))'
|
||||
timeout: 10
|
||||
attributes: {
|
||||
username: ['uid', 'sAMAccountName'],
|
||||
name: 'cn',
|
||||
first_name: 'givenName',
|
||||
last_name: 'sn'
|
||||
}
|
||||
EOS"
|
||||
|
||||
# Add ldap conf
|
||||
|
|
Loading…
Add table
Reference in a new issue