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

Specify LDAP URI and base DN on command line instead of configuration file #48

Open
sharbich opened this issue Mar 3, 2021 · 0 comments

Comments

@sharbich
Copy link

sharbich commented Mar 3, 2021

Hi,
when I issue the following command I get the following error message:
root@ldap:~# ssh-ldap-pubkey list -b ou=users,dc=intern,dc=example,dc=com -H ldaps://ldap.intern.example.com -u stefan.harbich Traceback (most recent call last): File "/usr/local/bin/ssh-ldap-pubkey", line 144, in <module> main(**kwargs) File "/usr/local/bin/ssh-ldap-pubkey", line 126, in main keys = ldapssh.find_pubkeys(login) File "/usr/local/lib/python2.7/dist-packages/ssh_ldap_pubkey/__init__.py", line 209, in find_pubkeys return self._find_pubkeys(self.find_dn_by_login(login)) File "/usr/local/lib/python2.7/dist-packages/ssh_ldap_pubkey/__init__.py", line 240, in find_dn_by_login result = self._conn.search_s(conf.base, conf.scope, filter_s, ['dn']) File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 852, in search_s return self.search_ext_s(base,scope,filterstr,attrlist,attrsonly,None,None,timeout=self.timeout) File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 845, in search_ext_s msgid = self.search_ext(base,scope,filterstr,attrlist,attrsonly,serverctrls,clientctrls,timeout,sizelimit) File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 841, in search_ext timeout,sizelimit, File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 329, in _ldap_call reraise(exc_type, exc_value, exc_traceback) File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 313, in _ldap_call result = func(*args,**kwargs) ldap.SERVER_DOWN: {'info': u'(unknown error code)', 'errno': 115, 'desc': u"Can't contact LDAP server"}
The LDAP server is online:
`root@ldap:# netstat -tulpen | grep 636
tcp 0 0 192.168.20.20:636 0.0.0.0:* LISTEN 0 53490689 32604/slapd
root@ldap:
# nslookup

192.168.20.20
20.20.168.192.in-addr.arpa name = dsme01.intern.example.com.
20.20.168.192.in-addr.arpa name = ldap.intern.example.com.
20.20.168.192.in-addr.arpa name = mysql.intern.example.com.
`
Could it be a rights issue?

Greetings from Stefan Harbich

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