can't change password in basex web app

Friday, 15 February 2013 · 4 messages · last reply 19 Feb 2013
MF
marco fregonese15 Feb 2013 11:20 #
Hello everybody, I'm trying to change the default user name and password in basex web app. I changed the param-value in WEB-INF/web.xml but when deployed in Tomcat or using as standalone application by running BaseX HTTP Server, the web app is still requiring as user name and password "admin", "admin". What am I doing wrong?
<context-param>
    <param-name>org.basex.user</param-name>
    <param-value>myusername</param-value>
  </context-param>
  <context-param>
    <param-name>org.basex.password</param-name>
    <param-value>mypassword</param-value>
  </context-param>
Thanks.
CG
Christian Grün17 Feb 2013 18:05 #
Hi Marco, have you also copied your user permissions file, as described in our Wiki [1]? Best, Christian [1] http://docs.basex.org/wiki/Web_Application#User_Management
Quoted text · marco fregonese · 28 lines
On Fri, Feb 15, 2013 at 11:20 AM, marco fregonese <marcofregonese at gmail.com> wrote: > Hello everybody, > > I'm trying to change the default user name and password in basex web app. > I changed the param-value in WEB-INF/web.xml but when deployed in Tomcat or > using as standalone application by running BaseX HTTP Server, the web app is > still requiring as user name and password "admin", "admin". What am I doing > wrong? > > <context-param> > <param-name>org.basex.user</param-name> > <param-value>myusername</param-value> > </context-param> > <context-param> > <param-name>org.basex.password</param-name> > <param-value>mypassword</param-value> > </context-param> > > Thanks. > > > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
MF
marco fregonese18 Feb 2013 20:14 #
Hi Christian, thank you for answering. I could change the admin password eventually but for me the problem was that there is no .basexperm file in basex web application unless you create a new user (so a .basexper file is automatically created as well) and after you change manually the admin MD5 hash value (supposing that this is the right procedure). I was also wondering if there is a way to make available the /restxq of my basex web application to anyone on the web without being requested username and password. Thank you. 2013/2/17 Christian Grün <christian.gruen at gmail.com>
Quoted text · Christian Grün · 43 lines
> Hi Marco, > > have you also copied your user permissions file, as described in our Wiki > [1]? > > Best, > Christian > > [1] http://docs.basex.org/wiki/Web_Application#User_Management > ___________________________ > > On Fri, Feb 15, 2013 at 11:20 AM, marco fregonese > <marcofregonese at gmail.com> wrote: > > Hello everybody, > > > > I'm trying to change the default user name and password in basex web app. > > I changed the param-value in WEB-INF/web.xml but when deployed in Tomcat > or > > using as standalone application by running BaseX HTTP Server, the web > app is > > still requiring as user name and password "admin", "admin". What am I > doing > > wrong? > > > > <context-param> > > <param-name>org.basex.user</param-name> > > <param-value>myusername</param-value> > > </context-param> > > <context-param> > > <param-name>org.basex.password</param-name> > > <param-value>mypassword</param-value> > > </context-param> > > > > Thanks. > > > > > > > > _______________________________________________ > > BaseX-Talk mailing list > > BaseX-Talk at mailman.uni-konstanz.de > > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > > >
CG
Christian Grün19 Feb 2013 01:35 #
Hi Marco,
Quoted text · marco fregonese · 5 lines
> I could change the admin password eventually but for me the problem was that > there is no .basexperm file in basex web application unless you create a new > user (so a .basexper file is automatically created as well) and after you > change manually the admin MD5 hash value (supposing that this is the right > procedure).
..exactly. In future, we’ll probably replace .basexperm with a better readable XML format.
Quoted text · marco fregonese · 3 lines
> I was also wondering if there is a way to make available the /restxq of my > basex web application to anyone on the web without being requested username > and password.
You can set some default credentials in the web.xml file, which will then be used for all HTTP services, including RESTXQ. Best, Christian

⚡Generated with XQuery