views:

281

answers:

1

Is there a way to auto-log a user in who is logged into active-directory without propmting them to use the login dialog.

I cannot set the Auth method to windows as there are 5 differant login methods.

Thanks

+1  A: 

I could automatic login only get to work with IE and cookies..

this is a snippet from the web.config that might help:

<!-- roles -->
<roleManager
  enabled="true"
  defaultProvider="AuthCookieRoleManager">
  <providers>
    <clear/>
    <add name="AuthCookieRoleManager" type="CustomWeb.CustomAuthCookieRoleManager"/>
  </providers>
</roleManager>

<authentication mode="Forms">
  <forms loginUrl="Logon.aspx" name="ADAuth" timeout="10" path="/">
  </forms>
</authentication>
<authorization>
  <deny users="?"/>
  <allow users="*"/>
</authorization>
<identity impersonate="true"/>

<!-- roles -->
<location path="Allocation">
  <system.web>
    <authorization>
      <allow roles="CustomRoleX"/>
      <deny users="*"/>
    </authorization>
  </system.web>
</location>

If this does not meet your requirements, i guess you have to customize the provider..

David