From 668c3abf42e048dac6a5b7c73278326ce37dc180 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Wed, 14 Sep 2016 13:53:30 -0400 Subject: [PATCH] Fallback to lulAffiliation for affiliation Because some older (2011ish) LDAP accounts don't have lulPrimaryAffiliation attributes. Signed-off-by: Dan Scott --- tools/patron-load/ldap_osrf_sync | 2 ++ 1 file changed, 2 insertions(+) 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' -- 2.11.0