Last post Feb 06, 2009 12:02 AM by eikden
Feb 04, 2009 11:46 PM|rakesh2kv|LINK
DirectoryEntry root = new DirectoryEntry(@"LDAP://rootdse");
string path = root.Invoke("GET", "defaultNamingContext").ToString();
DirectoryEntry entry = new DirectoryEntry("LDAP://" + path);
I am using the above code to authenticate user against AD.
But when i deploy it under iis , user is not authenticated?
Feb 05, 2009 12:12 AM|eikden|LINK
Do you set the windows authenticated under IIS?
you can refer to following link:-
Feb 05, 2009 04:09 PM|rakesh2kv|LINK
yes. I disable the anonymous access.
i enabled windows authentication. it worked.
But i am using forms authetication cookie , but this uses kerbos. how these both coordinate.?
Feb 06, 2009 12:02 AM|eikden|LINK
If you use kerbos, same thing. which you need to checked the windows authentication and unchecked the anonymous access.