Hi all
i devloped asp.net application to get the users from different
domain in active directory. i am using LDAP to get it with windows
authentication. if i run this application throught the code on server
it is running fine and giving the users from differnt domains But, if
i host the same on the same server it is not working .i am getting the
following exception
"COMException (0x8007202A): The authentication mechanism is unknown."
i am new to work with AD so any help will be appreciate
please help me coz i stuck with this from so long.
if you want the code for ref.
entry = new DirectoryEntry("LDAP://....", "UserName",
"******");
DirectorySearcher dSearch = new DirectorySearcher
(entry);
dSearch.Filter = "(&(SAMAccountName=*"+txtName.Text+"*)
(objectCategory=Person))";
try
{
foreach (SearchResult sResultSet in dSearch.FindAll
()) //******Getting Error at this point ********
{
string strLoginName = GetProperty(sResultSet,
"cn").ToString();
if (strLoginName != "" &&
!strLoginName.Contains("SUPPORT") &&
!strLoginName.Contains("krbtgt") &&
!strLoginName.Contains("EXCHENGERSERVER") &&
!strLoginName.ToLower().Contains
("systemmailbox"))