Make ldap plugin python3 compatible
Signed-off-by: Olivier Mehani <shtrom+mediagoblin@ssji.net>
This commit is contained in:
parent
7465326f23
commit
8bb15a5477
@ -26,7 +26,7 @@ LDAP server.
|
|||||||
Set up the LDAP plugin
|
Set up the LDAP plugin
|
||||||
======================
|
======================
|
||||||
|
|
||||||
1. Install the ``python-ldap`` package.
|
1. Install the ``python3-ldap`` package.
|
||||||
|
|
||||||
2. Add the following to your MediaGoblin .ini file in the ``[plugins]`` section::
|
2. Add the following to your MediaGoblin .ini file in the ``[plugins]`` section::
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ class LDAP(object):
|
|||||||
email = self._get_email(v, username)
|
email = self._get_email(v, username)
|
||||||
return username, email
|
return username, email
|
||||||
|
|
||||||
except ldap.LDAPError, e:
|
except ldap.LDAPError as e:
|
||||||
_log.info(e)
|
_log.info(e)
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user