Map LDAP record to Evergreen identity type and value
"""
+ if 'lulColleagueId' not in self.ldap_atts:
+ print >> sys.stderr, 'No lulColleagueId for %s' % (self.ldap_atts)
+ return 2, 'NO_COLLEAGUE_ID'
+
ident_value = self.ldap_atts['lulColleagueId'][0].strip().lower()
if len(ident_value) != 7:
print >> sys.stderr, 'Datatel number not 7 chars for %s (%s)' % (
return profile_map[affiliation]
else:
print >> sys.stderr, "Affiliation '%s' not mapped to a profile " \
- "for user %s" % (affiliation, self.usrname)
+ "for user %s" % (affiliation, self.ldap_atts)
return None
def get_home_ou(self):