Kallithea issues archive

Issue #158: Error Connecting LDAP (active directory)

Reported by: Leonid Lee
State: resolved
Created on: 2015-09-15 19:46
Updated on: 2015-09-16 08:52


Hello. I have installed Kallithea and it works. But i cannot connect LDAP catalogue. I have error:

2015-09-15 22:30:37.980 ERROR [kallithea.lib.auth_modules.auth_ldap] Traceback (most recent call last):
  File "/opt/hg/venv/lib/python2.6/site-packages/kallithea/lib/auth_modules/auth_ldap.py", line 329, in auth
    aldap = AuthLdap(**kwargs)
  File "/opt/hg/venv/lib/python2.6/site-packages/kallithea/lib/auth_modules/auth_ldap.py", line 56, in __init__
    raise LdapImportError

2015-09-15 22:30:37.980 WARNI [kallithea.lib.auth_modules] User `leela` failed to authenticate against kallithea.lib.auth_modules.auth_ldap

Could You tell me please what should I do to get debug log level. I set loglevel to debug here

level = DEBUG
handlers =
qualname = kallithea
propagate = 1

But still do not understand what is misconfigured.




Comment by Mads Kiilerich, on 2015-09-15 22:28

I guess you need the python ldap module. Does it work after "pip install python-ldap"?

If so, can you contribute a patch to the documentation that would have helped you?

Comment by Leonid Lee, on 2015-09-15 22:30

Python-ldap is already intalled. It is listed on system info page.

Comment by Mads Kiilerich, on 2015-09-15 22:50

try to launch

python -c "import ldap"

inside your virtualenv. What does it say?

Comment by Leonid Lee, on 2015-09-16 08:48

@kiilerix Thank You! You was abolutely right!

Now it works! Have a nice day!

Comment by Leonid Lee, on 2015-09-16 08:52

I found that information about libs is already documented. It was my first virtual environment, so I didn't know I should install python-ldap inside the venv. That caused ldap error. Thank You again.

Comment by Leonid Lee, on 2015-09-16 08:52