Re: ActiveDirectoryMembershipProvider ASP.NET 2.0
- From: "Patrick.O.Ige" <naijacoder@xxxxxxxxxxx>
- Date: Tue, 11 Oct 2005 11:24:31 +1000
For it to work for Windows auth you would have to set that on IIS
Go to IIS >Security and uncheck Anonymous logon and check integrated Windows
Auth.
Hope that helps
Patrick
"Arnel" <arnelsin@xxxxxxxxx> wrote in message
news:1128975959.694971.150010@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> I have a web app which uses the new ASP.NET 2.0 login control to
> authenticate against active directory. Now, I would like to use the
> new namespaces (ActiveDirectoryMembershipProvider,
> ActiveDirectoryMembershipUser, MembershipUser, Membership, etc) to
> retrieve the logged in user properties available. I have been able to
> get the logged in username when using Forms auth. with the following
> code. Unfortunately, it doesn't work when I use Windows auth:
>
> MembershipUser LoginName = Member.GetUser(User.Identity.Name)
>
> Does anyone know how to retrieve the various properties available for
> AD users?
>
.
- References:
- ActiveDirectoryMembershipProvider ASP.NET 2.0
- From: Arnel
- ActiveDirectoryMembershipProvider ASP.NET 2.0
- Prev by Date: Re: button with runat = server changes its border thickness
- Next by Date: Re: button with runat = server changes its border thickness
- Previous by thread: ActiveDirectoryMembershipProvider ASP.NET 2.0
- Next by thread: Re: Access to public variables defined in Global.asax.vb
- Index(es):
Relevant Pages
|