replaced check_ldap_sync script