| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | Added a new database driver function: eDBregister_vpnclientaddr() | David Sommerseth | 2012-09-13 | 2 | -4/+36 | |
| | | | | | | | | | | | | | This function replaces eDBregister_vpnmacaddr(). This new function will in addition to the MAC address (if OpenVPN is running in TAP mode) also register the client's IPv4 VPN address. It's also prepared for logging the client's IPv6 VPN address. This function supports both TUN and TAP mode, while the old function only handled TAP mode. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net> | |||||
| * | Modified the whole edb-sqlite driver to use a better error handling | David Sommerseth | 2011-12-19 | 10 | -192/+397 | |
| | | | | | | | | | | | | This will change the driver to use the new error routines made available in the SQLite3 framework. Some of the code is also restructured a little bit to simplify the code with these changes. The functionality should be the same as for, but better error messages are now sent back to the caller on the functions supporting XML. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net> | |||||
| * | Implemented better error handling in the SQLite3 framework | David Sommerseth | 2011-12-19 | 2 | -18/+133 | |
| | | | | | | | | | | | | | | | | | The core sqlite_query() function will now always return a pointer to a dbresult structure. This structure now contains a query status and the error message from the sqlite3 backend if something went wrong. This means that error checking from now on should use the sqlite_query_status() macro and not to check if sqlite_query() returns NULL. Another fundamental change is that sqlite_free_results() must always be called on the dbresult structure now, to free the memory used by either data from the query or the error message. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net> | |||||
| * | edb-sqlite: Fixed a typos and copyright notices | David Sommerseth | 2011-07-25 | 1 | -3/+4 | |
| | | | | | Signed-off-by: David Sommerseth <dazo@users.sourceforge.net> | |||||
| * | Fixed several memleaks in the eurephiadm related code paths | David Sommerseth | 2011-01-10 | 1 | -0/+1 | |
| | | | | | Signed-off-by: David Sommerseth <dazo@users.sourceforge.net> | |||||
| * | Add paths and libaries for SQLite3 which pkg-config returns | David Sommerseth | 2010-12-31 | 1 | -1/+3 | |
| | | | | | | | | | If SQLite3 was not installed in system paths, it would not be possible to compile the edb-sqlite driver due to include and library paths not being set. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net> | |||||
| * | eurephiadm users: Revoke all admin access privileges when deleting a user ↵ | David Sommerseth | 2010-12-14 | 1 | -6/+14 | |
| | | | | | | | | | | | account Matthew Gyurgyik noticed that when deleting a user account, the users granted access levels was still present. This resulted in a rather odd looking list when showing granted access levels. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net> | |||||
| * | Quick fix for typo 'Unkown' | Dario Minnucci | 2010-12-01 | 1 | -1/+1 | |
| | | | | | Signed-off-by: David Sommerseth <dazo@users.sourceforge.net> | |||||
| * | Quick fix for typo 'Quering' | Dario Minnucci | 2010-12-01 | 4 | -8/+8 | |
| | | | | | Signed-off-by: David Sommerseth <dazo@users.sourceforge.net> | |||||
| * | SQLite3 eurephiadm fix: sorting lastlog based on session status didn't work | David Sommerseth | 2010-11-12 | 2 | -2/+2 | |
| | | | | | | | | | | The eDBadminGetLastlog(...) function didn't parse the sortkeys string to match the database layout. In addition the field mapping for the openvpn_lastlog.sessionstatus field was wrong. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net> | |||||
| * | Updated wrong log entries | David Sommerseth | 2010-08-29 | 1 | -8/+8 | |
| | | | | | | | Removed old and obsolete expressions used to reference the eurephia database driver. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net> | |||||
| * | Fixed Doxygen complaints | David Sommerseth | 2010-08-26 | 4 | -32/+0 | |
| | | | | | | | Removed some #defines which was not needed and added missing comments. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net> | |||||
| * | Added install rules for man pages | David Sommerseth | 2010-07-30 | 1 | -0/+1 | |
| | | ||||||
| * | Moved all man pages from section 8 to the more proper section 7. | David Sommerseth | 2010-07-30 | 1 | -4/+4 | |
| | | ||||||
| * | Added man pages for eurephia-auth.so and edb-sqlite.so | David Sommerseth | 2010-07-30 | 1 | -0/+31 | |
| | | ||||||
| * | Updated Copyright dates to include 2010 | David Sommerseth | 2010-07-30 | 21 | -21/+21 | |
| | | ||||||
| * | Merge branch 'master' into next | David Sommerseth | 2009-11-13 | 1 | -8/+14 | |
| |\ | ||||||
| | * | Fixed wrong usage of lower(digest) in eDBregister_attempts() | David Sommerseth | 2009-11-13 | 1 | -8/+14 | |
| | | | | | | | | | | | | | | | This is a follow up of commit de7a3d88c78cdf400fcee78f71946da8b12ec74f.That commit introduced an SQL error when eDBregister_attempts() was attempting to update certificate digest attempt records. Overhauled and fixed the complete eDBregister_attempts() function. | |||||
| * | | Cleaned up the driver/interface API for database and firewall | David Sommerseth | 2009-11-12 | 1 | -40/+45 | |
| |/ | ||||||
| * | Certificate digests are always lower case. | David Sommerseth | 2009-11-12 | 8 | -25/+31 | |
| | | | | | | This makes sure that all interactions with the database will convert the digest strings to lower case. | |||||
| * | Add support for ft_STRING_LOWER in the sqlite3 driver | David Sommerseth | 2009-11-12 | 1 | -7/+17 | |
| | | | | | Also fixed some wrong tab/space issues | |||||
| * | Define certificate digests as ft_STRING_LOWER | David Sommerseth | 2009-11-12 | 2 | -63/+63 | |
| | | | | | This means this field will always be processed with lower case | |||||
| * | sqlite: Did not retrieve all certificate information correctly | David Sommerseth | 2009-11-03 | 1 | -10/+10 | |
| | | | | | | On user accounts with several certificates associated, it did only list up one certificate several times. | |||||
| * | Always process certificate depth as integer | David Sommerseth | 2009-10-13 | 2 | -4/+4 | |
| | | ||||||
| * | Restrict input data length for plug-in arguments from openvpn | David Sommerseth | 2009-10-04 | 1 | -2/+2 | |
| | | | | | This only affects functions related to MAC address and certificate depth | |||||
| * | Corrected some new Doxygen issues | David Sommerseth | 2009-09-28 | 2 | -3/+4 | |
| | | ||||||
| * | Reworked and unified admin authentication and registration functions to ↵ | David Sommerseth | 2009-09-28 | 3 | -114/+235 | |
| | | | | | | | | | eDBadminAuthenticate() eDBadminAuth(), eDBadminValidateSession(), eDBadminRegisterLogin() and eDBadminLogout() are now unfied into one admin function, eDBadminAuthenticate(). This function receives all input as eurephia XML documents. | |||||
| * | Moved the remainings of administration.c into administration/authentication.c | David Sommerseth | 2009-09-27 | 2 | -2/+2 | |
| | | ||||||
| * | Code clean up. Moved xmlReplaceChars() to eurephia_xml.c | David Sommerseth | 2009-09-27 | 6 | -31/+0 | |
| | | ||||||
| * | Moved user creation info from log level 0 to log level 1 | David Sommerseth | 2009-09-27 | 1 | -1/+1 | |
| | | | | | | This is to avoid the console programs to report to stderr if log file is not setup. Console applications use stderr in these situations. | |||||
| * | Fixed missing check in eDBadminValidateSession() against interface type | David Sommerseth | 2009-09-27 | 1 | -2/+3 | |
| | | ||||||
| * | Cosmetic cleanup | David Sommerseth | 2009-09-27 | 1 | -8/+4 | |
| | | ||||||
| * | Fixed a memory leak when updating user accounts in eDBadminUserAccount() | David Sommerseth | 2009-09-27 | 1 | -0/+1 | |
| | | ||||||
| * | Fixed memory leak when sqlite_query() fails | David Sommerseth | 2009-09-26 | 1 | -0/+1 | |
| | | ||||||
| * | Rewrote sqlite_get_num_tuples() and sqlite_get_affected_rows() as macros | David Sommerseth | 2009-09-26 | 2 | -26/+21 | |
| | | ||||||
| * | Fixed SEGV error when calling sqlite_dump_result() on dbresults from other ↵ | David Sommerseth | 2009-09-26 | 1 | -2/+3 | |
| | | | | | queries than SELECT | |||||
| * | Removed a memory leak | David Sommerseth | 2009-09-26 | 1 | -0/+1 | |
| | | ||||||
| * | Only add table alias in SQL 'WHERE' sections | David Sommerseth | 2009-09-26 | 1 | -1/+1 | |
| | | ||||||
| * | Renamed some variables to have a more meaningful name | David Sommerseth | 2009-09-25 | 1 | -5/+7 | |
| | | ||||||
| * | Added better error handling in eDBadminUserAccount() view mode (useracc_list()) | David Sommerseth | 2009-09-25 | 1 | -4/+7 | |
| | | ||||||
| * | eDBmkSortKeyString() will now return NULL if the result is empty | David Sommerseth | 2009-09-25 | 1 | -1/+1 | |
| | | ||||||
| * | Made the sortkeys work in eDBadminUserAccount() view mode | David Sommerseth | 2009-09-25 | 1 | -7/+8 | |
| | | ||||||
| * | Rewrote the eDBmkSortKeys() function to use the eDBfieldMap returned from ↵ | David Sommerseth | 2009-09-25 | 4 | -12/+15 | |
| | | | | | eDBxmlMapping() | |||||
| * | Moved the useful append_str() macro from sqlite.c to eurephia_nullsafe.h | David Sommerseth | 2009-09-25 | 1 | -11/+0 | |
| | | ||||||
| * | dded support for <sortkeys> tag in eDBadminUserAccount() | David Sommerseth | 2009-09-25 | 1 | -3/+6 | |
| | | ||||||
| * | Fixed some issues with the useracc_list() function | David Sommerseth | 2009-09-25 | 1 | -32/+28 | |
| | | ||||||
| * | Unified eDBadminUser*() functions into one eDBadminUserAccount() function | David Sommerseth | 2009-09-24 | 3 | -303/+236 | |
| | | | | | | | Rewritten the database API and the SQLite3 database driver. This code has yet not been tested. | |||||
| * | Fixed and cleaned up Doxygen comments | David Sommerseth | 2009-09-22 | 1 | -69/+13 | |
| | | ||||||
| * | Unified eDBadminGetCertificateInfo(), eDBadminAddCertificate() and ↵ | David Sommerseth | 2009-09-22 | 3 | -99/+126 | |
| | | | | | | | eDBadminDeleteCertificate() into eDBadminCertificate() Updated eurephiadm utility to make use of this new unified API | |||||
| * | Rewrote eurephiaXML_ResultMsg() to also support adding an xmlNode* with more ↵ | David Sommerseth | 2009-09-21 | 6 | -48/+52 | |
| | | | | | | | | | info The eurephia result XML document is also changed, and all parsing of the result must be rewritten. To simplify this parsing, a new function is introduced, eurephiaXML_ParseResultMsg(). | |||||
