Rather than literally using "NO_COLLEAGUE_ID" as the colleague ID, refuse to
create or update the corresponding record. Any LDAP records created through the
normal process should have colleague IDs, even for visitors/guests.
Signed-off-by: Dan Scott <dscott@laurentian.ca>
if ARGS.dump_ldap:
dump_data(raw_atts)
print("dn = '%s'" % (raw_user))
+ if user.ident_value == 'NO_COLLEAGUE_ID':
+ print >> sys.stderr, "No colleague ID: skipping"
+ continue
if ARGS.create_users:
res = create_evergreen_user(auth, user)
if res: