-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.py.sample
26 lines (20 loc) · 1.3 KB
/
config.py.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# coding: utf-8
class LDAP:
URI = 'ldaps://lea.cbrp3.c-base.org'
# URI = 'ldaps://dea.cbrp3.c-base.org'
BASE = 'dc=c-base,dc=org'
USERBASE = 'ou=crew'
BINDDN = 'cn=c-labpin,ou=bind,dc=c-base,dc=org'
BINDPW = '**********************'
PINFIELD = 'c-labPIN'
UIDFIELD = 'uid'
##ALLOWED: CREW (ALL)
ACCESS_FILTER = '(&(uidNumber={})(memberof=cn=crew,ou=groups,dc=c-base,dc=org)(memberof=cn=crew,ou=groups,dc=c-base,dc=org))'
##ALLOWED: CEY-C-LAB
# ACCESS_FILTER = '(&(uidNumber={})(memberof=cn=cey-c-lab,ou=groups,dc=c-base,dc=org)(memberof=cn=crew,ou=groups,dc=c-base,dc=org))'
##ALLOWED: CEY-SCHLEUSE
# ACCESS_FILTER = '(&(uidNumber={})(memberof=cn=cey-schleuse,ou=groups,dc=c-base,dc=org)(memberof=cn=crew,ou=groups,dc=c-base,dc=org))'
##ALLOWED: CEY-SCHLEUSE, CEY-C-LAB
# ACCESS_FILTER = '(&(uidNumber={})(|(memberof=cn=cey-c-lab,ou=groups,dc=c-base,dc=org)(memberof=cn=cey-schleuse,ou=groups,dc=c-base,dc=org))(memberof=cn=crew,ou=groups,dc=c-base,dc=org))'
##ALLOWED: CEY-SCHLEUSE, CEY-C-LAB, CEY-SOUNDLAB
# ACCESS_FILTER = '(&(uidNumber={})(|(memberof=cn=cey-c-lab,ou=groups,dc=c-base,dc=org)(memberof=cn=cey-soundlab,ou=groups,dc=c-base,dc=org)(memberof=cn=cey-schleuse,ou=groups,dc=c-base,dc=org))(memberof=cn=crew,ou=groups,dc=c-base,dc=org))'