A
Arnel
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?
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?