gitlab_rails['ldap_enabled'] = true
gitlab_rails['ldap_servers'] = YAML.load
main: # 'main' is the GitLab 'provider ID' of this LDAP server
label: 'LDAP'
host: 'ServerLdap'
port: 389
uid: 'sAMAccountName'
method: 'plain' # "tls" or "ssl" or "plain"
bind_dn: 'uid=***,ou=JeniePortal,ou=applications,***'
password: '[email protected]'
active_directory: false
allow_username_or_email_login: false
base: '0=sample'
user_filter: ''
EOS
我試過也用uid代替sAMAccountName
。
仍然有用戶無法進行身份驗證。
請任何幫助。gitlab 7.7.2在RHEL 6 ldap配置
gitlab耙gitlab:ENV:信息 系統信息系統:RedHatEnterpriseServer 6.6當前用戶:git的使用RVM:沒有紅寶石版本:2.1.4p265寶石版本:2.2.1 Bundler版本:1.5.3 Rake版本:10.3.2 Sidekiq版本:2.17.8 GitLab信息版本:7.7.2修訂版:bd98290目錄:/ opt/gitlab/embedded/service/gitlab-rails數據庫適配器:postgresql URL:http:// ****** dcn HTTP克隆URL:http://**dcn/some-project.git SSH克隆URL:git @ ******* dcn:some- project.git使用LDAP:是使用Omniauth:否 GitLab Shell版本:2.4.2存儲庫: – user3693409 2015-02-10 15:10:09
gitlab-rake gitlab:check正在檢查環境... Git配置爲git用戶? ...是 檢查環境......說完 檢查GitLab殼牌... – user3693409 2015-02-10 15:10:55
檢查Sidekiq ......說完 檢查LDAP ... LDAP用戶訪問您的服務器GitLab(只顯示前100結果)服務器:ldapmain DN:uid =菲德爾塞維利亞諾uid:菲德爾塞維利亞諾DN:uid =測試tsbuser2343 uid:測試tsbuser2343 DN:uid =測試tsbuser2341 uid:測試tsbuser2341 – user3693409 2015-02-10 15:11:10