Revision 22eeae99
Added by Thomas Noël over 12 years ago
extra/modules/ezldap.py | ||
---|---|---|
4 | 4 |
entry. |
5 | 5 |
''' |
6 | 6 |
|
7 |
import ldap |
|
8 |
import ldap.modlist |
|
7 |
try: |
|
8 |
import ldap |
|
9 |
import ldap.modlist |
|
10 |
except ImportError: |
|
11 |
ldap = None |
|
12 |
|
|
9 | 13 |
LDAP_EMAIL = 'courriel' |
10 | 14 |
|
11 | 15 |
import time |
Also available in: Unified diff
don't crash if ldap is not available (fix #1620)