Webservice To Add User Accounts

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

  1. #1

    Default Webservice To Add User Accounts

    Hi all,

    I have a webservice which needs to add user accounts to domain A. In order
    to do this, I have set impersonation="true" in the web.config file and
    specified the username and password of a domain A user which has permissions
    to add users to the domain (A). This orginally worked but now is not and
    nothing has changed.

    I've looked at discussions and found nothing that has worked. People have
    suggested changing the machine.config <processModel> tag but this does not
    work as I need the user account to mimic the Domain user which has access to
    add the accounts.

    Any ideas? I would really like any help.

    Thanks,
    Jesse
    Jessard Guest

  2. Similar Questions and Discussions

    1. Contribute user access via ftp user accounts
      Alright, in a few hours I'll dive deeper into Contribute for the first time. Question - is it necessary to have an ftp account per user, or can...
    2. user accounts?
      How did a user account get on my computer of ASP.net with a password protected accoubt and what do I do with it or how do I deal with it??
    3. user accounts
      I am new to xp and have set up user accounts for the members of my family. One of the members cannot play games that use shockwave. All other...
    4. Number of admin user accounts and old user name still working
      Is it recommended to have more than one administrator for a computer? The reason I ask is I read that the built-in administrator account is only...
    5. XP user Accounts
      Hello, I need help with the accout management, I have two accounts and the second account cant access programs from the computer or install...
  3. #2

    Default Re: Webservice To Add User Accounts

    Probably a Kerberos delegation problem. When you use impersonation and also
    use IWA in IIS, you have to have Kerberos delegation working in order for
    your credentials to hop fromt he browser to the IIS box to the domain
    controller. My guess is that this is not happening consistently and you are
    being authenticated as anonymous on the DC which is preventing the write
    operation.

    You also need to make sure that the client that calls the web sevice has the
    correct administrative credentials and is actually passing them through the
    web service client proxy, but my guess is that you've already looked into
    that and are having the delegation issue I referred to above.

    There are lots of good Kerberos delegation links. Here are a few I had
    handy.

    [url]http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technologies/security/tkerberr.mspx[/url]
    [url]http://support.microsoft.com/default.aspx?scid=kb;EN-US;q306158[/url]
    [url]http://msdn.microsoft.com/vstudio/using/building/web/default.aspx?pull=/library/en-us/dnnetsec/html/SecNetHT05.asp?FRAME=true#ImplementKerberos[/url]

    Joe K.

    "Jessard" <Jessard@discussions.microsoft.com> wrote in message
    news:F8B456A7-F5A7-4EEF-AB8A-730E7C716608@microsoft.com...
    > Hi all,
    >
    > I have a webservice which needs to add user accounts to domain A. In
    > order
    > to do this, I have set impersonation="true" in the web.config file and
    > specified the username and password of a domain A user which has
    > permissions
    > to add users to the domain (A). This orginally worked but now is not and
    > nothing has changed.
    >
    > I've looked at discussions and found nothing that has worked. People have
    > suggested changing the machine.config <processModel> tag but this does not
    > work as I need the user account to mimic the Domain user which has access
    > to
    > add the accounts.
    >
    > Any ideas? I would really like any help.
    >
    > Thanks,
    > Jesse

    Joe Kaplan \(MVP - ADSI\) Guest

  4. #3

    Default Re: Webservice To Add User Accounts

    Also make sure that your first hop from the client to the web service is
    kerberos and not NTLM. That can sometime be tricky and could have to do with
    intranet/internet zones in IE.

    enable auditing for logon events on the web server and check if the client
    is authenticated using kerberos or NTLM. another way to figure that out is
    using a sniffer like [url]www.ethereal.com[/url] and sniff the auth handshake.

    dominick baier - DevelopMentor
    [url]www.leastprivilege.com[/url]

    > Probably a Kerberos delegation problem. When you use impersonation
    > and also use IWA in IIS, you have to have Kerberos delegation working
    > in order for your credentials to hop fromt he browser to the IIS box
    > to the domain controller. My guess is that this is not happening
    > consistently and you are being authenticated as anonymous on the DC
    > which is preventing the write operation.
    >
    > You also need to make sure that the client that calls the web sevice
    > has the correct administrative credentials and is actually passing
    > them through the web service client proxy, but my guess is that you've
    > already looked into that and are having the delegation issue I
    > referred to above.
    >
    > There are lots of good Kerberos delegation links. Here are a few I
    > had handy.
    >
    > [url]http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technol[/url]
    > ogies/security/tkerberr.mspx
    >
    > [url]http://support.microsoft.com/default.aspx?scid=kb;EN-US;q306158[/url]
    >
    > [url]http://msdn.microsoft.com/vstudio/using/building/web/default.aspx?pull[/url]
    > =/library/en-us/dnnetsec/html/SecNetHT05.asp?FRAME=true#ImplementKerbe
    > ros
    >
    > Joe K.
    >
    > "Jessard" <Jessard@discussions.microsoft.com> wrote in message
    > news:F8B456A7-F5A7-4EEF-AB8A-730E7C716608@microsoft.com...
    >
    >> Hi all,
    >>
    >> I have a webservice which needs to add user accounts to domain A. In
    >> order
    >> to do this, I have set impersonation="true" in the web.config file
    >> and
    >> specified the username and password of a domain A user which has
    >> permissions
    >> to add users to the domain (A). This orginally worked but now is not
    >> and
    >> nothing has changed.
    >> I've looked at discussions and found nothing that has worked. People
    >> have
    >> suggested changing the machine.config <processModel> tag but this
    >> does not
    >> work as I need the user account to mimic the Domain user which has
    >> access
    >> to
    >> add the accounts.
    >> Any ideas? I would really like any help.
    >>
    >> Thanks,
    >> Jesse


    Dominick Baier [DevelopMentor] 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