summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Added simple user lister (updated listusers command)David Sommerseth2008-12-061-2/+53
|
* Added sorting in db driver in eDBadminGetUserList(...). Improved comments.David Sommerseth2008-12-062-6/+50
|
* BUGFIX: Made some functions more nullsafe and fixed wrong function ↵David Sommerseth2008-12-062-6/+10
| | | | declaration in .h
* BUGFIX: Removed a free_nullsafe(randdata) on the wrong placeDavid Sommerseth2008-12-061-1/+0
|
* Added admin function to give a list of usersDavid Sommerseth2008-12-063-2/+81
|
* Moved the typedef struct eFieldMap from *common.h to *struct.hDavid Sommerseth2008-12-062-8/+17
|
* Changed the sortkey type from int to const char *David Sommerseth2008-12-062-10/+14
|
* Added eurephia_admin_common.[ch]David Sommerseth2008-12-062-0/+214
| | | | | | | Will contain common functions for the administration API. At the moment only a generic function which converts unified field names to proper database field names is implemented. This functions is made especially for sorting keys (ORDER BY <fields>)
* Changed admin functions to be prefixed with eDBadmin*, to unify the function ↵David Sommerseth2008-12-053-37/+37
| | | | name schema
* Fixed the missing 'help' page when doing 'help help' or '-h help'David Sommerseth2008-12-042-2/+9
|
* BUGFIX: Corrected wrong --help|help command behaviourDavid Sommerseth2008-12-041-3/+4
|
* Fixed missing arghints in help commandDavid Sommerseth2008-12-041-1/+1
|
* config command: Added -l | --list to list all db parametersDavid Sommerseth2008-12-042-1/+10
|
* BUGFIX: Avoid showing (null) = (null) when no config params is set in dbDavid Sommerseth2008-12-041-1/+3
|
* Improved help functionalityDavid Sommerseth2008-12-043-3/+42
| | | | | | | | | | | | | | | | | | | | 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
* Implemented argparser in edit_config.cDavid Sommerseth2008-12-041-6/+33
|
* Modified to work with new argparserDavid Sommerseth2008-12-041-7/+5
|
* Enhanced the argument parser to handle mulitple options to arguments betterDavid Sommerseth2008-12-042-9/+21
| | | | | | | | The char *optarg is removed and replaced with char *optargs[MAX_ARGUMENTS] This will contain all extra options given to an argument. In addtions, MODULE must be defined with a string, which will be used when printing argument parsing errors
* Wrote a replacement getopt for eurephiadmDavid Sommerseth2008-12-044-18/+100
| | | | | | | | | | | | | | | 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.
* Added logging of commands being issuedDavid Sommerseth2008-12-031-0/+23
|
* Fixed a memory leakDavid Sommerseth2008-12-031-0/+1
|
* Moved administration functions (eDBadmin*) into adminstration.cDavid Sommerseth2008-12-033-364/+381
|
* Workaround to avoid getting existing eurephiadb template db block rebuildingDavid Sommerseth2008-12-031-1/+4
|
* Fixed wrong data type for the access variable in eDBadminAuth(...)David Sommerseth2008-12-031-2/+2
|
* BUGFIX: Logout works properly again and improved logout status changeDavid Sommerseth2008-12-032-8/+12
| | | | | | - 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
* Show info when login failsDavid Sommerseth2008-12-031-0/+6
|
* Changed the logout behaviour to avoid login and/or access control check when ↵David Sommerseth2008-12-034-14/+17
| | | | user is about to logout
* config command: show only a blank value when value is not found, instead of ↵David Sommerseth2008-12-021-1/+2
| | | | (null)
* Enhanced the access control by introducing access levelsDavid Sommerseth2008-12-025-46/+105
|
* config command: only show value and not key = 'val' on queryDavid Sommerseth2008-12-021-1/+1
|
* Added command for editing eurephia config (in database)David Sommerseth2008-12-023-1/+57
|
* Added database functions for editing the openvpn_config tableDavid Sommerseth2008-12-023-0/+52
|
* Moved all declarations which has to do with commands into commands.hDavid Sommerseth2008-12-022-27/+28
|
* Added dumping of config settings in database as well as only config fileDavid Sommerseth2008-12-021-6/+19
|
* BUGFIX: cmd_Logout(...) interpreted eDBadminLogout(...) result wrongDavid Sommerseth2008-12-021-2/+2
|
* BUGFIX: Fixed no logging when log file is given in both config file and on ↵David Sommerseth2008-12-021-1/+1
| | | | command line
* Added proper argument handling. Allowing log settings to be overridden by ↵David Sommerseth2008-12-021-12/+83
| | | | command line
* Merge branch 'master' into eurephiadmDavid Sommerseth2008-12-022-2/+4
|\
| * Added login and logout info messages when log-level is 1David Sommerseth2008-12-021-0/+2
| |
| * Made some messages clearer in efw-iptablesDavid Sommerseth2008-12-021-2/+2
| |
* | Improved error handling if database_driver is not defined.David Sommerseth2008-12-011-1/+1
| |
* | Improved ugly comment errorDavid Sommerseth2008-12-011-1/+1
| |
* | Prepared to have eurephiadm commands as one file per commandDavid Sommerseth2008-12-014-30/+108
| | | | | | | | | | | | | | | | 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.
* | Receive eurephiaVALUES struct with config instead of char *db interface.David Sommerseth2008-12-012-5/+44
| | | | | | | | | | | | Get the database driver directly from config file. Implemented also log settings via config file as well, which can be overridden by future command line arguments.
* | Implemented command handling. Missing argument handling yetDavid Sommerseth2008-12-011-7/+99
| |
* | Split eurephiadm.c into several filesDavid Sommerseth2008-12-018-343/+523
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Added possibility to add comments in config file using #David Sommerseth2008-12-011-0/+9
| |
* | Removed unneeded debug infoDavid Sommerseth2008-12-011-1/+0
| |
* | BUGFIX: Fixed missing slash when env.var. EUREHPIA_DIR is usedDavid Sommerseth2008-12-011-1/+2
| |
* | BUGFIX: Do not try to parse config line if no separator ('=') is found.David Sommerseth2008-12-011-1/+6
| |