sigcheck: Import userdir_ldap so CheckLDAP() can find connectLDAP()
[mirror/userdir-ldap.git] / sigcheck
index 69db152..f3c17f0 100755 (executable)
--- 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