[ 
https://issues.apache.org/jira/browse/SLING-6219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bertrand Delacretaz reassigned SLING-6219:
------------------------------------------

    Assignee:     (was: Bertrand Delacretaz)

I have implemented the create/delete user grammar in revisions 1768509 and 
1768513.

See 
https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/repoinit/parser/src/test/resources/testcases/test-60.txt
 for the supported syntax.

To implement the actual JCR operations, a visitor similar to 
ServiceAndAclVisitor needs to be added in the bundles/jcr/repoinit module, with 
test cases similar to those which currently test service users.

Adding tests to bundles/extensions/repoinit/it might not be needed if coverage 
is sufficient in that jcr/repoinit module.

> Allow to create users with repoinit
> -----------------------------------
>
>                 Key: SLING-6219
>                 URL: https://issues.apache.org/jira/browse/SLING-6219
>             Project: Sling
>          Issue Type: New Feature
>          Components: JCR, Repoinit
>            Reporter: Carsten Ziegeler
>             Fix For: Repoinit Parser 1.0.4, Repoinit JCR 1.0.4
>
>
> it seems it's not possible to create a user through the repoinit. 
> This would be very useful for sample apps and testing. For example, the
> slingshot sample app currently needs an admin user to create the sample
> user accounts. And therefore slingshot needs to be in the whitelist for
> admin usage - which is not a good thing
> I suggest we add:
> create user {name}
> create user {name} {password}
> delete user {name}
> If no pw is provided for create user, we create a random pw



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to