Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 05, 2009 11:02 PM by eikden
Member
419 Points
276 Posts
Feb 04, 2009 10:46 PM|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?
Participant
906 Points
180 Posts
Feb 04, 2009 11:12 PM|LINK
Hi,
Do you set the windows authenticated under IIS?
you can refer to following link:-
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/5f8fe119-4095-4094-bba5-7dec361c7afe.mspx?mfr=true
http://cosier.wordpress.com/2007/08/23/adding-windows-authentication-provider-into-iis-7-on-vista/
Feb 05, 2009 03:09 PM|LINK
yes. I disable the anonymous access.
i enabled windows authentication. it worked.
Thanks again.
But i am using forms authetication cookie , but this uses kerbos. how these both coordinate.?
Feb 05, 2009 11:02 PM|LINK
If you use kerbos, same thing. which you need to checked the windows authentication and unchecked the anonymous access.
rakesh2kv
Member
419 Points
276 Posts
Directory entry : authentication
Feb 04, 2009 10:46 PM|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?
http://rakeshkv.wordpress.com/
eikden
Participant
906 Points
180 Posts
Re: Directory entry : authentication
Feb 04, 2009 11:12 PM|LINK
Hi,
Do you set the windows authenticated under IIS?
you can refer to following link:-
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/5f8fe119-4095-4094-bba5-7dec361c7afe.mspx?mfr=true
http://cosier.wordpress.com/2007/08/23/adding-windows-authentication-provider-into-iis-7-on-vista/
Yeoh Eik Den, MCPD | MCSE
Blog: www.eikden.net
My Linkedin Profile
Please mark as answer if I answer your question.
rakesh2kv
Member
419 Points
276 Posts
Re: Directory entry : authentication
Feb 05, 2009 03:09 PM|LINK
yes. I disable the anonymous access.
i enabled windows authentication. it worked.
Thanks again.
But i am using forms authetication cookie , but this uses kerbos. how these both coordinate.?
http://rakeshkv.wordpress.com/
eikden
Participant
906 Points
180 Posts
Re: Directory entry : authentication
Feb 05, 2009 11:02 PM|LINK
Hi,
If you use kerbos, same thing. which you need to checked the windows authentication and unchecked the anonymous access.
Yeoh Eik Den, MCPD | MCSE
Blog: www.eikden.net
My Linkedin Profile
Please mark as answer if I answer your question.