Skip to content

Create an initial user

GVogeler edited this page Feb 10, 2021 · 12 revisions

The MOM/XRX++-application comes without an initial user. You can use the admin user you created for the eXist-database as an MOM-CA user. You have to the assign all users to an eXist-group called atom and to the group guest.

All MOM-CA user information (roles, user generated content) resides in the db/mom-data/xrx.user-collection, which you have to create manually in the general exist client. In this collection create the following:

  • a xml-file with the name of the user (e.g. admin.xml) looking like this:

<xrx:user xmlns:xrx="http://www.monasterium.net/NS/xrx"><xrx:username/><xrx:password/><xrx:firstname>Your</xrx:firstname><xrx:name>Name</xrx:name><xrx:email>admin</xrx:email><xrx:moderator>admin</xrx:moderator><xrx:street/><xrx:zip/><xrx:town/><xrx:phone/><xrx:institution/><xrx:info/><xrx:storage><xrx:saved_list/><xrx:bookmark_list/></xrx:storage></xrx:user>

The user name for MOM-CA is stored in the <xrx:email>-element. The <xrx:username>- and <xrx:password>-elements are legacy and can/should remain empty.

  • a collection with the name of the user (e.g. admin) which contains a role-definition file with the name of the user extended by .role.xml (e.g. admin.role.xml) in which you define the roles in a <xrx:role>-element. You can assign the roles of metadata-manager, moderator, translator, html-author and user-administrator. The file could look like

<xrx:roles xmlns:xrx="http://www.monasterium.net/NS/xrx"> <xrx:role>user-administrator</xrx:role> <xrx:role>moderator</xrx:role> </xrx:roles>

  • add the user to exist-db via exist own user management. The password is stored here.
Clone this wiki locally