-
Notifications
You must be signed in to change notification settings - Fork 70
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
ldapcherryd command execution error #57
Comments
Configuration error, wrong credentials, unable to connect to ldap with 'cn=Manager,dc=ldap,dc=idpbg,dc=com' File "/usr/local/lib/python2.7/site-packages/ldapcherry-1.1.1-py2.7.egg/ldapcherry/exceptions.py", line 229, in ret File "/usr/local/lib/python2.7/site-packages/ldapcherry-1.1.1-py2.7.egg/ldapcherry/init.py", line 895, in login File "/usr/local/lib/python2.7/site-packages/ldapcherry-1.1.1-py2.7.egg/ldapcherry/init.py", line 356, in _auth File "/usr/local/lib/python2.7/site-packages/ldapcherry-1.1.1-py2.7.egg/ldapcherry/backend/backendLdap.py", line 402, in auth File "/usr/local/lib/python2.7/site-packages/ldapcherry-1.1.1-py2.7.egg/ldapcherry/backend/backendLdap.py", line 315, in _get_user File "/usr/local/lib/python2.7/site-packages/ldapcherry-1.1.1-py2.7.egg/ldapcherry/backend/backendLdap.py", line 275, in _search File "/usr/local/lib/python2.7/site-packages/ldapcherry-1.1.1-py2.7.egg/ldapcherry/backend/backendLdap.py", line 247, in _bind File "/usr/local/lib/python2.7/site-packages/ldapcherry-1.1.1-py2.7.egg/ldapcherry/backend/backendLdap.py", line 244, in _bind File "/usr/local/lib/python2.7/site-packages/python_ldap-3.2.0-py2.7-linux-x86_64.egg/ldap/ldapobject.py", line 446, in simple_bind_s File "/usr/local/lib/python2.7/site-packages/python_ldap-3.2.0-py2.7-linux-x86_64.egg/ldap/ldapobject.py", line 751, in result3 File "/usr/local/lib/python2.7/site-packages/python_ldap-3.2.0-py2.7-linux-x86_64.egg/ldap/ldapobject.py", line 758, in result4 File "/usr/local/lib/python2.7/site-packages/python_ldap-3.2.0-py2.7-linux-x86_64.egg/ldap/ldapobject.py", line 331, in _ldap_call File "/usr/local/lib/python2.7/site-packages/python_ldap-3.2.0-py2.7-linux-x86_64.egg/ldap/ldapobject.py", line 315, in _ldap_call INVALID_CREDENTIALS: {'desc': u'Invalid credentials'} |
Not sure about the first comment issue. But for the second comment, it looks like the credentials to your ldap server are wrong. I would advice you check if these are correct using something like ldapsearch (https://serverfault.com/questions/514870/how-do-i-authenticate-with-ldap-via-the-command-line), to make sure these credentials are okay. If you are not able to bind using ldapsearch and the same credentials, it might be an issue with ldapcherry and we will look into it deeper then. But for now, please check if the credentials are okay. |
The first comment issue is caused if you installed LdapCherry using python2. Use python3 when installing and it resolves the issue. |
Using python3 solved it for me. But I would suggest an update to the docs then. |
[root@ZZ-LDAP01 ~]# /usr/local/bin/ldapcherryd
Traceback (most recent call last):
File "/usr/local/bin/ldapcherryd", line 11, in
load_entry_point('ldapcherry==1.1.1', 'console_scripts', 'ldapcherryd')()
File "/usr/local/lib/python2.7/site-packages/pkg_resources/init.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python2.7/site-packages/pkg_resources/init.py", line 2852, in load_entry_point
return ep.load()
File "/usr/local/lib/python2.7/site-packages/pkg_resources/init.py", line 2443, in load
return self.resolve()
File "/usr/local/lib/python2.7/site-packages/pkg_resources/init.py", line 2449, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/local/lib/python2.7/site-packages/ldapcherry-1.1.1-py2.7.egg/ldapcherry/init.py", line 20, in
from ldapcherry.exceptions import *
File "/usr/local/lib/python2.7/site-packages/ldapcherry-1.1.1-py2.7.egg/ldapcherry/exceptions.py", line 9, in
import cherrypy
File "/usr/local/lib/python2.7/site-packages/CherryPy-17.4.2-py2.7.egg/cherrypy/init.py", line 66, in
from ._cperror import (
File "/usr/local/lib/python2.7/site-packages/CherryPy-17.4.2-py2.7.egg/cherrypy/_cperror.py", line 129, in
from more_itertools import always_iterable
File "build/bdist.linux-x86_64/egg/more_itertools/init.py", line 1, in
File "/usr/local/lib/python2.7/site-packages/more_itertools-7.2.0-py2.7.egg/more_itertools/more.py", line 340
def _collate(*iterables, key=lambda a: a, reverse=False):
How to fix it ,please
The text was updated successfully, but these errors were encountered: