09-21-05 07:49 AM
Hi Chandima,
an MCMS project is just another ASP.NET project.
But I assume that you set impersonate = true for the ASP.NET project where
it works.
If not: please follow up on an ASP.NET related newsgroup as this is not a
MCMS related topic.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------
"Chandima" <digitalmelon@gmail.com> wrote in message
news:%23iiX9ymvFHA.3152@TK2MSFTNGP12.phx.gbl...
> Hi There
>
> Our team is working on the company intranet, using ASP.NET and MCMS.
> Within the intranet, we are attempting to use Active Directory to return
> user attributes (such as email) for a given Windows account name.
>
> However, we cannot authenticate to Active Directory from within the CMS
> context as IIS is presenting the demand as "machinename\ASPNET", instead
> of "domain\user".
>
> I have created two projects within the same IIS virtual directory (e.g.
> with the same Directory Security settings). One is a normal Web
> application, the other is a CMS Web application. I'm running the
> following code in both:
>
> Response.Write(HttpContext.Current.User.Identity.Name + "<br>");
>
> Response.Write(WindowsIdentity.GetCurrent().Name + "<br>");
>
> Response.Write(Thread.CurrentPrincipal.Identity.Name + "<br>");
>
> The web app prints this:
>
> <domainname>\<myname>
> <domainname>\<myname>
> <domainname>\<myname>
>
> The CMS web app prints this:
>
> <domainname>\<myname>
> <machinename>\ASPNET
> <domainname>\<myname>
>
> What do we need to get IIS to authenticate to Active Directory using
> Integrated Windows security from within a CMS context?
>
> --
> Regards
> Chandima
> ++++++++++++++++++++++++
> http://www.digitalmelon.com/
>
[ Post a follow-up to this message ]
|