Re: Active Directory and ASP.NET 2.0



Glad that helped. It only works when you can use Windows authentication,
but when you can, it works much better. :)

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"NancyA" <anonymous@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9A91D294-3964-4FD4-91C0-D5A406CC557C@xxxxxxxxxxxxxxxx
Gee, that was really easy! Thanks for the very clear response. I am now
using WindowsIdentity and WindowsPrincipal.IsInRole and it works
beautifully
without needing to go to LDAP!

"NancyA" wrote:

Hi -
I am successfully able to retrieve tokenGroups data for a given
sAmAccountName from a .NET 2.0 web page. However, I'm still in test mode
on
my own machine. What will I need to do to access AD from the web page
when
it goes out on a corporate IIS server? Do I need to use a specific
account
when creating the DirectoryEntry object? This is for an intranet website
using Windows authentication so I'll know that any users are members of
AD.

Thanks


.



Relevant Pages

  • Re: Impersonation Issue
    ... Windows authentication in the first place and let it do this for you. ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... I'm storing their encrypted password in session state, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: determine trusted domain with windows authentication
    ... Windows authentication will only authenticate users it trusts. ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: determine trusted domain with windows authentication
    ... The domain name in the user name is formed by Windows authentication based ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Web Single Sign On
    ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... current Windows credentials to the server, ... This common identity is the user's username used to logon to the ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Changing ADAM user password
    ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... Running the bind from another W2K3SP1 machine ... support in digest or something like that. ...
    (microsoft.public.windows.server.active_directory)