From da9e40f1697b0934ae4be4b60374b1c678615c7c Mon Sep 17 00:00:00 2001
From: Julian Rother <julianr@fsmpi.rwth-aachen.de>
Date: Fri, 26 May 2017 11:49:49 +0200
Subject: [PATCH] Adapted default config and LDAP emulation to new groups

---
 config.py.example | 4 ++--
 db.py             | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/config.py.example b/config.py.example
index 186b638..fdb02c9 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 866d3d1..b4b04fc 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):
-- 
GitLab