I find that:
GetObject("LDAP://CN=USERNAME,OU=Users,DC=aaa,DC=com")

will not work when executing this code on a client computer unless you also specify a domain or server name as part of the LDAP string.


GetObject("LDAP://NetBIOSDomain/CN=USERNAME,OU=Users,DC=aaa,DC=com")
or
GetObject("LDAP://server/CN=USERNAME,OU=Users,DC=aaa,DC=com")

This tells where the LDAP bind should take place.
_________________________
Home page: http://www.kixhelp.com/hb/