Use the lower-case version of the CN
authorDan Scott <dscott@laurentian.ca>
Mon, 28 Sep 2015 19:43:17 +0000 (15:43 -0400)
committerDan Scott <dscott@laurentian.ca>
Mon, 28 Sep 2015 19:43:17 +0000 (15:43 -0400)
Because CamelCase names don't work well when people are logging in with
lower case names.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
tools/patron-load/ldap_osrf_sync

index 3796c28..260be80 100755 (executable)
@@ -83,7 +83,7 @@ class User:
         self.cname = raw_cn
         self.ldap_atts = raw_atts
 
-        self.cn = self._simple_map('cn')
+        self.cn = self._simple_map('cn').lower()
         self.lang_pref = self._simple_map('preferredLanguage')
 
         if 'mail' not in self.ldap_atts: