{"action":"closed","issue":{"url":"https://api.github.com/repos/vmware/harbor/issues/451","repository_url":"https://api.github.com/repos/vmware/harbor","labels_url":"https://api.github.com/repos/vmware/harbor/issues/451/labels{/name}","comments_url":"https://api.github.com/repos/vmware/harbor/issues/451/comments","events_url":"https://api.github.com/repos/vmware/harbor/issues/451/events","html_url":"https://github.com/vmware/harbor/issues/451","id":163075810,"number":451,"title":"How to set Simple Authentication LDAP？","user":{"login":"gzvince","id":1761912,"avatar_url":"https://avatars.githubusercontent.com/u/1761912?v=3","gravatar_id":"","url":"https://api.github.com/users/gzvince","html_url":"https://github.com/gzvince","followers_url":"https://api.github.com/users/gzvince/followers","following_url":"https://api.github.com/users/gzvince/following{/other_user}","gists_url":"https://api.github.com/users/gzvince/gists{/gist_id}","starred_url":"https://api.github.com/users/gzvince/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gzvince/subscriptions","organizations_url":"https://api.github.com/users/gzvince/orgs","repos_url":"https://api.github.com/users/gzvince/repos","events_url":"https://api.github.com/users/gzvince/events{/privacy}","received_events_url":"https://api.github.com/users/gzvince/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-06-30T03:54:13Z","updated_at":"2016-07-04T06:38:44Z","closed_at":"2016-07-04T06:38:44Z","body":"If you are reporting a problem, please make sure the following information are provided:\r\n1)Version of docker engine and docker-compose\r\nClient:\r\n Version:      1.11.2\r\n API version:  1.23\r\n Go version:   go1.5.4\r\n Git commit:   b9f10c9\r\n Built:        Wed Jun  1 21:47:50 2016\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.11.2\r\n API version:  1.23\r\n Go version:   go1.5.4\r\n Git commit:   b9f10c9\r\n Built:        Wed Jun  1 21:47:50 2016\r\n OS/Arch:      linux/amd64\r\n\r\n2)Config files of harbor, you can get them by packaging \"Deploy/config\" directory\r\n## Configuration file of Harbor\r\n\r\n#The IP address or hostname to access admin UI and registry service.\r\n#DO NOT use localhost or 127.0.0.1, because Harbor needs to be accessed by external clients.\r\nhostname = r.bd.com\r\n\r\n#The protocol for accessing the UI and token/notification service, by default it is http.\r\n#It can be set to https if ssl is enabled on nginx.\r\nui_url_protocol = http\r\n\r\n#Email account settings for sending out password resetting emails.\r\nemail_server = mail.a.com.cn\r\nemail_server_port = 25\r\nemail_username = a@a.com.cn\r\nemail_password = aaa\r\nemail_from = admin <a@a.com.cn>\r\n\r\n##The password of Harbor admin, change this before any production use.\r\nharbor_admin_password= admin\r\n\r\n##By default the auth mode is db_auth, i.e. the credentials are stored in a local database.\r\n#Set it to ldap_auth if you want to verify a user's credentials against an LDAP server.\r\nauth_mode = ldap_auth\r\n\r\n#The url for an ldap endpoint.\r\nldap_url = ldap://10.16.26.198:389\r\n\r\n#The basedn template to look up a user in LDAP and verify the user's password.\r\nldap_basedn = uid=%s,ou=People,o=a.com.cn,o=isp\r\n\r\n#The password for the root user of mysql db, change this before any production use.\r\ndb_password = admin\r\n\r\n#Turn on or off the self-registration feature\r\nself_registration = on\r\n#####\r\n\r\n3)Log files, you can get them by package the /var/log/harbor/ \r\nJun 30 11:34:25 172.18.0.1 docker/ui[9771]: 2016-06-30T03:34:25Z [DEBUG] [authenticator.go:52]: Current AUTH_MODE is ldap_auth\r\nJun 30 11:34:25 172.18.0.1 docker/ui[9771]: 2016-06-30T03:34:25Z [DEBUG] [ldap.go:47]: ldapURL:ldap://10.16.26.198:389\r\nJun 30 11:34:25 172.18.0.1 docker/ui[9771]: 2016-06-30T03:34:25Z [DEBUG] [ldap.go:69]: baseDn:uid=vince,ou=People,o=a.com.cn,o=isp\r\nJun 30 11:34:25 172.18.0.1 docker/ui[9771]: 2016-06-30T03:34:25Z [WARNING] Found more than one entry.\r\n\r\n##################################\r\n\r\nAs usual, my company LDAP server need to config the LDAP admin login information. Such as admin account & password. After that configure, user can login through LDAP server. How can I set admin account & password in Harbor config?"}}
{"actor":{"display_login":"gzvince"}}