[
http://jira.nuxeo.org/browse/NXP-2585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=40145#action_40145
]
Florent Guillaume commented on NXP-2585:
----------------------------------------
The syntax in the descriptor to add can be similar to what we already have for
anonymousUser:
<userManager>
<users>
...
<virtualUser id="mysystem" searchable="false">
<property name="firstName">System</property>
<property name="lastName">User</property>
<property name="password">secret</property>
<group>administrators</group>
<group>members</group>
</virtualUser>
</users>
(searchable="false" can be implicit for now)
To do that, at least the following must be changed:
UserManagerDescriptor (notably .merge method)
UserService.recomputeUserManager
UserManager: add a .setVirtualUsers method
UserManagerImpl: implement it
tests:
TestUserService and test-userservice-config.xml
TestUserManager and userservice-config.xml
In UserManagerImpl, store the virtual users similarly to anonymous, except that
there may be several. Change all the places checking
username.equals(anonymousUserId) to also check virtual user ids. No need to
change the isAnonymousMatching ones, they deal with searches which we don't
need for virtual users for now.
Some small refactoring to make anonymous user be just some kind of virtual user
may help. Note that the notion of an anonymous user must be kept.
> Add "virtual users" that leave in configuration and not in a physical
> directory
> -------------------------------------------------------------------------------
>
> Key: NXP-2585
> URL: http://jira.nuxeo.org/browse/NXP-2585
> Project: Nuxeo Enterprise Platform
> Issue Type: New Feature
> Reporter: Florent Guillaume
> Assignee: Alain Escaffre
> Fix For: 5.1.6
>
> Original Estimate: 1 day
> Remaining Estimate: 1 day
>
> Implement a system that allows the creation of one or a few users (including
> their password) through XML files.
> The users would be used to launch automated processes, through REST or the
> scheduler.
> The users, for this task, do not need to be visible in the "ACL search" UI.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets