diff --git a/auth.py b/auth.py index e24f82015f518a37b7f392823373535e5a874ef2..fe838a73d8335d19709e21674e70cf6d81d6ba7a 100644 --- a/auth.py +++ b/auth.py @@ -65,6 +65,7 @@ class LdapManager: connection = ldap3.Connection(self.server) obj_def = ldap3.ObjectDef("posixgroup", connection) group_reader = ldap3.Reader(connection, obj_def, self.group_dn) + username = username.lower() for group in group_reader.search(): members = group.memberUid.value if members is not None and username in members: diff --git a/server.py b/server.py index fe92ad4430b5c19e36b6cd6a156724a6260ec463..0ca5a9ab242028b26c8ef8374206e0e2686f20cc 100755 --- a/server.py +++ b/server.py @@ -326,7 +326,7 @@ def new_default_top(protocoltype): for protocol in protocoltype.protocols: if not protocol.done: localtop = LocalTOP(protocol_id=protocol.id, - defaulttop_id=defaultop.id, description="") + defaulttop_id=defaulttop.id, description="") db.session.add(localtop) db.session.commit() flash("Der Standard-TOP {} wurde für dem Protokolltyp {} hinzugefügt.".format(defaulttop.name, protocoltype.name), "alert-success")