On 28 February 2012 05:27, Nate Angell <[email protected]> wrote:
> Thanks for helping think this through Ian...I certainly wouldn't
> presume to tell you how the system you wrote behaves ;)
hey, no problem. You must tell me how it behaves, most of the time it
misbehaves :)
>
> My experiments show that when one impersonates a user, and then
> creates a Sakai OAE doc while impersonating, the following values
> associated with that document are aligned with the user being
> impersonated (in this example the admin user was impersonating the
> xolotl user):
>
> {
> "_created": 1330366895100,
> "_createdBy": "admin",
> "_id": "4YnjwGFvEeGYOZaTCgABEA+",
> "_lastModified": 1330366896495,
> "_lastModifiedBy": "xolotl",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
That proves it works !
Out of interest, how are you performing the sudo and what cookies do
you see in the client once you have sudoed ?
Ian