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 <dscott@laurentian.ca>
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: