summaryrefslogtreecommitdiffstats
path: root/eurephiadm
Commit message (Collapse)AuthorAgeFilesLines
* Added functions for processing eurephiaACCESSINFO/eurephiaACCESSLISTDavid Sommerseth2008-12-112-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 leakDavid Sommerseth2008-12-101-0/+2
|
* Updated eDBadminGetUserInfo(...) to take filtering parameterDavid Sommerseth2008-12-101-16/+18
|
* users command: fixed display when more certificates are listedDavid Sommerseth2008-12-101-0/+3
|
* users cmd: Split useraccount(...) function into show_user(...) and ↵David Sommerseth2008-12-101-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(...) functionDavid Sommerseth2008-12-101-70/+64
| | | | | Avoided duplicated code lines. Changed -n parameter to -u for the --username option
* BUGFIX: Fixed memset(...) going outside its boundariesDavid Sommerseth2008-12-091-1/+1
|
* users command; Added missing argument to the local help function (-s|--show)David Sommerseth2008-12-091-0/+1
|
* users command: Added showing associated certificates when using --showDavid Sommerseth2008-12-091-2/+22
|
* users command: Implemented activate and deactivate account featureDavid Sommerseth2008-12-081-0/+47
|
* users command: Added --show action, to display user infoDavid Sommerseth2008-12-071-1/+35
|
* users command: Added forgotten mode (show account details)David Sommerseth2008-12-061-5/+24
|
* users command: Added framework for activation and deactivation of an accountDavid Sommerseth2008-12-061-5/+65
|
* More improvements to eurephia_getopt(...)David Sommerseth2008-12-065-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 headDavid Sommerseth2008-12-061-2/+1
|
* users command: Extended the help sectionDavid Sommerseth2008-12-061-0/+93
|
* BUGFIX: Do not try to parse arguments which are NULLDavid Sommerseth2008-12-061-0/+4
|
* Renamed listuser command to users and improved arg parsingDavid Sommerseth2008-12-063-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 Sommerseth2008-12-061-0/+1
|
* Fixed memory leak in parsing arguments for the eDBconnect(...) callDavid Sommerseth2008-12-061-0/+1
|
* Removed debug from eurephia_arraycp(...)David Sommerseth2008-12-061-1/+0
|
* Added new function for copying char ** (arrays)David Sommerseth2008-12-062-0/+20
|
* Cleaned up listuser command and added missing freeing of eurephiaUSERLIST structDavid Sommerseth2008-12-062-2/+6
|
* Added simple user lister (updated listusers command)David Sommerseth2008-12-061-2/+53
|
* BUGFIX: Removed a free_nullsafe(randdata) on the wrong placeDavid Sommerseth2008-12-061-1/+0
|
* 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
|
* BUGFIX: Logout works properly again and improved logout status changeDavid Sommerseth2008-12-031-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 failsDavid Sommerseth2008-12-031-0/+6
|
* Changed the logout behaviour to avoid login and/or access control check when ↵David Sommerseth2008-12-032-8/+11
| | | | 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-022-13/+30
|
* 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
|
* 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
* Improved error handling if database_driver is not defined.David Sommerseth2008-12-011-1/+1
|