Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: unable to connect to test ldap server #8

Open
rajatjindal opened this issue Sep 29, 2017 · 0 comments
Open

Question: unable to connect to test ldap server #8

rajatjindal opened this issue Sep 29, 2017 · 0 comments

Comments

@rajatjindal
Copy link

I am trying to use kubernetes-ldap for one of our project, when I bring up the server and try to call ldapAuth end point on it, i get following in logs of server:

ERROR: logging before flag.Parse: E0929 05:19:13.882856 20 token_issuer.go:31] Error authenticating user: Error opening LDAP connection: LDAP Result Code 200 "Network Error": EOF

Curl command that I am running:

curl -kvXGET 'https://localhost:4000/ldapAuth' --user 'user:password'

Command used to run the server:

./bin/kubernetes-ldap --ldap-host ldaphost.example.com
--ldap-base-dn "DC=lab,DC=example,DC=com"
--tls-cert-file tld.cert
--tls-private-key-file tls.cert.private.key
--ldap-search-user-dn "cn=admin,dc=lab,dc=example,dc=com"
--ldap-search-user-password 'password'
--ldap-skip-tls-verification true
--ldap-insecure true

By any chance do you guys have detailed instructions to setup and test this working using docker images.

P.S. I tried connecting to the my ldap using ldapsearch, and it works just fine. (I do need to add '-x' option when running ldapsearch though)

Thanks
Rajat Jindal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant