DACS_VFS(8) | DACS Web Services Manual | DACS_VFS(8) |
dacs_vfs - access objects through the DACS virtual filestore
dacs_vfs [dacsoptions[1]]
This program is part of the DACS suite.
The dacs_vfs web service is an interface to the DACS virtual filestore. It provides a way to examine, change, and delete items independently of how and where they are stored.
This program is also available as a DACS utility, dacsvfs(1)[2].
Only the DACS administrator should be able to successfully run this program; therefore, access to it is totally denied by the default rules as a security precaution.
In addition to the standard CGI arguments[3], dacs_vfs requires the following CGI arguments:
ITEM_TYPE
REQUEST
VALUE
FIELD_SEP
The following examples assume that the web service requests are granted.
This request will return the revocation list:
https://example.com/cgi-bin/dacs/dacs_vfs?REQUEST=get&ITEM_TYPE=revocations
Assuming the jurisdiction is configured appropriately, the following request will return the roles associated with DEMO::EXAMPLE:jones:
https://demo.example.com/cgi-bin/dacs/dacs_vfs?REQUEST=get+jones&ITEM_TYPE=roles
If the jurisdiction is configured with the directives:
LOG_FILE "${Conf::DACS_HOME}/logs/dacs_log-" . strftime("%d-%b-%y") VFS "[logfile]dacs-fs:${Conf::DACS_HOME}/logs/dacs_log-" . strftime("%d-%b-%y")
then the following request will return the contents of the jurisdiction's DACS log file:
https://demo.example.com/cgi-bin/dacs/dacs_vfs?REQUEST=get&ITEM_TYPE=logfile
The logfile item type is not something predefined by DACS; new (not predefined) item types can be created at will and that is what was done for this example. Since logfiles can potentially include sensitive information, as can other resources used by DACS, it should be obvious why access to this web service should be very carefully managed.
The program exits 0 if everything was fine, 1 if an error occurred. If an error occurs during processing, this web service will return an HTTP Status of 400, followed by a blank line which is optionally followed by a descriptive error message.
Only the text/plain output format is implemented.
dacsvfs(1)[2], dacs.conf(5)[5]
Distributed Systems Software (www.dss.ca[6])
Copyright © 2003-2012 Distributed Systems Software. See the LICENSE[7] file that accompanies the distribution for licensing information.
02/19/2019 | DACS 1.4.40 |