ldap script