We need to reflect Alumni status, which comes only from the DN, rather
than from the primary affiliation, etc, so trump everything else with
that.
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Map LDAP record to Evergreen profile
"""
- if 'lulStudentLevel' in self.ldap_atts:
+ if 'alumni' in self.cname.lower():
+ affiliation = 'alumni'
+ elif 'lulStudentLevel' in self.ldap_atts:
affiliation = self._simple_map('lulStudentLevel').lower()
elif 'lulPrimaryAffiliation' in self.ldap_atts:
affiliation = self._simple_map('lulPrimaryAffiliation').lower()