I'm afraid, at the moment you are stuck with the superuser unless you write your own command to change that. Workflow is executed in system context (MgnlParticipant.consume(), line 131) and BaseActivationCommand uses current context to obtain user (BaseActivationCommand.getSyndicator(), line 61) and as you can see SystemContext will return system user as a user name when queried (AbstractContext.getUser(), line 70). The system user is obtained from the UserManager.getSystemUser().
So either you write your own activation command to intercept at the point where BaseActivationCommand normally inserts superuser or if you have customized UserManager, you can change the name that will be returned by UserManager.getSystemUser(), but since this would be system wide change there might be some side effects. HTH, Jan On Wed, 2009-02-25 at 14:11 -0600, McMains, Sean A wrote: > I’m still working toward getting the Workflow module functioning in > our Magonlia installation. The latest sticky wicket is authentication. > > When I turned on the authentication module, I started getting back 401 > errors whenever I tried to publish something. I turned Wireshark on > the publish request to figure out what was different. It turns out > that when we run without the Workflow module, everything is published > using the credentials of the person who initiated the publish, as I > expected. When workflow is turned on, however, it tries to publish > content using the Superuser account instead. Since our system is > configured to only allow LDAP logins, and Superuser isn’t in our LDAP > store, this fails. > > So, is there any way to change what account is used for activation > with workflow, or does it have to be Superuser? And is there any way > we can configure our system to use LDAP-only login, or does workflow > mean we’ll have to turn on login for the system/JCR accounts to use > it? > > Thanks for any insight, > > Sean > > > ______________________________________________________________________ > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- -- Best regards, Jan Haderka Magnolia International Ltd. ---------------------------------------------------------------------- [email protected] http://www.magnolia-cms.com Magnolia® - Simple Open Source Content Management ---------------------------------------------------------------------- ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
