claudyus / LXC-Web-Panel

LXC Web Panel improved for lxc 1.0+
http://claudyus.github.io/LXC-Web-Panel/
Other
221 stars 68 forks source link

ldap authentication does not work #107

Open patrakov opened 8 years ago

patrakov commented 8 years ago

the ldap.py authenticator contains this:

import ldap as ldap_m

The intention is to import the ldap module provided by the "python-ldap" package. On Ubuntu 14.04, though, the module itself (i.e. the authenticator) is imported instead, leading to this error:

'module' object has no attribute 'initialize'

The same issue applies to the fallback import in the pam.py authenticator.