Ldap集成常用开源服务示例图
//
# ldap集成svn
# ldap集成jira
# ldap集成jumpserver
# ldap集成nexus
# ldap集成rancher
# ldap集成gitlab
gitlab_Version:9.1.3
vi /etc/gitlab/gitlab.rdb
gitlab_rails['ldap_enabled'] = true
gitlab_rails['ldap_servers'] = YAML.load <<-'EOS'
main:
label: 'LDAP'
host: '192.168.14.11'
port: 389
uid: 'cn' #默认SamAccountName 如果要使用中文登录时就使用默认配置SamAccountName,英文登录为cn
method: 'plain' # "tls" or "ssl" or "plain"
bind_dn: 'cn=admin,dc=yfklife,dc=cn' #ldap管理员登录用户
password: 'yfk123456' ##指定ldap服务器的管理员密码
active_directory: false
allow_username_or_email_login: false
block_auto_created_users: false
base: 'ou=users,dc=yfklife,dc=cn' #注意ou名称,和ldap组织对应
user_filter: ''
attributes:
username: ['uid', 'userid', 'sAMAccountName']
email: ['mail', 'email', 'userPrincipalName']
name: 'cn'
first_name: 'givenName'
last_name: 'sn'
EOS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# ldap集成jenkins
//
如果此文章对您有帮助,点击 -->> 请博主喝咖啡 (opens new window)
上次更新: 2022/01/23, 22:44:55