X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=sigcheck;h=f3c17f0faeb12b0c132233d949c2205afd0b5b36;hb=e9857f007f9521223aa389a71919f4232fd18866;hp=69db15221ab91768b714de6a3e37885b3b8707c7;hpb=703033b7eeaffc61568300877d2d452651388acf;p=mirror%2Fuserdir-ldap.git 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