ASP.Net permission problem on ProcessStartInfo?

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default 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...
    > 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 around
    the
    > 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
    seen
    > the documentation? Ouch!
    >
    >

    Andy Pickering Guest

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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...
    > 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 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 around
    > the
    > > 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
    > seen
    > > the documentation? Ouch!
    > >
    > >
    >
    >

    Andy Pickering Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139