diff --git a/config.py.example b/config.py.example index 186b638439da3da382799862eb27ab9d449e4038..fdb02c92b54e19caf93afbd6028a3156713f2fcc 100644 --- a/config.py.example +++ b/config.py.example @@ -23,9 +23,9 @@ SQLITE_INIT_DATA = True #JOBS_API_KEY = 'something random' -#LDAP_HOST = 'rumo.fsmpi.rwth-aachen.de' +#LDAP_HOST = 'auth.fsmpi.rwth-aachen.de' LDAP_PORT = 636 -LDAP_GROUPS = ['users'] +LDAP_GROUPS = ['fachschaft'] #ICAL_URL = 'https://user:password@mail.fsmpi.rwth-aachen.de/SOGo/....ics' ERROR_PAGE = 'static/500.html' RWTH_IP_RANGES = ['134.130.0.0/16', '137.226.0.0/16', '134.61.0.0/16', '192.35.229.0/24', '2a00:8a60::/32'] diff --git a/db.py b/db.py index 866d3d1d77e280931912085d680c9f39954a6c39..b4b04fc85e49ab8260cb9383ff493e9219922b07 100644 --- a/db.py +++ b/db.py @@ -163,8 +163,8 @@ if 'LDAP_HOST' in config: else: notldap = { - 'videoag':('videoag', ['users','videoag'], {'uid': 'videoag', 'givenName': 'Video', 'sn': 'Geier'}), - 'gustav':('passwort', ['users'], {'uid': 'gustav', 'givenName': 'Gustav', 'sn': 'Geier'}) + 'videoag':('videoag', ['fachschaft','videoag'], {'uid': 'videoag', 'givenName': 'Video', 'sn': 'Geier'}), + 'gustav':('passwort', ['fachschaft'], {'uid': 'gustav', 'givenName': 'Gustav', 'sn': 'Geier'}) } def ldapauth(user, password):