Updated ldap scripts