From 3afa8e70bb20430f23d39714d0e1c4ded99d16cf Mon Sep 17 00:00:00 2001 From: Bas Zoetekouw Date: Mon, 27 Nov 2023 09:15:03 +0100 Subject: [PATCH] Fix abbreviation attribute see https://github.com/SURFscz/SBS/commit/566b2ba84f2c3a7cac3b07838a1fdc96049f8298 --- plsc_ordered.py | 2 +- sbs.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/plsc_ordered.py b/plsc_ordered.py index fe70442..e9e14dc 100755 --- a/plsc_ordered.py +++ b/plsc_ordered.py @@ -125,7 +125,7 @@ def create(src, dst): 'objectClass': ['dcObject', 'organization', 'extensibleObject'], 'dc': [service], 'o': [service], - 'name': [details['short_name']], + 'name': [details['abbreviation']], 'displayName': [details['name']], } aup = details['aup'] diff --git a/sbs.py b/sbs.py index 49368be..86ff71c 100644 --- a/sbs.py +++ b/sbs.py @@ -181,8 +181,7 @@ def service_collaborations(self): 'aup': services[s].get('accepted_user_policy', None), 'pp': services[s].get('privacy_policy', None), 'enabled': services[s].get('ldap_enabled', False), - # 'short_name': services[s].get('short_name', None), - 'short_name': services[s]['entity_id'], + 'abbreviation': services[s].get('abbreviation', None), 'name': services[s].get('name', None), }