On 04/09/2014 15:29, Nicola Baiocco wrote:
Hi,
Is there a way to update the admin password via rest services in
Syncope 1.1.8?
Hi Nicola,
nope: the only way to update admin password is as explained in
https://cwiki.apache.org/confluence/display/SYNCOPE/Set+administrator+credentials
Could this feature be in next future roadmaps?
Hum, I am not sure: admin is not a real user (you won't find it in the
internal storage) and is a sort of "last resort", more or less like as
root user on *nix.
Otherwise is there a way to create an user with the same roles and
capabilities of the default admin?
Almost: give all entitlements to a certain role, then assign an user to
that role.
Now such user will be able to work as admin: only, you will need to keep
such role up-to-date with other roles' entitlements (for the stock admin
user this is performed automatically) - as explained in
https://cwiki.apache.org/confluence/display/SYNCOPE/Authentication+and+authorization
Alternatively, you'd need to change the logic in
SyncopeUserDetailsService#loadUserByUsername to dynamically assign all
available entitlements to a different user than admin.
HTH
Regards.
--
Francesco Chicchiriccò
Tirasa - Open Source Excellence
http://www.tirasa.net/
Involved at The Apache Software Foundation:
member, Syncope PMC chair, Cocoon PMC, Olingo PMC
http://people.apache.org/~ilgrosso/