When I ping 140West-dc it returns:
Pinging 140West-dc.bvncap.local
And my LDAP Query is as follows:
LDAP://dc=bvncap,dc=local
Is there anyway to pass "140West-dc.bvncap.local"
to LDAP query instead of just "bvncap.local"
Note: 140West
is my office location.
EDIT:
I pass the common name to the query like this:
LDAP://cn=140West-dc,dc=bvncap,dc=local
But get an error:
Run-time error : There is no such object on the server
Here is the command text:
SELECT AdsPath FROM 'LDAP://cn=140West-dc,dc=bvncap,dc=local' WHERE objectCategory='user' And sAMAccountName = 'hjose'
Get this error when i execute:
set rs = cmd.Execute