| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
The check if dbargc exceeds MAX_ARGUMENTS was done _after_ it was checked
if the array element is NULL. This was not the intention.
Signed-off-by: David Sommerseth <dazo@eurephia.org>
(cherry picked from commit 51f8c8e930221cc5feeac4f84be5550b4e5be9dd)
|
|
|
|
| |
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
|
|
|
|
|
|
|
|
| |
Valgrind complained about reachable buffers within the libxml2 and libxslt
functions. Found some init and cleanup functions which needed to be called
to solve this.
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
|
| |
|
| |
|
|\ |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Also simplified the initialisation of the logging module. By calling
the eurephia_log_init(eurephiaCTX *, char *dest, int loglevel) function,
a log context will be setup inside the eurephiaCTX.
To close the log file, eurephia_log_close(eurephiaCTX *) must be called.
The destination string to eurephia_log_init() can be:
- stdout:
Log everything to stdout
- stderr:
Log everything to stderr
- none:
Do no logging at all
- syslog:<facility>
Log via syslog. <facility> can be: user, local[0-7],
daemon or authpriv.
- Filename
All logging goes to the given filename. If the filename
string is not recognised by any of the reserved words above,
it will be handled as a filename.
|
|/
|
|
|
|
|
|
| |
eDBadminAuthenticate()
eDBadminAuth(), eDBadminValidateSession(), eDBadminRegisterLogin() and
eDBadminLogout() are now unfied into one admin function, eDBadminAuthenticate().
This function receives all input as eurephia XML documents.
|
| |
|
|
|
|
| |
This also improves debugging as well, if debug logging is enabled and log level is >= 40.
|
| |
|
| |
|
|
|
|
|
|
|
| |
In commit d7a8babb19bcc1107daff0cc5673bc32b0ed785b the check if the
configuration value 'eurephiadm_xslt_path' was set in the database
looked in the wrong configuration area. Fixed this and it now copies
the value over from the database configuration.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Added two extra ./configure arguments, --xslt-path which defines the
root directory for all eurephia specific XSLT templates (defaults to
/usr/share/eurephia/xslt) and --eurephiadm-xslt which defines the path
eurephiadm will use for its XSLT templates (defaults to
/usr/share/eurephia/xslt/eurephiadm)
Added an extra configuration paramet for eurephiadm
(eurephiadm_xslt_path), which can be used to override the compiled in
default values
|
|
|
|
|
| |
Added in addition missing GPLv2 only remarks where it was missing
from commit 0712bce6f387121e37501ec323e3da89ce4300c3
|
|
|
|
|
| |
Made sure we only include needed include files and checked that
the copyright headers are equal and correct
|
| |
|
| |
|
|
|
|
|
| |
By adding username=<eurephiadm username>, the program will not ask about
username when logging in, only password
|
|
|
|
|
|
| |
Sending the argument incrementer as reference instead of as value. This
way eurephia_getopt(...) can directly increase the incrementer on arguments with
extra options.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Now each command can (should!) add a help function. This
is done by editing commands.h to add the function name for
the function printing out the help text.
Added help text for the config command.
This help function will be called when eurephiadm is called with:
eurephiadm -h <command>
eurephiadm --help <command>
eurephiadm help <command>
In addition the command function should also parse arguments and
call the help function when --help or -h argument is given, like
eurephiadm config -h
eurephaidm config --help
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is because default getopt(...) is not flexible enough for
eurephiadm. Example:
eurephiadm -l test.log config -s var1 "value 1"
eurephiadm config -s var2 value2
By using getopt in the eurephiadm.c, the -s argument will be parsed
there as well, and it is no good solution how to just send arguments
after the 'command' further to another argument parser.
The new implementation is also not as feature rich as GNU getopt, but
it is feature rich enough for the current needs.
|
| |
|
|
|
|
|
|
| |
- cmd_Logout(...) used the wrong argv[] index for sessionkey.
- Improved eDBadminValidateSession(...) to set status to '5' on sessions
which are getting logged out due to missing privileges
|
| |
|
|
|
|
| |
user is about to logout
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
command line
|
|
|
|
|
|
|
|
| |
under the commands/ directory. The declaration of each command
is done in the commands.h file.
Implemented changes from commit 525361b6dc382d5086e9e2b0539f3248ee239023
in eurephiadm as well. Reorganised and improved some comments as well.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As the code size on eurephiadm.c have grown quite a lot, it was about
time to split it into categories.
client_config.[ch] Manages unified config file and filenames, including
directory for these files. It also has the possibility
to also override defaults via environment variables.
It also contains a simple config file parser which
puts the config values into an eurephiaVALUES struct.
client_context.[ch] Functions for creating and destroying an eurephia context
needed for proper implementation.
client_session.[ch] Functions for creating and reopening old eurephia sessions,
needed for proper implementation.
Also went through all include statements, to make sure each file do not include
more than absolutely needed.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
The config file parser will put all configuration parameters into an
eurephiaVALUES stack. eGet_value(...) functions can be used for further
processing.
|
|
|
|
| |
Auto-logout implemented as well
|
| |
|
|
|
|
|
|
| |
Follow up of commit 103acd7c2e1467401f0795930be9140dc5ed47ff. Seems
to work fine via both plugin mode and eurephiadm, regarding core dumping
too.
|
| |
|