HI
I have a problem:
There is running AD on Win2000 Server.
I am writting a C# program to connect and find some entries on the
AD.
It is a web application and corporate clients are loggend on computer
connected to AD. These clients are accessing this application. In the
Application I get User.Identity.AuthenticationType of the NTLM. not
"Negotiate"

Then I am creating a searcher: DirectorySearcher oDS = new
DirectorySearcher("LDAP//"+domainName);
and Filter and try to find a result:
oDS.Filter =
"(samAccountName="+user.Login.Substring(0,user.Log in.IndexOf("@"))
+")";
oDS.SearchScope = SearchScope.Subtree;
SearchResult deUser = oDS.FindOne();
on the FindOne() itr fails that a domain with such name can not be
found
Stacktrace: at
System.DirectoryServices.DirectoryEntry.Bind(Boole an
throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_AdsObj ect()
at System.DirectoryServices.PropertyValueCollection.P opulateList()
at
System.DirectoryServices.PropertyValueCollection.. ctor(DirectoryEntry
entry, String propertyName)
at System.DirectoryServices.PropertyCollection.get_It em(String
propertyName)
at System.DirectoryServices.DirectorySearcher.get_Sea rchRoot()
at System.DirectoryServices.DirectorySearcher.FindAll (Boolean
findMoreThanOne)
at System.DirectoryServices.DirectorySearcher.FindOne ()
at ReportBuilder.BusinessLayer.Role.ManageUserRoles(U ser user,
IPrincipal principal)
at ReportBuilder.WebInterface._default.Page_Load(Obje ct sender,
EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain()
IS it even possible to access the AD, when there is the NTLM, if I
get
on XP clients connecting to WIn 2003 Negotiate type then it works
fine
Does anybody know where is the problem?
Thanks a lot