X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=blobdiff_plain;f=sigcheck;fp=sigcheck;h=f3c17f0faeb12b0c132233d949c2205afd0b5b36;hp=69db15221ab91768b714de6a3e37885b3b8707c7;hb=7248a95ca36419e77915982d71370c6b45e0ddd9;hpb=6e0774c6d01746bdf3677a230fcfa75839b58c61 diff --git a/sigcheck b/sigcheck index 69db152..f3c17f0 100755 --- a/sigcheck +++ b/sigcheck @@ -49,13 +49,14 @@ def verbmsg(msg): # Match the key fingerprint against an LDAP directory def CheckLDAP(FingerPrint): import ldap; + import userdir_ldap; # Connect to the ldap server global ErrTyp, ErrMsg; ErrType = EX_TEMPFAIL; ErrMsg = "An error occurred while performing the LDAP lookup:"; global l; - l = connectLDAP(LDAPServer); + l = userdir_ldap.connectLDAP(LDAPServer); l.simple_bind_s("",""); # Search for the matching key fingerprint