Changes

Jump to navigation Jump to search
161 bytes added ,  10:40, 4 February 2015
no edit summary
|[[Options#USER|USER]]
|{{Code|admin}}
| User name. Applies to REST and WebDAV service: If no user is specified, the credentials must be passed on by the client. Please check by yourself if it is safe to store your credentials in plain text. Until {{Version|7.9}}, the {{Code|admin}} user was specified as default.
|-
|[[Options#USER|PASSWORD]]
|{{Code|admin}}
| Login data. Applies to REST and WebDAV service: If no password is specified, it must be passed on by the client. Please check by yourself if it is safe to store your credentials in plain text. Until {{Version|7.9}}, the {{Code|admin}} password was specified as default.
|-
|[[Options#HTTPLOCAL|HTTPLOCAL]]
How to set these options in the {{Code|web.xml}} of the BaseX web application is specific to the servlet container. For example, in Jetty it is done by [https://wiki.eclipse.org/Jetty/Reference/override-web.xml overriding the web.xml] file. Another option is to directly edit the {{Code|WEB-INF/web.xml}} file in the WAR archive (WAR files are simple ZIP files). Refer to the sample [https://github.com/BaseXdb/basex/blob/master/basex-api/src/main/webapp/WEB-INF/web.xml web.xml] of the basex-api package.
Different credentials can be assigned to each HTTP the REST and WebDAV service by specifying local init parameters. In the following example, the global specific credentials are overwritten and reset set for the REST service:
<pre class="brush:xml">
<init-param>
<param-name>org.basex.user</param-name>
<param-value>rest-user</param-value>
</init-param>
<init-param>
<param-name>org.basex.password</param-name>
<param-value>(:87!7X3$o3p</param-value>
</init-param>
</servlet>
==Available Services==
 
To enable or disable one of the provided services, the corresponding servlet entry in the {{Code|web.xml}} file needs to be removed/commented. The default URL paths are listed in the following table:
=User Management=
By default, REST and WebDAV services require client-side authentication.Default login data credentials can be stored server-side in the <code>web.xml</code> file or specified via[[Command-Line Options#BaseX HTTP Server|command-line arguments]]. If the HTTP server is started withno pre-defined credentials, users and passwords can be sent via
[http://en.wikipedia.org/wiki/Basic_access_authentication HTTP Basic Authentication]
with each HTTP request. Since {{Version|8.0}},
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu