Projet

Général

Profil

« Précédent | Suivant » 

Révision 5294fd40

Ajouté par Jérôme Schneider il y a plus de 9 ans

backends: implement a new ldap storage backend

Closes #5425

Voir les différences:

mandaye/global_config.py
4 4
_PROJECT_PATH = os.path.join(os.path.dirname(__file__), '..')
5 5

  
6 6
# Choose storage
7
# Only sql at the moment
7
# mandaye.backends.ldap_back or mandaye.backends.sql
8 8
storage_backend = "mandaye.backends.sql"
9 9

  
10 10
## SQL Backend config
11 11
# Database configuration
12
# http://docs.sqlalchemy.org/en/rel_0_7/core/engines.html
12
# http://docs.sqlalchemy.org/en/rel_0_8/core/engines.html
13 13
# rfc 1738 https://tools.ietf.org/html/rfc1738
14 14
# dialect+driver://username:password@host:port/database
15 15
db_url = 'sqlite:///test.db'
16 16

  
17
## LDAP Backend config
18
ldap_url = 'ldap://127.0.0.1'
19
ldap_bind_dn = 'cn=admin,dc=acompany,dc=org'
20
ldap_bind_password = 'MyPassword'
21
ldap_base_dn = 'ou=mandaye,dc=acompany,dc=org'
17 22

  
18 23
# urllib2 debug mode
19 24
debug = False

Formats disponibles : Unified diff