diff options
| author | David Sommerseth <dazo@users.sourceforge.net> | 2008-09-24 17:11:46 +0200 |
|---|---|---|
| committer | David Sommerseth <dazo@users.sourceforge.net> | 2008-09-24 17:11:46 +0200 |
| commit | f5c8208613cad929aa5c5e3b7a063eba09737fde (patch) | |
| tree | d67279be33c2342a34b6de3cfb614bf2e1f6f39e /database/sqlite/sql-schema.sql | |
| parent | 7a1ba700e0b021f040bfe83dd89368d97a477397 (diff) | |
| download | eurephia-f5c8208613cad929aa5c5e3b7a063eba09737fde.tar.gz eurephia-f5c8208613cad929aa5c5e3b7a063eba09737fde.tar.xz eurephia-f5c8208613cad929aa5c5e3b7a063eba09737fde.zip | |
Improved argument parsing for the eurephia-auth arguments passed from the config file.
Using getopt_long(...) to handle arguments. The following options are available:
[--log-destination | -l] {<filename> | openvpn: | none: }
If openvpn: is given, all errors will be written to stderr which
OpenVPN then will take care for getting logged
If none: is given, no logging will happen in eurephia-auth
In all other cases, a file with the given name will be opened
and all logs will go here.
If no --log-destination is given, it will let openvpn do the
logging.
[--log-level | -L ] <log level>
Sets log thresold level
[--database-interface | -i] <database driver>
Tells eurephia-auth which database driver (.so) file to load for
database handling
After these options, a '--' (double ones!) should be given, at least to clarify
that we are done with arguments for eurephia-auth. All arguments after '--' will
be sent directly and unparsed further to the database module. The database module
can then use it's own argument parsing.
For the eurephiadb-sqlite.so, it takes only one parameter - database file.
OpenVPN config example:
plugin /etc/openvpn/eurephia/eurephia-auth.so --log-destination /var/log/eurephia-auth.log --log-level 2 --database-interface /etc/openvpn/eurephia/eurephiadb-sqlite.so -- /etc/openvpn/eurephia/eurephiadb
Or a shorter version would be:
plugin /etc/openvpn/eurephia/eurephia-auth.so -l /var/log/eurephia-auth.log -L 2 -i /etc/openvpn/eurephia/eurephiadb-sqlite.so -- /etc/openvpn/eurephia/eurephiadb
Diffstat (limited to 'database/sqlite/sql-schema.sql')
0 files changed, 0 insertions, 0 deletions
