Skip to content
Snippets Groups Projects
Commit c3360c3f authored by David Adam's avatar David Adam
Browse files

fix uidNumber for three/four digit uids

parent f999ec66
Branches
Tags
......@@ -39,6 +39,8 @@ def get_uid(card_id):
def set_card_id(uidNumber, card_id):
ldapconn = get_ldap_connection()
# fix uidNumber for three/four digit uids
uidNumber = str(int(uidNumber))
basedn = 'ou=People,dc=ucc,dc=gu,dc=uwa,dc=edu,dc=au'
filter = ldap.filter.filter_format('(uidNumber=%s)', (uidNumber, ))
attrs = ('objectClass', )
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment