Can you not do something in the script on the ldap as in fx. dsquery /userD:administrator /passwordD:XXXXXXxXXXX