pan machine dpapi user mode problems (roaming profiles & keys)

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

  1. #1

    Default pan machine dpapi user mode problems (roaming profiles & keys)

    Hi,

    I have a web app that uses dpapi in user mode. It's important that the keys
    are usable across more than one machine - in case of disaster recovery, and
    scaling path.

    On a small test lan running windows 2000 and xp, I have this working - dpapi
    service account with a roaming profile can encrypt on one machine and
    decrypt on another.

    In the live environment running windows 2003 and xp, across a site to site
    vpn I have a number of problems:
    1) using roaming profile across vpn is unreliable - had a situation with
    existing local profile and no profile on remote machine (where the profile
    path points) - logged in and out of local machine as the relevant account -
    it didn't upload the profile in the location referenced by profile path for
    that user.

    2) therefore I did a manual backup and restore of the local profile
    (documents and settings\username\*) from one machine to another (side
    stepping roaming profile). Whilst each computer could encrypt and decrypt
    on it's own, I couldn't decrypt on one, what had been encrypted on the
    other.

    Is there any way to view the user profile keys used by dpapi?

    Should doing a manual backup and restore of the profile to another machine
    have preserved the original keys so that I can encyrpt on one, and decyrpt
    on the other machine?

    Thanks
    Martin


    Martin Guest

  2. Similar Questions and Discussions

    1. Further DPAPI (user store) problems
      Hi, I am trying to get the How To: Use DPAPI (User Store) from ASP.NET with Enterprise Services example working on my dev machine. Many thanks...
    2. Roaming Profiles
      I want to move two of my users to another site (different server, same AD). They both have roaming profiles which I want to move from their...
    3. Msn Messenger And roaming profiles
      is it possible to have msn roaming for each individual users under windows 2003 server and xp clients thanks
    4. Roaming Profiles not updated
      We are running a Windows 2k3 server with Windows XP clients and we have a problem that the profiles are not updated to the server. Can anyone...
    5. Help with roaming profiles
      Can someone tell me the right procedure for setting up a roaming profile. A kb article says to just click the profile in XP and change it from...
  3. #2

    Default Re: pan machine dpapi user mode problems (roaming profiles & keys)

    I read in "How to troubleshoot the Data Protection API (DPAPI)"
    section "DPAPI and Roaming Profiles"
    ([url]http://support.microsoft.com/default.aspx?scid=kb;en-us;309408#6[/url]) that "For
    DPAPI to work correctly when it uses roaming profiles, the domain user must
    only be logged on to a single computer in the domain. If the user wants to
    log on to a different computer that is in the domain, the user must log off
    the first computer before the user logs on to the second computer. If the
    user is logged on to multiple computers at the same time, it is likely that
    DPAPI will not be able to decrypt existing encrypted data correctly."

    In an ASP.Net with enterprise services for DPAPI environment (as outlined
    the ASP.Net dpapi user mode how to) , where the dpapiservice is running as
    the account with the roaming profile, what happens if the service is running
    on multiple machines simultaneously? Is this equivelent to the same user
    being logged in multiple times? Is there any role for mandatory profiles to
    stabalise the situation?

    Is there any way for dpapi to be used in a web farm scenario?

    Thanks
    Martin


    "Martin" <x@y.z> wrote in message
    news:u3t1%23nesEHA.3940@TK2MSFTNGP10.phx.gbl...
    > Hi,
    >
    > I have a web app that uses dpapi in user mode. It's important that the
    keys
    > are usable across more than one machine - in case of disaster recovery,
    and
    > scaling path.
    >
    > On a small test lan running windows 2000 and xp, I have this working -
    dpapi
    > service account with a roaming profile can encrypt on one machine and
    > decrypt on another.
    >
    > In the live environment running windows 2003 and xp, across a site to site
    > vpn I have a number of problems:
    > 1) using roaming profile across vpn is unreliable - had a situation with
    > existing local profile and no profile on remote machine (where the profile
    > path points) - logged in and out of local machine as the relevant
    account -
    > it didn't upload the profile in the location referenced by profile path
    for
    > that user.
    >
    > 2) therefore I did a manual backup and restore of the local profile
    > (documents and settings\username\*) from one machine to another (side
    > stepping roaming profile). Whilst each computer could encrypt and decrypt
    > on it's own, I couldn't decrypt on one, what had been encrypted on the
    > other.
    >
    > Is there any way to view the user profile keys used by dpapi?
    >
    > Should doing a manual backup and restore of the profile to another machine
    > have preserved the original keys so that I can encyrpt on one, and decyrpt
    > on the other machine?
    >
    > Thanks
    > Martin
    >
    >

    Martin 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