Issues with some users in Win Authentication in ASP.NET -
i in strange issues, have asp.net 2.0 application vb.net code behind, set application enable win authentication in iis disabled except windows auth, in web.config have following under system.web:
the web.config contains following :
authentication mode="windows"
authorization> deny users="?"/> /authorization> identity impersonate="false"/>
now users when enter asp application prompted user name , password , logged in successfully, users application fails on page.user.identity.name , return object reference error,
im using vs2010 , asp.net 2.0 frameword 2.0 , iis 7 under win 2k8 r2 latest sp's installed.
all users domain users.
thank you,
can access username httpcontext.current.user.identity.name? can check if authentication successful, , method of auth used.
windows authentication uses kerberos default in iis believe, may not work lot of reasons (i think there problems in firefox example ), when fails, falling ntlm. try removing negotiate authentication provider , use ntlm. if works, have fun of diagnosing kerberos problems :-)
Comments
Post a Comment