updated the ldap script