updated test script for ldap binding