I tried your script and it didn't worked. Isn't it because I need to type in the LDAP parameters? E.g.
(LDAP://ou=kpdk,dc=q8int,dc=com)?

Jan