Location of users.xml

Friday, 27 November 2015 · 3 messages
TR
Tom Rauchenwald27 Nov 2015 10:56 #
Hi, is it possible to override the expected location of users.xml? From the wiki (http://docs.basex.org/wiki/User_Management)
Quoted text · 2 lines
> The permission file has been moved from the home directory to the > database directory. It was renamed from .basexperm to users.xml
We're using the war distribution, and would prefer to either specify the location of users.xml via a parameter or have it reside in the war. Is this currently possible? Thanks, -tom
CG
Christian Grün27 Nov 2015 12:53 #
Hi Tom,
Quoted text · Tom Rauchenwald · 1 line
> is it possible to override the expected location of users.xml?
Currently no, but it’s possible to have the data directory inside the war file. Do you use a custom location? If you use RESTXQ, you could use XQuery to copy a users.xml file to the database directory. Christian
Quoted text · Tom Rauchenwald · 12 lines
>> The permission file has been moved from the home directory to the >> database directory. It was renamed from .basexperm to users.xml > > We're using the war distribution, and would prefer to either specify > the location of users.xml via a parameter or have it reside in the > war. > > Is this currently possible? > > Thanks, > -tom >
TR
Tom Rauchenwald27 Nov 2015 14:31 #
Hi Christian, hope you're well!
Quoted text · Christian Grün · 7 lines
>> is it possible to override the expected location of users.xml? > > Currently no, but it’s possible to have the data directory inside the > war file. Do you use a custom location? > > If you use RESTXQ, you could use XQuery to copy a users.xml file to > the database directory.
Thanks for the quick response. We use the java client api, so the users.xml needs to be in place or we won't be able to connect. We use usually use a custom location for the database directory. I'll have to think about this a bit more, but I guess we could adapt the war file to our needs and copy the users.xml to the database directory when basex starts up.
Quoted text · Christian Grün · 1 line
> Christian
Thanks, -tom

⚡Generated with XQuery