I can easily locate a user with the GetObject command if I know exactly
which OU or Container a user is located in. My question is how do I locate
the user with the GetObject command if I don't know which OU that account
may be located in?
This line works if I know that Joe User's account is in the Somewhere OU.
set adUser = GetObject("LDAP://CN=Joe User,OU=Somewhere,DC=company,DC=com")
but if Joe User isn't in the Somewhere OU, and I don't know which OU, how
can I bind to the account? Surely there's a way to search the domain, and
either find which OU the account is in, or even find the account?
Any help would be greatly appreciated.