fixed ##261
hier wird nun der username auf casesensitiv überprüft.
This commit is contained in:
parent
7d19c13071
commit
18785dad91
|
@ -38,7 +38,10 @@ class Base:
|
|||
retVal.initGeruechte(creditLists)
|
||||
if workgroups:
|
||||
retVal.workgroups = self.getWorkgroupsOfUser(retVal.id)
|
||||
if retVal.uid == username:
|
||||
return retVal
|
||||
else:
|
||||
return None
|
||||
except Exception as err:
|
||||
traceback.print_exc()
|
||||
self.db.connection.rollback()
|
||||
|
|
|
@ -52,12 +52,15 @@ class LDAPController(metaclass=Singleton):
|
|||
'dn': self.ldap.connection.response[0]['dn'],
|
||||
'firstname': user['givenName'][0],
|
||||
'lastname': user['sn'][0],
|
||||
'uid': username,
|
||||
'uid': user['uid'][0],
|
||||
}
|
||||
if user['mail']:
|
||||
retVal['mail'] = user['mail'][0]
|
||||
debug.debug("user is {{ {} }}".format(retVal))
|
||||
if retVal['uid'] == username:
|
||||
return retVal
|
||||
else:
|
||||
raise Exception()
|
||||
except:
|
||||
debug.warning("exception in get user data from ldap", exc_info=True)
|
||||
raise PermissionDenied("No User exists with this uid.")
|
||||
|
|
Loading…
Reference in New Issue