docker_auth
docker_auth copied to clipboard
connect ldap
may i ask an question?i want to connect to ldap ,so i write ldap_auth.yml, like this:
server:
addr: :5001
certificate: /ssl/server.pem
key: /ssl/server.key
token:
issuer: Acme auth server
expiration: 900
ldap_auth:
# Addr is the hostname:port or ip:port
addr: ldap://xxxxxx:389
# Setup tls connection method to be
# "" or "none": the communication won't be encrypted
# "always": setup LDAP over SSL/TLS
# "starttls": sets StartTLS as the encryption method
tls: always
# set to true to allow insecure tls
insecure_tls_skip_verify: false
# In case bind DN and password is required for querying user information,
# specify them here. Plain text password is read from the file.
bind_dn:
bind_password_file:
# User query settings. ${account} is expanded from auth request
base:uid=${account},ou=infocenter,dc=xxx,dc=com
filter: (&(uid=${account})(objectClass=posixAccount)(objectClass=top))
acl:
# This will allow authenticated users to pull/push
- match:
account: /.+/
actions: ['*']
but after i run the docker_auth and regidtry,i login localhost:5000,this comming an error: Error response from daemon: Get http://192.168.111.128:5000/v2/: received unexpected HTTP status: 500 Internal Server Error what should i do?and what i should write?
Are you able to run auth_server with enhanced debug output? You can see the instructions on how to do so here: https://github.com/cesanta/docker_auth#troubleshooting