Modify the LDAP service to only use lowercase UIDs.
UVA always returns the UID as lowercase. This caused a postgres unique value problem for us.
This commit is contained in:
parent
428802b9d0
commit
8df1145471
|
@ -58,6 +58,7 @@ class LdapService(object):
|
|||
|
||||
@staticmethod
|
||||
def user_info(uva_uid):
|
||||
uva_uid = uva_uid.lower()
|
||||
user_info = db.session.query(LdapModel).filter(LdapModel.uid == uva_uid).first()
|
||||
if not user_info:
|
||||
app.logger.info("No cache for " + uva_uid)
|
||||
|
|
Loading…
Reference in New Issue