Hi, My understanding is *basexhttp *does not use* .basex* or options for user details. It always runs as user admin with password from *data/users.xml*. If *data/users.xml* does not exist or does not specify an admin password then admin is also used as the password. [1],[2]
/Andy [1] http://www.mail-archive.com/basex-talk%40mailman.uni-konstanz.de/msg05469.ht... [2] https://github.com/Quodatum/openshift-basex-quick-start#users-and-permission...
On 5 April 2016 at 16:35, Jens Erat jens.erat@uni-konstanz.de wrote:
Hi Mike,
I'll have a look at that this weekend. Some wild guesswork: this might be a permission issue with the .basex file. It might also be that I messed up somewhere, but I verified changed .basex files have been working (actually, I'm using one myself in a project).
Could you share the example project including Dockerfile and the .basex file as tar or zip archive, preserving permissions (tar -p flag)?
Regards, Jens
Am 05.04.2016 um 17:08 schrieb Mike Cobo:
Hi BaseX team, hi all
I want to create a docker image based on the existing basexhttp image, but with other credentials for the admin user. For this reason I added an edited .basex file with changed password (here: mypassword) to the new docker image:
.basex:
... # Client/Server Architecture HOST = localhost PORT = 1984 SERVERPORT = 1984 USER = admin PASSWORD = mypassword SERVERHOST = ...
Dockerfile:
FROM basex/basexhttp:latest MAINTAINER Mike myemail@mail.com COPY .basex /srv/ VOLUME ["/srv/BaseXData", "/srv/BaseXWeb"]
After starting the docker container I checked if the edited file can be found under the path "/srv/.basex". The file is there but when I want to login to the database (or run an XQuery script via the browser) I cannot login with admin/mypassword. The erreor message is:
*Connection failed: Access denied. *
But I can still use the default user/pw (admin/admin) to connect.
Why is the changed .basex file not loaded/parsed when starting the BaseX (http) server on the docker container? Should the file be copied to a different path?
Best regards, Mike
-- Jens Erat Universität Konstanz Kommunikations-, Infomations-, Medienzentrum (KIM) Abteilung Basisdienste D-78457 Konstanz Mail: jens.erat@uni-konstanz.de