j***@gmail.com
2005-12-14 00:19:20 UTC
Ok, I've rarely been driven this insane by a seemingly simple problem.
I'm trying to query the highestCommittedUSN in rootDSE. Seemingly
simple enough I'm using this code:
DirectorySearcher searcher = new DirectorySearcher();
searcher.SearchRoot= new DirectoryEntry("LDAP://rootDSE");
SearchResultCollection results;
results = searcher.FindAll();
...and I'm getting the following error
"The provider does not support searching and cannot search
LDAP://rootDSE"
Now, I've also tried a different SearchRoot 'format'.....
searcher.SearchRoot= new DirectoryEntry("LDAP://domain.com/rootDSE");
and using FindOne().....
SearchResult results;
results = searcher.FindOne();
and different authentication...
searcher.SearchRoot= new
DirectoryEntry("LDAP://rootDSE","Administrator","word123",AuthenticationTypes.Secure);
The code has been documented many times in other threads and it SEEMS
as though this should work.
I've no problem searching for any other DN, container, user, computer,
or otherwise.
OS: Windows2000 Advanced Server SP3
.NET: 1.1
VS.NET 2003
I'm trying to query the highestCommittedUSN in rootDSE. Seemingly
simple enough I'm using this code:
DirectorySearcher searcher = new DirectorySearcher();
searcher.SearchRoot= new DirectoryEntry("LDAP://rootDSE");
SearchResultCollection results;
results = searcher.FindAll();
...and I'm getting the following error
"The provider does not support searching and cannot search
LDAP://rootDSE"
Now, I've also tried a different SearchRoot 'format'.....
searcher.SearchRoot= new DirectoryEntry("LDAP://domain.com/rootDSE");
and using FindOne().....
SearchResult results;
results = searcher.FindOne();
and different authentication...
searcher.SearchRoot= new
DirectoryEntry("LDAP://rootDSE","Administrator","word123",AuthenticationTypes.Secure);
The code has been documented many times in other threads and it SEEMS
as though this should work.
I've no problem searching for any other DN, container, user, computer,
or otherwise.
OS: Windows2000 Advanced Server SP3
.NET: 1.1
VS.NET 2003