Re: Does 'IsInRole()' check against Active Directory groups?

From: Craig Vedur (CraigVedur_at_discussions.microsoft.com)
Date: 08/29/05


Date: Mon, 29 Aug 2005 13:44:06 -0700

Thanks Joe, this worked. I have another question.

Initially, i had a login page on my app and used
System.DirectoryServices.dll to query AD to authenticate a user / pass.

However, it appears that .NET handles this all for me if i disable anonymous
access and use the integerated windows auth. Is this true?

My app poped up a login screen for user / pass / domain.

"Joe Kaplan (MVP - ADSI)" wrote:

> Yes. It depends on how users are being authenticated by IIS and how you
> have ASP.NET configured, but if your web server is a member of a domain that
> can authenticate users in your target domain and you have ASP.NET configured
> for Windows authentication, IsInRole will answer true/false for the user's
> domain groups.
>
> Joe K.
>
> "Craig Vedur" <CraigVedur@discussions.microsoft.com> wrote in message
> news:A0DE7A20-1473-4EF8-A550-977974314D94@microsoft.com...
> >I need to build in some role authentication for a web app... so, going
> >to
> > use the web.config to build my rules for the location files.
> >
> > my question is.. does anyone know?
> >
> > on my development box (out of work), i'm out XP Pro... and i've created
> > some groups and users to test it...
> >
> > in the real deal, it's going to be Win 2003 Server using Active
> > Directory..... Obviously, i dont have AD on XP Pro..... Is it the
> > same
> > thing? Will it work the same?
> >
> > Will web.config be able to recognize the groups that a user belongs to to
> > correctly authorize viewing a page based on role authentication?
> >
> >
> > So, will IsInRole() check against groups created in Active Directory on
> > Win2003 Server?
>
>
>



Relevant Pages

  • Re: Pass credentials from Win app to Web app
    ... Are you wanting to authenticate the user in the web app against SQL as well? ... you might consider using HttpWebRequest to "screen scrape" the login ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Form authentication in page viewer web part?
    ... when that same user re-opens the app they will have to authenticate again. ... That is what SharePoint is doing, when the SharePoint page reloads, it ... then closing the browser and re-opening his app. ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: Using ADAM for authenticating non-AD users
    ... ADAM users and LDAP secure for the AD users. ... but the vendor app may not be capable of that. ... If they can only do LDAP simple bind to authenticate users, ... ADFS can also solve this problem, but the vendor app would need to be able ...
    (microsoft.public.windows.server.active_directory)
  • Re: Question about HP-UX 11i trusted systems and software development
    ... We're running HP-UX 11i on an L-Class HP9000 server. ... that we need to recompile an app we're developing as we change between ... is trusted or untrusted and we don't have to recompile DB2, ... Where can we find info on developing apps that will authenticate users ...
    (comp.sys.hp.hpux)
  • user Authentication through webservice
    ... I have a webservice based app that a company has purchased to use ... The database will not have individual user accounts but will authenticate ... So, to sum up the client app polls a webservice to get some data, I need to ...
    (microsoft.public.dotnet.framework.webservices)