Do not create accounts for applicants
authorDan Scott <dscott@laurentian.ca>
Fri, 17 Jul 2015 15:14:15 +0000 (11:14 -0400)
committerDan Scott <dscott@laurentian.ca>
Fri, 17 Jul 2015 15:14:15 +0000 (11:14 -0400)
Signed-off-by: Dan Scott <dscott@laurentian.ca>
tools/patron-load/ldap_osrf_sync

index 9d2bb63..3d9245c 100755 (executable)
@@ -584,7 +584,7 @@ def ldap_query(con, auth):
             '(objectclass=lulEduPerson)', ARGS.query_sn
         )
     elif (ARGS.query_id):
-        ldap_filter = '(&%s(lulColleagueId=%s))' % (
+        ldap_filter = '(&%s(lulColleagueId=%s)(!(lulStudentLevel=APP)))' % (
             '(objectclass=lulEduPerson)', ARGS.query_id
         )
     if not ldap_filter: