NT based roles using forms authentication

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Sharat Koya (sharat.koya_at_addenbrookes.nhs.uk)
Date: 08/13/04


Date: 13 Aug 2004 08:12:33 -0700

Please can you help with a problem I am having.

My web config is set to...
<authorization><deny users="?"/>
<authentication mode="Forms">
<forms name=".COOKIE" loginUrl="login.aspx" protection="All"
timeout="5" path="/"/>
</authentication>
<identity impersonate="true"/>

login.aspx uses advapi32.dll to create the token and authenticate the
user
using the code..
if(LogonUser(TextBoxUsername.Text,
                                "HILLSRD",
                                TextBoxPassword.Text,
                                LOGON32_LOGON_INTERACTIVE,
                                LOGON32_PROVIDER_DEFAULT,
                                ref token) != 0)
                        {
                                
                                FormsAuthentication.RedirectFromLoginPage(TextBoxUsername.Text,
CBoxRememberMe.Checked);
                                
                        }

but when I want to enable NT group security but when I go to access
User.IsInRole it always returns false? I digged a little deeper by
live debugging and found that m_roles array is always empty. What am I
doing wrong - why aren't the roles avaialble that are on the domain?

many thanks for any help on this.

Sharat Koya



Relevant Pages

  • Forms Authentication to protect .cgi application problem
    ... I have enabled forms authentication on an IIS 6 W2k3 server to protect access ... The actual application apart from the login/logout files is .cgi based so I ... If I remove the Wildcard Application Mapping the .cgi application runs ... the same when its removed from the web config. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Forms Authentication to protect a cgi application
    ... I have enabled forms authentication on an IIS 6 W2k3 server to protect access ... The actual application apart from the login/logout files is .cgi based so I ... If I remove the Wildcard Application Mapping the .cgi application runs ... the same when its removed from the web config. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • webform password protected page
    ... I made a web project which was password protected by using form mode ... authentication. ... linker,it always stay in the login page. ... anybody there has idea about this web config? ...
    (microsoft.public.dotnet.languages.csharp)
  • Authentication Form
    ... i try to make authentication by form, my web config ...
    (microsoft.public.dotnet.security)
  • Re: [PHP] Is this the best way?
    ... successful. ... you said that the big issue was that this query shouldn't run ... variable is empty. ... Time to revisit my authentication function and see if I can streamline it:) ...
    (php.general)