Web Service with Admin rights

Discussion in 'ASP .Net Web Services' started by Sunil Virmani, Mar 8, 2005.

  1. 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, Mar 8, 2005
    #1
    1. Advertising

  2. 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:

    http://msdn.microsoft.com/library/d...-us/cpguide/html/cpconaspnetimpersonation.asp

    --
    Manohar Kamath
    Editor, .netWire
    www.dotnetwire.com


    "Sunil Virmani" <> wrote in message
    news:...
    > 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, Mar 8, 2005
    #2
    1. Advertising

  3. Sunil Virmani

    Dan Rogers Guest

    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: (Sunil Virmani)
    >Newsgroups: microsoft.public.dotnet.framework.aspnet.webservices
    >Subject: Web Service with Admin rights
    >Date: 8 Mar 2005 08:27:59 -0800
    >Organization: http://groups.google.com
    >Lines: 13
    >Message-ID: <>
    >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:
    >NNTP-Posting-Date: Tue, 8 Mar 2005 16:28:00 +0000 (UTC)
    >Path:

    TK2MSFTNGXA02.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTFEED01.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.webservices:28495
    >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
    >
    >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, Mar 8, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?UGF1bA==?=

    debugging in .net without admin rights.

    =?Utf-8?B?UGF1bA==?=, Jul 7, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    399
    =?Utf-8?B?UGF1bA==?=
    Jul 7, 2006
  2. =?Utf-8?B?ZGVuZGF2?=

    Developing ASP.NET w/out IIS or Admin Rights

    =?Utf-8?B?ZGVuZGF2?=, Oct 10, 2006, in forum: ASP .Net
    Replies:
    7
    Views:
    717
    Juan T. Llibre
    Jan 23, 2007
  3. =?Utf-8?B?ZGF6emE=?=

    admin rights windows vista

    =?Utf-8?B?ZGF6emE=?=, Aug 5, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    489
    =?Utf-8?B?ZGF6emE=?=
    Aug 5, 2007
  4. Replies:
    0
    Views:
    216
  5. miamia
    Replies:
    5
    Views:
    2,284
    Thorsten Kampe
    Jun 25, 2011
Loading...

Share This Page