Use an anonymous LDAP bind to search for MIFARE cards - server ACLs have been updated...
authorDavid Adam <[email protected]>
Sun, 30 Jan 2011 06:06:56 +0000 (06:06 +0000)
committerDavid Adam <[email protected]>
Sun, 30 Jan 2011 06:06:56 +0000 (06:06 +0000)
sql-edition/servers/LDAPConnector.py

index 9e3a307..6a8d67a 100644 (file)
@@ -12,12 +12,8 @@ def get_ldap_connection():
         #ldap.set_option(ldap.OPT_DEBUG_LEVEL,255)
         conn = ldap.initialize('ldaps://mussel.ucc.gu.uwa.edu.au:636/')
         
-        binddn = 'cn=admin,dc=ucc,dc=gu,dc=uwa,dc=edu,dc=au'
-        passfile = open('/etc/pam_ldap.secret')
-        password = passfile.readline().strip()
-        passfile.close()
-
-        conn.simple_bind_s(binddn, password)
+        # Anonymous bind - server ACLs should allow searching on uccDispenseMIFARE
+        conn.simple_bind_s()
         return conn
 
 def get_uid(card_id):

UCC git Repository :: git.ucc.asn.au