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

ssh-ldap-pubkey always timeouts #35

Open
cadavre opened this issue Oct 9, 2019 · 3 comments
Open

ssh-ldap-pubkey always timeouts #35

cadavre opened this issue Oct 9, 2019 · 3 comments

Comments

@cadavre
Copy link

cadavre commented Oct 9, 2019

I'm struggling to configure another instance using ssh-ldap-pubkey – I'm getting forever search (set by /etc/ldap.conf:timelimit) ldap.TIMEOUT.

I have this config:

binddn cn=provider,dc=example,dc=com
bindpw secretpass
base dc=example,dc=com
nss_base_passwd ou=users,dc=example,dc=com

The connection is estabilished to LDAP server (can see it via lsof -iTCP).

Users in my LDAP are having DN like:
uid=my.user,ou=users,dc=example,dc=com

Any ideas where timeout comes?

@cadavre
Copy link
Author

cadavre commented Oct 9, 2019

In a matter of fact I noticed LDAP is not accepting any new connection when calling ssh-ldap-pubkey.

I have a ldap.example.com LDAP using 389 and 636 port with only-TLS connection. No STARTTLS.

I have all my LDAP-clients configured with:

host: ldap.example.com
port: 389
encryption: ssl

It works everywhere but /etc/ldap.conf...

@jirutka
Copy link
Owner

jirutka commented Oct 17, 2019

How does your uri look like? You should use ldaps://ldap.example.com for TLS without STARTTLS.

@cadavre
Copy link
Author

cadavre commented Oct 17, 2019

With either:

uri ldap://ldap.example.com
uri ldaps://ldap.example.com
uri ldaps://ldap.example.com:636
uri ldap://ldap.example.com:636

I get immediate:

Error: Can't contact LDAP server.

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

2 participants