I am using LDAP://RootDSE to connect to my local Active Directory. I am assuming that it connects to my master server's active directory database. I was wondering how do you connect to a particular's servers AD (some of our servers aren't replicating and need to display its data)? I was going to use LDAP://DC=XX,DC=com to try and test connect...if someone can give me pointers, I'd greatly appreciate it.
Thanks,Daviddaerne2008-04-10 08:55:07
Displaying AD info
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Displaying AD info
Is alexandrelobao, the name of your server and why does localhost:389, need to be added?
Displaying AD info
I'm getting errors when trying to connect. Just want to verify that this will work with the syntax I'm using:
Set objRootDSE = GetObject("LDAP://bocnet00:389/DC=contso,DC=com")strDNSDomain = objRootDSE.Get("defaultNamingContext")
Set objRootDSE = GetObject("LDAP://bocnet00:389/DC=contso,DC=com")strDNSDomain = objRootDSE.Get("defaultNamingContext")
Displaying AD info
The error code being kicked back is "The directory property cannot be found in the cache".
Displaying AD info
Yes, sir...I had one more line of code to try to display the data, but I've completely removed everything.