简体   繁体   English

Apache Archiva设置管理员帐户密码

[英]Apache Archiva set admin account password

I have only ssh access to machine where I need to setup the Archiva. 我只有ssh可以访问需要设置Archiva的计算机。 So i wonder have can I create a admin account and set a password to that account. 所以我想知道是否可以创建一个管理员帐户并为该帐户设置密码。

I found in Archiva API /userService/createAdminUser but still I don't understand how to add a password to the user that will be created by this API request. 我在Archiva API / userService / createAdminUser中找到了,但仍然不明白如何向将由此API请求创建的用户添加密码。

Or maybe you can help me with another solution? 或者也许您可以帮助我提供其他解决方案?

The user format is defined here: http://archiva.apache.org/docs/2.0.1/rest-docs-redback-rest-api/el_ns0_user.html (the api accept both json and xml) 用户格式在此处定义: http : //archiva.apache.org/docs/2.0.1/rest-docs-redback-rest-api/el_ns0_user.html (API接受json和xml)

NOTE: you won't be able to use this api#method if the admin user already exists! 注意:如果管理员用户已经存在,则将无法使用此api#方法!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM