01-22-06 11:06 PM
Hey AC!
A logon via remote desktop == an interactive logon.
(Whilst that's only 98% true, in the context of this problem the other 2%
just confuse the issue!)
There's no way to get a CmsAppContext without the "Impersonate A Client Afte
r
Authentication" assignment.
But this is no biggie if you own the boxes. - remember ASPNET has this assig
nment
so it's a question of trust (in the deployed code).
Just create a group which contains the users you need to be able to run the
app and then give that group the assignment.
Then you're good to go. It'll work at the console - via remote desktop -
via runas..., whatever.
If you already have a group in your Site Mangler Admins Role group - u could
give that group the assignment.
you can test this on a local box - create a regular user and add it to MCMS
admins in Site Mangler. use Run As... to run the app as the regular user
and watch it fail at AuthenticateAs until you grant the assignment. (you'll
probably get a few CMS licence has expired errrors on the inital call as
well - but let's not go there )
s.
[vbcol=seagreen]
> Hey Spence!
>
> Thanks for the reply... now I don't feel so bad beating my head
> against the wall... appears this is coming down to an OS policy issue
> and not with CMS...
>
> I believe I didn't state the exact situation which [I think] mitigates
> the rest of your post. First, I wasn't aware of the policy change so
> at the very least, your reply did help . With that being said, let
> me clarify the situation... what you explained though does sound like
> the behavior.
>
> Here's the deal: I have a console app that authenticates the current
> user (when that failed I tried using the AuthenticateUsingUserHandle)
> to get the CmsApplicationContext (what the console app does isn't
> important at this time as the error is thrown on the authentication
> line... it never makes it past that point). The console app ~usually~
> runs on one of our servers (shared build, dev, QA, authoring...
> usually not on production). To run it, people login using Remote
> Desktop and execute the app.
>
> Interactive login does mean logging in at the console... so it seems
> that the Remote Desktop session is not (due to the policy you
> outlined) playing by the same rules and thus, the console app won't
> run.
>
> You have any suggestions how I can set it so the person who's logging
> in (via Remote Desktop) can simply get a CmsApplicationContext using
> their own credentials?
>
> If not...the only way around this issue is:
>
> Authentication" permission
>
> Frustrated,
> -AC
[ Post a follow-up to this message ]
|