Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Added functions for processing eurephiaACCESSINFO/eurephiaACCESSLIST | David Sommerseth | 2008-12-11 | 2 | -2/+19 |
| | | | | | | | | | | Implemented saving VPN access profile to the eurephiaCERTINFO struct and filling the eurephiaACCESSINFO with the proper information needed in the eDBadminGetUserInfo(...) function. The special thing about eurephiaACCESSINFO, is that it will not register duplicate records. And when the eurephiaCERTINFO is free'd, the eurephiaACCESSLIST will automatically be free'd as well. | ||||
* | users command: Fixed memory leak | David Sommerseth | 2008-12-10 | 1 | -0/+2 |
| | |||||
* | Updated eDBadminGetUserInfo(...) to take filtering parameter | David Sommerseth | 2008-12-10 | 1 | -16/+18 |
| | |||||
* | users command: fixed display when more certificates are listed | David Sommerseth | 2008-12-10 | 1 | -0/+3 |
| | |||||
* | users cmd: Split useraccount(...) function into show_user(...) and ↵ | David Sommerseth | 2008-12-10 | 1 | -37/+119 |
| | | | | | | | | | | | | | | | | | | | account_activation(...) The users --show command began to evolve into a more advanced show feature than initially planned, and needed more parameters to be more user friendly. These parameters on the other hand would not be needed for the activation and deactivation of an account. So the split became reasonable. Planned features for the show command is to show associated certificates as default. But you can then choose to show the lastlog of the log entries or the failed loggin attempts and blacklisted info for this user. These new features needs the database driver to be extended with a new argument to give a hint of which information we want to be extracted from the database. In addition, the eurephiaUSERINFO struct needs to be extended to embrace this information as well. | ||||
* | users command: Simplified the useraccount(...) function | David Sommerseth | 2008-12-10 | 1 | -70/+64 |
| | | | | | Avoided duplicated code lines. Changed -n parameter to -u for the --username option | ||||
* | BUGFIX: Fixed memset(...) going outside its boundaries | David Sommerseth | 2008-12-09 | 1 | -1/+1 |
| | |||||
* | users command; Added missing argument to the local help function (-s|--show) | David Sommerseth | 2008-12-09 | 1 | -0/+1 |
| | |||||
* | users command: Added showing associated certificates when using --show | David Sommerseth | 2008-12-09 | 1 | -2/+22 |
| | |||||
* | users command: Implemented activate and deactivate account feature | David Sommerseth | 2008-12-08 | 1 | -0/+47 |
| | |||||
* | users command: Added --show action, to display user info | David Sommerseth | 2008-12-07 | 1 | -1/+35 |
| | |||||
* | users command: Added forgotten mode (show account details) | David Sommerseth | 2008-12-06 | 1 | -5/+24 |
| | |||||
* | users command: Added framework for activation and deactivation of an account | David Sommerseth | 2008-12-06 | 1 | -5/+65 |
| | |||||
* | More improvements to eurephia_getopt(...) | David Sommerseth | 2008-12-06 | 5 | -13/+12 |
| | | | | | | Sending the argument incrementer as reference instead of as value. This way eurephia_getopt(...) can directly increase the incrementer on arguments with extra options. | ||||
* | Added missing copyright header, corrected another wrong file head | David Sommerseth | 2008-12-06 | 1 | -2/+1 |
| | |||||
* | users command: Extended the help section | David Sommerseth | 2008-12-06 | 1 | -0/+93 |
| | |||||
* | BUGFIX: Do not try to parse arguments which are NULL | David Sommerseth | 2008-12-06 | 1 | -0/+4 |
| | |||||
* | Renamed listuser command to users and improved arg parsing | David Sommerseth | 2008-12-06 | 3 | -6/+55 |
| | | | | | Reorganised the command a little bit, to make it more generic for user management | ||||
* | Fixed a missing fclose() in ReadConfig (causing memory leak) | David Sommerseth | 2008-12-06 | 1 | -0/+1 |
| | |||||
* | Fixed memory leak in parsing arguments for the eDBconnect(...) call | David Sommerseth | 2008-12-06 | 1 | -0/+1 |
| | |||||
* | Removed debug from eurephia_arraycp(...) | David Sommerseth | 2008-12-06 | 1 | -1/+0 |
| | |||||
* | Added new function for copying char ** (arrays) | David Sommerseth | 2008-12-06 | 2 | -0/+20 |
| | |||||
* | Cleaned up listuser command and added missing freeing of eurephiaUSERLIST struct | David Sommerseth | 2008-12-06 | 2 | -2/+6 |
| | |||||
* | Added simple user lister (updated listusers command) | David Sommerseth | 2008-12-06 | 1 | -2/+53 |
| | |||||
* | BUGFIX: Removed a free_nullsafe(randdata) on the wrong place | David Sommerseth | 2008-12-06 | 1 | -1/+0 |
| | |||||
* | 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 |
| | |||||
* | BUGFIX: Logout works properly again and improved logout status change | David Sommerseth | 2008-12-03 | 1 | -1/+1 |
| | | | | | | - 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 | 2 | -8/+11 |
| | | | | 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 | 2 | -13/+30 |
| | |||||
* | 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 |
| | |||||
* | 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 | ||||
* | Improved error handling if database_driver is not defined. | David Sommerseth | 2008-12-01 | 1 | -1/+1 |
| |