Ask a Question related to ASP.NET Security, Design and Development.
-
Andy Pickering #1
Re: ASP.Net permission problem on ProcessStartInfo?
Just to make sure that I wasn't doing something stupid I've tried getting
the current user name a couple of ways:
If I check System.Security.Principal.WindowsIdentity.GetCurre nt().Name - I
get the correct impersonated user.
From the same page, if I call cmd /c whoami using a Process object, I get
'nt authority/network service'.
"Andy Pickering" <dev@slashnull.nospam> wrote in message
news:#K6LnejZDHA.1748@TK2MSFTNGP12.phx.gbl...the> Hi - I'm trying to get an ASP.Net page to execute a command line utility
> that requires administrative rights (its actually dnscmd.exe - a tool used
> for administrating MS-DNS).
>
> Testing my class from a Windows app - it works fine. Running it from an
> ASP.Net page gives me the permissions problem. I've had a snoop aroundseen> documentation and previous entries on this group regarding impersonation -
> but I still can't get it to work. I'm using the identity impersonation
> setting in the web.config file. I appear to have it set correctly (i.e.
> changing the password to an incorrect one gives me an error when I access
> the page).
>
> Is there some setting that I'm missing on the ProcessStartInfo class that
> could get around this?
>
> Cheers in advance,
> Andy
>
> p.s. I know I can use WMI to manipulate the DNS service - but have you> the documentation? Ouch!
>
>
Andy Pickering Guest
-
pdf printing using ProcessStartInfo
I am trying to print pdf documents from my Intranet ASP.NET application. I am using the code listed below. The code works fine when run from a... -
Permission Problem
I'm sorry i don't remember if i resolved the issue somehow or if it cleared up by itself. I do remember making some changes to the settings for the... -
Permission Problem
I too am receiving the same problem, I was hoping that a Macromedia team member is able to resolve this issue. It is driving me crazy. Have you... -
RDS permission problem
Hi everyone, I am trying to create a RDS in Dreamweaver to connect to CFMX on Linux. The RDS was created and I was able to view the directory and... -
IIS 5 XML Permission Problem
Hi, Has anybody had a problem with IIS permissions where it successfully uses a third-party DLL (developed in VB6) called from ASP, successfully... -
Andy Pickering #2
Re: ASP.Net permission problem on ProcessStartInfo?
I finally found a solution to this by using the Kerr.Windows assembly from
[url]http://www.kennyandkarin.com/Kenny/[/url] - top stuff!
"Andy Pickering" <dev@slashnull.nospam> wrote in message
news:eOAfgokZDHA.2136@TK2MSFTNGP10.phx.gbl...used> Just to make sure that I wasn't doing something stupid I've tried getting
> the current user name a couple of ways:
>
> If I check System.Security.Principal.WindowsIdentity.GetCurre nt().Name - I
> get the correct impersonated user.
> From the same page, if I call cmd /c whoami using a Process object, I get
> 'nt authority/network service'.
>
> "Andy Pickering" <dev@slashnull.nospam> wrote in message
> news:#K6LnejZDHA.1748@TK2MSFTNGP12.phx.gbl...> > Hi - I'm trying to get an ASP.Net page to execute a command line utility
> > that requires administrative rights (its actually dnscmd.exe - a toolimpersonation -> the> > for administrating MS-DNS).
> >
> > Testing my class from a Windows app - it works fine. Running it from an
> > ASP.Net page gives me the permissions problem. I've had a snoop around> > documentation and previous entries on this group regardingaccess> > but I still can't get it to work. I'm using the identity impersonation
> > setting in the web.config file. I appear to have it set correctly (i.e.
> > changing the password to an incorrect one gives me an error when Ithat> > the page).
> >
> > Is there some setting that I'm missing on the ProcessStartInfo class> seen> > could get around this?
> >
> > Cheers in advance,
> > Andy
> >
> > p.s. I know I can use WMI to manipulate the DNS service - but have you>> > the documentation? Ouch!
> >
> >
>
Andy Pickering Guest



Reply With Quote

