Web Service with Admin rights

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

  1. #1

    Default Web Service with Admin rights

    I want to create a web service that can create the users in the
    Windows Domain. I am using ADSI for that. Using ADSI i am able to
    create the users eaisly.

    But when i incorporated the code in the web service i get the
    unauthorized error.

    How should i confiure the web service so that it can create the users
    in the windows domain.


    Rgds,
    Sunil
    Sunil Virmani Guest

  2. Similar Questions and Discussions

    1. Tech destroyed my admin rights
      :confused; I had problems connecting to a new server, and called a tech in. He turned me into a content owner. When I try to make myself the...
    2. No Admin Rights Error Under OSX
      Flash Player 8 does not install on my PowerBook G4. After running the installer I get an "access denied" error message telling me that I don't...
    3. Install Flash without Admin Rights
      There has to be a way to do this.... I want to deploy the Flash plugin to ~390 locations. Few locations have admin rights. Also, the internet...
    4. Reader without admin rights
      Hi, just fetched 20MB Reader for OSX, installed and used while logged in as admin. The first time to start as an unpriviledged user it asked for an...
    5. DO NOT have Admin rights to install programs
      if you have a 2000 server, may be the domain group policies are preveting you installing any software. you can talk to your server administrator. ...
  3. #2

    Default Re: Web Service with Admin rights

    Sunil,

    The so called "ASP.NET Webservices" are run under ASPNET account, which has
    very few privileges. One way to get around this is to make the ASP.NET
    worker process to run under an admin account. The following article should
    help:

    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconaspnetimpersonation.asp[/url]

    --
    Manohar Kamath
    Editor, .netWire
    [url]www.dotnetwire.com[/url]


    "Sunil Virmani" <sun_hcl@rediffmail.com> wrote in message
    news:e0989ba4.0503080827.5dda3c2c@posting.google.c om...
    > I want to create a web service that can create the users in the
    > Windows Domain. I am using ADSI for that. Using ADSI i am able to
    > create the users eaisly.
    >
    > But when i incorporated the code in the web service i get the
    > unauthorized error.
    >
    > How should i confiure the web service so that it can create the users
    > in the windows domain.
    >
    >
    > Rgds,
    > Sunil

    Manohar Kamath Guest

  4. #3

    Default RE: Web Service with Admin rights

    Um.... write an email to your boss right now, and tell him "fire me please".

    Now seriously, granting admin rights to a program that runs under IIS is
    considered the very worst of worst practices - thus the levity in the
    statement above. You can do it, but you really don't want to.

    --------------------
    >From: [email]sun_hcl@rediffmail.com[/email] (Sunil Virmani)
    >Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
    >Subject: Web Service with Admin rights
    >Date: 8 Mar 2005 08:27:59 -0800
    >Organization: [url]http://groups.google.com[/url]
    >Lines: 13
    >Message-ID: <e0989ba4.0503080827.5dda3c2c@posting.google.com >
    >NNTP-Posting-Host: 203.200.70.152
    >Content-Type: text/plain; charset=ISO-8859-1
    >Content-Transfer-Encoding: 8bit
    >X-Trace: posting.google.com 1110299280 16610 127.0.0.1 (8 Mar 2005
    16:28:00 GMT)
    >X-Complaints-To: [email]groups-abuse@google.com[/email]
    >NNTP-Posting-Date: Tue, 8 Mar 2005 16:28:00 +0000 (UTC)
    >Path:
    TK2MSFTNGXA02.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFT FEED01.phx.gbl!TK2MSFTNGP0
    8.phx.gbl!newsfeed00.sul.t-online.de!t-online.de!news-spur1.maxwell.syr.edu!
    news.maxwell.syr.edu!postnews.google.com!not-for-mail
    >Xref: TK2MSFTNGXA02.phx.gbl
    microsoft.public.dotnet.framework.aspnet.webservic es:28495
    >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
    >
    >I want to create a web service that can create the users in the
    >Windows Domain. I am using ADSI for that. Using ADSI i am able to
    >create the users eaisly.
    >
    >But when i incorporated the code in the web service i get the
    >unauthorized error.
    >
    >How should i confiure the web service so that it can create the users
    >in the windows domain.
    >
    >
    >Rgds,
    >Sunil
    >
    Dan Rogers 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