You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "zhouxu (JIRA)" <ji...@apache.org> on 2019/03/21 08:57:00 UTC
[jira] [Created] (OAK-8154) how to create system user with password
zhouxu created OAK-8154:
---------------------------
Summary: how to create system user with password
Key: OAK-8154
URL: https://issues.apache.org/jira/browse/OAK-8154
Project: Jackrabbit Oak
Issue Type: Bug
Components: core
Reporter: zhouxu
hello expert!
i create a system user named dmadmin succefully,but i donot know how to set user password.the code like these:
JackrabbitSession jackrabbitSession = (JackrabbitSession) jcrSession;
UserManager userManager = jackrabbitSession.getUserManager();
User user = userManager.createSystemUser("dmadmin", null);
user.setProperty("description", new StringValue("这是一个超级用户"));
user.setProperty("role", new StringValue("super_user"));
jackrabbitSession.save();
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)