Révision 5294fd40
Ajouté par Jérôme Schneider il y a plus de 9 ans
mandaye/backends/default.py | ||
---|---|---|
28 | 28 |
bind=create_engine(config.db_url) |
29 | 29 |
) |
30 | 30 |
) |
31 |
elif config.storage_backend == "mandaye.backends.ldap_back": |
|
32 |
import ldap |
|
33 |
storage_conn = ldap.initialize(config.ldap_url) |
|
34 |
storage_conn.protocol_version = ldap.VERSION3 |
|
35 |
storage_conn.simple_bind(config.ldap_bind_dn, config.ldap_bind_password) |
|
31 | 36 |
|
32 | 37 |
backend = import_backend(config.storage_backend) |
33 | 38 |
Association = backend.Association |
Formats disponibles : Unified diff
backends: implement a new ldap storage backend
Closes #5425