Ask a Question related to ASP.NET Security, Design and Development.
-
Joe Kaplan \(MVP - ADSI\) #1
Re: Asp.net impersonate
I don't think impersonation loads the user profile of the account being
impersonated. If you think about it, that would make impersonation very
slow.
Do you need the user profile loaded for some reason?
Joe K.
"Frederik Vermeersch via .NET 247" <anonymous@dotnet247.com> wrote in
message news:%23$tKgsPjEHA.3148@TK2MSFTNGP10.phx.gbl...username,> Hi,
>
> My global.asax contains:
> <authentication mode="Windows" />
> <identity impersonate="true"/>
>
> in my aspx page Environment.UserName returns the correct impersonateduserprofile of the ASPNET user, being: C:\Documents and> but Environment.GetEnvironmentVariable("USERPROFILE") returns the
Settings\COMPUTERNAME\ASPNET> (Strange behaviour, but I asume that this is by design.)
> Is there no way to return the userprofile for the impersonated account?
>
> Thanks,
> Frederik
>
> -----------------------
> Posted by a user from .NET 247 ([url]http://www.dotnet247.com/[/url])
>
> <Id>EUpSiezJAUCDSil1IuWbOg==</Id>
Joe Kaplan \(MVP - ADSI\) Guest
-
Impersonate + AD
Hi, I've got a difficult situation... Is a website that runs on IIS with Anonymous Authentication, the tag <identity impersonate="false"> on the... -
To Be or To Impersonate, that is the Question
Alrighty, my continued foray into accessing network resources from the web server continues... When employees hit the intranet ASP.NET... -
DirectoryEntry Impersonate or WindowsIdentity Impersonate?
Another security question. Our project interfaces with the Active Directory. To satisfy the security issues, we have a couple options when we talk... -
impersonate
Hi all, I create a aspnet web app for my company. I set it up on a win2000 server with IIS5 as a intranet app. For security, I want to restrict... -
Impersonate at runtime
Hi, I want to move my files from web servers to a shared folder on the database server. For this I impersonate the aspnet user to common... -
Patrick.O.Ige #2
Re: Asp.net impersonate
Hi Joe,
If i use this web config file:-
<authorization>
<deny users="?"/>
<allow users="*"/>
</authorization>
Can i control the GROUPS the users would be able to validate against the
Active Directory?For example if i allow only members in a security group in
the Active Directory to authenticate and deny the others.Would it work?
Check this link at :-
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sds/sds/act[/url]
ive_directory_authentication_from_asp__net.asp
Thanks
"Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
in message news:eW$kZLXjEHA.394e [email]4@tk2msftngp13.phx.gbl[/email]...> I don't think impersonation loads the user profile of the account being
> impersonated. If you think about it, that would make impersonation very
> slow.
>
> Do you need the user profile loaded for some reason?
>
> Joe K.
>
> "Frederik Vermeersch via .NET 247" <anonymous@dotnet247.com> wrote in
> message news:%23$tKgsPjEHA.3148@TK2MSFTNGP10.phx.gbl...> username,> > Hi,
> >
> > My global.asax contains:
> > <authentication mode="Windows" />
> > <identity impersonate="true"/>
> >
> > in my aspx page Environment.UserName returns the correct impersonated> userprofile of the ASPNET user, being: C:\Documents and> > but Environment.GetEnvironmentVariable("USERPROFILE") returns the
> Settings\COMPUTERNAME\ASPNET>> > (Strange behaviour, but I asume that this is by design.)
> > Is there no way to return the userprofile for the impersonated account?
> >
> > Thanks,
> > Frederik
> >
> > -----------------------
> > Posted by a user from .NET 247 ([url]http://www.dotnet247.com/[/url])
> >
> > <Id>EUpSiezJAUCDSil1IuWbOg==</Id>
>
Patrick.O.Ige Guest
-
Joe Kaplan \(MVP - ADSI\) #3
Re: Asp.net impersonate
For this you would usually do something like:
<authorization>
<allow roles="domain\groupname"/>
<deny users="*"/>
</authorization>
You can use multiple groups separated by commas in the allow list.
HTH,
Joe K.
"Patrick.O.Ige" <patrickige@acn.waw.pl> wrote in message
news:Oqj4gJcjEHA.3428@TK2MSFTNGP11.phx.gbl...in> Hi Joe,
> If i use this web config file:-
> <authorization>
> <deny users="?"/>
> <allow users="*"/>
> </authorization>
> Can i control the GROUPS the users would be able to validate against the
> Active Directory?For example if i allow only members in a security group[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sds/sds/act[/url]> the Active Directory to authenticate and deny the others.Would it work?
> Check this link at :-
>account?> ive_directory_authentication_from_asp__net.asp
> Thanks
>
>
>
>
> "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
> in message news:eW$kZLXjEHA.394e [email]4@tk2msftngp13.phx.gbl[/email]...> > I don't think impersonation loads the user profile of the account being
> > impersonated. If you think about it, that would make impersonation very
> > slow.
> >
> > Do you need the user profile loaded for some reason?
> >
> > Joe K.
> >
> > "Frederik Vermeersch via .NET 247" <anonymous@dotnet247.com> wrote in
> > message news:%23$tKgsPjEHA.3148@TK2MSFTNGP10.phx.gbl...> > username,> > > Hi,
> > >
> > > My global.asax contains:
> > > <authentication mode="Windows" />
> > > <identity impersonate="true"/>
> > >
> > > in my aspx page Environment.UserName returns the correct impersonated> > userprofile of the ASPNET user, being: C:\Documents and> > > but Environment.GetEnvironmentVariable("USERPROFILE") returns the
> > Settings\COMPUTERNAME\ASPNET> > > (Strange behaviour, but I asume that this is by design.)
> > > Is there no way to return the userprofile for the impersonated>> >> > >
> > > Thanks,
> > > Frederik
> > >
> > > -----------------------
> > > Posted by a user from .NET 247 ([url]http://www.dotnet247.com/[/url])
> > >
> > > <Id>EUpSiezJAUCDSil1IuWbOg==</Id>
> >
>
Joe Kaplan \(MVP - ADSI\) Guest
-
naijacoder naijacoder #4
Re: Asp.net impersonate
Web config problem:-
-------------------
If i want to Allow only some GROUPS to login and DENY the others how
would i do it.
For example i have security GROUPS S_A,S_B,S_V and i want all user to
login but if they are not if the following groups above they should be
denied.
How should the WEB CONFIG look like.
Thanks alot.
This ine below doesn't work!!
<deny users="?"/>
<allow users="?"
roles="S_A,S_B,S_V"//>
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
naijacoder naijacoder Guest



Reply With Quote

