From: Dan Scott Date: Wed, 14 Sep 2016 17:53:30 +0000 (-0400) Subject: Fallback to lulAffiliation for affiliation X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=668c3abf42e048dac6a5b7c73278326ce37dc180;p=contrib%2FConifer.git Fallback to lulAffiliation for affiliation Because some older (2011ish) LDAP accounts don't have lulPrimaryAffiliation attributes. Signed-off-by: Dan Scott --- diff --git a/tools/patron-load/ldap_osrf_sync b/tools/patron-load/ldap_osrf_sync index 95e143e466..4724e05f7d 100755 --- a/tools/patron-load/ldap_osrf_sync +++ b/tools/patron-load/ldap_osrf_sync @@ -171,6 +171,8 @@ class User: affiliation = self._simple_map('lulStudentLevel').lower() elif 'lulPrimaryAffiliation' in self.ldap_atts: affiliation = self._simple_map('lulPrimaryAffiliation').lower() + elif 'lulAffiliation' in self.ldap_atts: + affiliation = self._simple_map('lulPrimaryAffiliation').lower() else: affiliation = r'\N'