Fixed bug using ldap.NO_SUCH_OBJECT (ldap module was not imported)