B
Brian Stoop
Hi,
I want to authenticate a user and their password in the local SAM (Windows
2003 Server).
I am running as the Built in Admiistrator account.
My code looks like this:
DirectoryEntry dsDirectoryEntry = new DirectoryEntry("WinNT://" +
MACHINENAME, userID, password);
DirectorySearcher dsSearch = new DirectorySearcher(dsDirectoryEntry);
SearchResult dsResults = dsSearch.FindOne();
But every time I get the exception: "The provider does not support searching
and cannot search"
Does the local SAM support DirectoryEntry Enumeration ? Or is it only
available with Active Directory ?
thanks, B
I want to authenticate a user and their password in the local SAM (Windows
2003 Server).
I am running as the Built in Admiistrator account.
My code looks like this:
DirectoryEntry dsDirectoryEntry = new DirectoryEntry("WinNT://" +
MACHINENAME, userID, password);
DirectorySearcher dsSearch = new DirectorySearcher(dsDirectoryEntry);
SearchResult dsResults = dsSearch.FindOne();
But every time I get the exception: "The provider does not support searching
and cannot search"
Does the local SAM support DirectoryEntry Enumeration ? Or is it only
available with Active Directory ?
thanks, B