From 5155ffb5f2db9d4705ce4b901dbe333a453e79a2 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Wed, 10 Sep 2014 22:31:52 -0400 Subject: [PATCH] Convert usernames to lowercase As our LDAP authentication is using all lowercase, we should be generating accounts in the database in all lowercase too. Signed-off-by: Dan Scott --- tools/patron-load/ldap_osrf_sync | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/patron-load/ldap_osrf_sync b/tools/patron-load/ldap_osrf_sync index cf3c9b8edb..9a1c13413d 100755 --- a/tools/patron-load/ldap_osrf_sync +++ b/tools/patron-load/ldap_osrf_sync @@ -85,9 +85,9 @@ class User: if 'mail' not in self.ldap_atts: if self.lang_pref and self.lang_pref == 'f': - self.email = self.cn + '@laurentienne.ca' + self.email = (self.cn + '@laurentienne.ca').lower() else: - self.email = self.cn + '@laurentian.ca' + self.email = (self.cn + '@laurentian.ca').lower() print >> sys.stderr, '"mail" not found for %s, using %s' % (self.cn, self.email) # return None else: -- 2.11.0