Adjust to new values of permission groups in 2.1
authorDan Scott <dscott@laurentian.ca>
Tue, 10 Jan 2012 18:47:06 +0000 (13:47 -0500)
committerDan Scott <dscott@laurentian.ca>
Tue, 7 May 2013 18:57:25 +0000 (14:57 -0400)
We shifted the permission group IDs when we upgraded to 2.1 and have to
compensate accordingly in this hard-coded script.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
tools/patron-load/ldap_osrf_sync

index 4fb5a57..ff7caf2 100755 (executable)
@@ -162,17 +162,17 @@ class User:
             affiliation = r'\N'
 
         profile_map = {
-            'ug': 13,
-            'student': 13,
-            'gr': 12,
-            'al': 14,
-            'faculty': 11,
-            'staff': 15,
-            'thorneloe': 15,
-            'thornloe': 15,
+            'ug': 113,
+            'student': 113,
+            'gr': 112,
+            'al': 114,
+            'faculty': 111,
+            'staff': 115,
+            'thorneloe': 115,
+            'thornloe': 115,
             'proxy': None,
             'retired': None,
-            'affiliate': 15
+            'affiliate': 115
         }
 
         if affiliation in profile_map: