Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Prepared for building with libxml2 | David Sommerseth | 2008-12-13 | 1 | -2/+11 | |
| | ||||||
* | Modified flags again | David Sommerseth | 2008-12-12 | 1 | -4/+17 | |
| | | | | | | Added RSETLASTUSED (last_accessed is set to NULL) and RSETLOGINCNT (lastlog table has been modified). NEVERUSED flag will only be set if last_accessed is NULL and login count == 0. | |||||
* | Fixed yet another strange SQLite3 parsing issue | David Sommerseth | 2008-12-11 | 1 | -1/+1 | |
| | ||||||
* | Added ACCFLAG_ERRATTEMPT for flagging if the attempt counter > 0 | David Sommerseth | 2008-12-11 | 1 | -1/+4 | |
| | ||||||
* | Corrected a lot of small errors, setting wrong flag and SQL mistakes | David Sommerseth | 2008-12-11 | 1 | -4/+9 | |
| | ||||||
* | Added logincount and setting user account flags | David Sommerseth | 2008-12-11 | 1 | -5/+17 | |
| | ||||||
* | Enhanced table/field mapping and eDBmkMapping_USERINFO(...) to include ↵ | David Sommerseth | 2008-12-11 | 2 | -7/+11 | |
| | | | | possibility for table aliases | |||||
* | Added functions for processing eurephiaACCESSINFO/eurephiaACCESSLIST | David Sommerseth | 2008-12-11 | 2 | -3/+20 | |
| | | | | | | | | | | 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. | |||||
* | Updated eDBadminGetUserInfo(...) to take filtering parameter | David Sommerseth | 2008-12-10 | 1 | -35/+48 | |
| | ||||||
* | eDBadminGetUserList(...): Added certificate info into the eurephiaUSERINFO ↵ | David Sommerseth | 2008-12-09 | 1 | -2/+31 | |
| | | | | struct | |||||
* | Fixed wrong assert criteria | David Sommerseth | 2008-12-08 | 1 | -1/+1 | |
| | ||||||
* | Do not encapsulate key-value pairs with () in UPDATE mode | David Sommerseth | 2008-12-08 | 1 | -3/+13 | |
| | | | | | And added support for setting fields to NULL if flagged via the field type value ft_SETNULL | |||||
* | Fixed a couple of memory leaks in eDBadminUpdateUser(...) | David Sommerseth | 2008-12-08 | 1 | -0/+4 | |
| | ||||||
* | edb-sqlite: Added update user function | David Sommerseth | 2008-12-08 | 1 | -3/+23 | |
| | ||||||
* | Added possibility to also set NULL values in UPDATE | David Sommerseth | 2008-12-08 | 1 | -1/+2 | |
| | ||||||
* | Update field mapping to include data type. Improved ↵ | David Sommerseth | 2008-12-08 | 3 | -30/+162 | |
| | | | | | | | | | | | | | | sqlite_query_mapped(...) function The new sqlite_query_mapped(...) function will now consider the field type when formatting the data values for SQLite. In addition reserved words on the DATETIME data type will be preserved without quote encapsulation. Improved the sqlite_query_mapped(...) to also handle UPDATE, INSERT and DELETE in addition to SELECT. The function now needs two eDBfieldMap mappings. The first one will contain update/insert values, while the last one defines search criteria. | |||||
* | edb-sqlite: Update openvpn_users.last_accessed = now() on successful login | David Sommerseth | 2008-12-08 | 1 | -0/+13 | |
| | ||||||
* | Added eDBadminGetUserInfo(...) function, to retrieve user info | David Sommerseth | 2008-12-07 | 1 | -2/+46 | |
| | ||||||
* | Extended sqlite.[ch] with sqlite_query_mapped(...) | David Sommerseth | 2008-12-07 | 2 | -1/+35 | |
| | | | | | | | This functions does almost the same as sqlite_query(...), it takes an SQL statement without the WHERE clause. The where clause is built up based on the fields sent in via the eDBfieldMap struct, containing the fields and values to look for. | |||||
* | Added missing copyright header, corrected another wrong file head | David Sommerseth | 2008-12-06 | 1 | -0/+20 | |
| | ||||||
* | Added missing shared source for edb-sqlite.so | David Sommerseth | 2008-12-06 | 1 | -0/+1 | |
| | ||||||
* | Moved over from earlier commit to use unified db translation | David Sommerseth | 2008-12-06 | 3 | -9/+11 | |
| | | | | | | | In other words, rewrote commit 6d4373e026b3f12c5685e45e35f9f060379ed0f3. Moved over all functions from that commit which could take advantage of the new API for unified table/field translation. | |||||
* | Added sorting in db driver in eDBadminGetUserList(...). Improved comments. | David Sommerseth | 2008-12-06 | 2 | -6/+50 | |
| | ||||||
* | Added admin function to give a list of users | David Sommerseth | 2008-12-06 | 2 | -1/+44 | |
| | ||||||
* | Changed the sortkey type from int to const char * | David Sommerseth | 2008-12-06 | 1 | -6/+10 | |
| | ||||||
* | Changed admin functions to be prefixed with eDBadmin*, to unify the function ↵ | David Sommerseth | 2008-12-05 | 1 | -11/+11 | |
| | | | | name schema | |||||
* | 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 | 1 | -7/+11 | |
| | | | | | | - 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 | |||||
* | Changed the logout behaviour to avoid login and/or access control check when ↵ | David Sommerseth | 2008-12-03 | 1 | -5/+5 | |
| | | | | user is about to logout | |||||
* | Enhanced the access control by introducing access levels | David Sommerseth | 2008-12-02 | 2 | -31/+73 | |
| | ||||||
* | Added database functions for editing the openvpn_config table | David Sommerseth | 2008-12-02 | 1 | -0/+46 | |
| | ||||||
* | Fixed memory leak. Was missing a sqlite_free_results(...) | David Sommerseth | 2008-11-30 | 1 | -0/+1 | |
| | ||||||
* | Added eDBadminLogout(...) function in database driver | David Sommerseth | 2008-11-30 | 1 | -3/+42 | |
| | | | | | Added one more status code, for active sessions. Auto-logout will now also delete session variables | |||||
* | eurephiadm can now use eDBadminValidateSession(...) to use open session. ↵ | David Sommerseth | 2008-11-30 | 1 | -1/+44 | |
| | | | | Auto-logout implemented as well | |||||
* | Unified define flags | David Sommerseth | 2008-11-30 | 1 | -1/+0 | |
| | ||||||
* | Completed the change of authentication model in database driver | David Sommerseth | 2008-11-30 | 2 | -85/+49 | |
| | | | | | | Follow up of commit 103acd7c2e1467401f0795930be9140dc5ed47ff. Seems to work fine via both plugin mode and eurephiadm, regarding core dumping too. | |||||
* | Fixed core dump issue with eDBstore_session_value(...) / ↵ | David Sommerseth | 2008-11-30 | 1 | -0/+1 | |
| | | | | (*eDBstore_session_value)(...) | |||||
* | Merge branch 'master' into eurephiadm | David Sommerseth | 2008-11-29 | 1 | -5/+8 | |
|\ | ||||||
| * | BUGFIX: Use hard coded default values when checking against openvpn_attempts ↵ | David Sommerseth | 2008-11-29 | 1 | -5/+8 | |
| | | | | | | | | if config parameters is not set | |||||
* | | Login seems to work from database driver side | David Sommerseth | 2008-11-29 | 2 | -5/+253 | |
| | | ||||||
* | | Added context_type into eurephiaCTX struct. Database queries limited due to ↵ | David Sommerseth | 2008-11-29 | 1 | -0/+4 | |
| | | | | | | | | context type. | |||||
* | | Splitted plugin/eurephiadb_session.[ch] into two parts | David Sommerseth | 2008-11-28 | 2 | -2/+2 | |
| | | | | | | | | | | | | | | | | | | One part is a generic session handling part (common/eurephiadb_session_common.[ch]) and the other part is left in the old plugin/eurephiadb_session.[ch]. This splitting should make it easiser to reuse some of the session handling functions for the admin utils. | |||||
* | | Rough preparation of the db drivers for API ver 2 | David Sommerseth | 2008-11-28 | 1 | -3/+14 | |
|/ | ||||||
* | BUGFIX: Added missing linking against crypto | David Sommerseth | 2008-11-28 | 1 | -1/+1 | |
| | ||||||
* | Code cleanup: Splitted all structures defined in eurephia_struct.h into ↵ | David Sommerseth | 2008-11-05 | 1 | -1/+1 | |
| | | | | separate include files | |||||
* | Renamed eurephiadb-sqlite to edb-sqlite | David Sommerseth | 2008-11-05 | 2 | -7/+7 | |
| | ||||||
* | Code improvement - using already assigned (char *) pointer instead of ↵ | David Sommerseth | 2008-11-03 | 1 | -1/+1 | |
| | | | | calling sqlite_get_value(...) once again | |||||
* | Added double check if ip address is NULL or not | David Sommerseth | 2008-11-01 | 1 | -1/+4 | |
| |