Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Added simple user lister (updated listusers command) | David Sommerseth | 2008-12-06 | 1 | -2/+53 | |
| | ||||||
* | Added sorting in db driver in eDBadminGetUserList(...). Improved comments. | David Sommerseth | 2008-12-06 | 2 | -6/+50 | |
| | ||||||
* | BUGFIX: Made some functions more nullsafe and fixed wrong function ↵ | David Sommerseth | 2008-12-06 | 2 | -6/+10 | |
| | | | | declaration in .h | |||||
* | BUGFIX: Removed a free_nullsafe(randdata) on the wrong place | David Sommerseth | 2008-12-06 | 1 | -1/+0 | |
| | ||||||
* | Added admin function to give a list of users | David Sommerseth | 2008-12-06 | 3 | -2/+81 | |
| | ||||||
* | Moved the typedef struct eFieldMap from *common.h to *struct.h | David Sommerseth | 2008-12-06 | 2 | -8/+17 | |
| | ||||||
* | Changed the sortkey type from int to const char * | David Sommerseth | 2008-12-06 | 2 | -10/+14 | |
| | ||||||
* | Added eurephia_admin_common.[ch] | David Sommerseth | 2008-12-06 | 2 | -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 Sommerseth | 2008-12-05 | 3 | -37/+37 | |
| | | | | name schema | |||||
* | Fixed the missing 'help' page when doing 'help help' or '-h help' | David Sommerseth | 2008-12-04 | 2 | -2/+9 | |
| | ||||||
* | BUGFIX: Corrected wrong --help|help command behaviour | David Sommerseth | 2008-12-04 | 1 | -3/+4 | |
| | ||||||
* | Fixed missing arghints in help command | David Sommerseth | 2008-12-04 | 1 | -1/+1 | |
| | ||||||
* | config command: Added -l | --list to list all db parameters | David Sommerseth | 2008-12-04 | 2 | -1/+10 | |
| | ||||||
* | BUGFIX: Avoid showing (null) = (null) when no config params is set in db | David Sommerseth | 2008-12-04 | 1 | -1/+3 | |
| | ||||||
* | Improved help functionality | David Sommerseth | 2008-12-04 | 3 | -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.c | David Sommerseth | 2008-12-04 | 1 | -6/+33 | |
| | ||||||
* | Modified to work with new argparser | David Sommerseth | 2008-12-04 | 1 | -7/+5 | |
| | ||||||
* | Enhanced the argument parser to handle mulitple options to arguments better | David Sommerseth | 2008-12-04 | 2 | -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 eurephiadm | David Sommerseth | 2008-12-04 | 4 | -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 issued | David Sommerseth | 2008-12-03 | 1 | -0/+23 | |
| | ||||||
* | Fixed a memory leak | David Sommerseth | 2008-12-03 | 1 | -0/+1 | |
| | ||||||
* | Moved administration functions (eDBadmin*) into adminstration.c | David Sommerseth | 2008-12-03 | 3 | -364/+381 | |
| | ||||||
* | Workaround to avoid getting existing eurephiadb template db block rebuilding | David Sommerseth | 2008-12-03 | 1 | -1/+4 | |
| | ||||||
* | Fixed wrong data type for the access variable in eDBadminAuth(...) | David Sommerseth | 2008-12-03 | 1 | -2/+2 | |
| | ||||||
* | BUGFIX: Logout works properly again and improved logout status change | David Sommerseth | 2008-12-03 | 2 | -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 fails | David Sommerseth | 2008-12-03 | 1 | -0/+6 | |
| | ||||||
* | Changed the logout behaviour to avoid login and/or access control check when ↵ | David Sommerseth | 2008-12-03 | 4 | -14/+17 | |
| | | | | user is about to logout | |||||
* | config command: show only a blank value when value is not found, instead of ↵ | David Sommerseth | 2008-12-02 | 1 | -1/+2 | |
| | | | | (null) | |||||
* | Enhanced the access control by introducing access levels | David Sommerseth | 2008-12-02 | 5 | -46/+105 | |
| | ||||||
* | config command: only show value and not key = 'val' on query | David Sommerseth | 2008-12-02 | 1 | -1/+1 | |
| | ||||||
* | Added command for editing eurephia config (in database) | David Sommerseth | 2008-12-02 | 3 | -1/+57 | |
| | ||||||
* | Added database functions for editing the openvpn_config table | David Sommerseth | 2008-12-02 | 3 | -0/+52 | |
| | ||||||
* | Moved all declarations which has to do with commands into commands.h | David Sommerseth | 2008-12-02 | 2 | -27/+28 | |
| | ||||||
* | Added dumping of config settings in database as well as only config file | David Sommerseth | 2008-12-02 | 1 | -6/+19 | |
| | ||||||
* | BUGFIX: cmd_Logout(...) interpreted eDBadminLogout(...) result wrong | David Sommerseth | 2008-12-02 | 1 | -2/+2 | |
| | ||||||
* | BUGFIX: Fixed no logging when log file is given in both config file and on ↵ | David Sommerseth | 2008-12-02 | 1 | -1/+1 | |
| | | | | command line | |||||
* | Added proper argument handling. Allowing log settings to be overridden by ↵ | David Sommerseth | 2008-12-02 | 1 | -12/+83 | |
| | | | | command line | |||||
* | Merge branch 'master' into eurephiadm | David Sommerseth | 2008-12-02 | 2 | -2/+4 | |
|\ | ||||||
| * | Added login and logout info messages when log-level is 1 | David Sommerseth | 2008-12-02 | 1 | -0/+2 | |
| | | ||||||
| * | Made some messages clearer in efw-iptables | David Sommerseth | 2008-12-02 | 1 | -2/+2 | |
| | | ||||||
* | | Improved error handling if database_driver is not defined. | David Sommerseth | 2008-12-01 | 1 | -1/+1 | |
| | | ||||||
* | | Improved ugly comment error | David Sommerseth | 2008-12-01 | 1 | -1/+1 | |
| | | ||||||
* | | Prepared to have eurephiadm commands as one file per command | David Sommerseth | 2008-12-01 | 4 | -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 Sommerseth | 2008-12-01 | 2 | -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 yet | David Sommerseth | 2008-12-01 | 1 | -7/+99 | |
| | | ||||||
* | | Split eurephiadm.c into several files | David Sommerseth | 2008-12-01 | 8 | -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 Sommerseth | 2008-12-01 | 1 | -0/+9 | |
| | | ||||||
* | | Removed unneeded debug info | David Sommerseth | 2008-12-01 | 1 | -1/+0 | |
| | | ||||||
* | | BUGFIX: Fixed missing slash when env.var. EUREHPIA_DIR is used | David Sommerseth | 2008-12-01 | 1 | -1/+2 | |
| | | ||||||
* | | BUGFIX: Do not try to parse config line if no separator ('=') is found. | David Sommerseth | 2008-12-01 | 1 | -1/+6 | |
| | |