summaryrefslogtreecommitdiffstats
path: root/database
Commit message (Collapse)AuthorAgeFilesLines
...
* Merged eurephiadb_common.[ch] into eurephiadb_mapping.[ch]David Sommerseth2008-12-074-125/+76
| | | | | The functions in eurephiadb_common.[ch] was only adding functions which was connected to the unified field mapping interface
* Fixed eDBmkMapping_USERINFO(...) to let the uid_str be NULL if uid == 0David Sommerseth2008-12-071-2/+6
|
* Added missing copyright header, corrected another wrong file headDavid Sommerseth2008-12-061-0/+20
|
* Changed from user-side field name 'recid' to simply 'id'David Sommerseth2008-12-061-6/+7
|
* Added missing shared source for edb-sqlite.soDavid Sommerseth2008-12-061-0/+1
|
* Moved over from earlier commit to use unified db translationDavid Sommerseth2008-12-065-9/+53
| | | | | | | 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.
* Improved unified database field mappingDavid Sommerseth2008-12-062-0/+120
| | | | | | | | | | Added a new function for copying eurephiaUSERINFO struct over to a unified eDBfieldMap struct for building up SQL queries. This approach gives the possibility to only assign field names and table names in the database driver. This field mapping makes sure the identifiers from other modules will be translated into the proper field and table name.
* Improved and unified the db mapping functions and definitionsDavid Sommerseth2008-12-062-0/+191
|
* Added sorting in db driver in eDBadminGetUserList(...). Improved comments.David Sommerseth2008-12-062-6/+50
|
* Added admin function to give a list of usersDavid Sommerseth2008-12-062-1/+44
|
* Changed the sortkey type from int to const char *David Sommerseth2008-12-062-10/+14
|
* Changed admin functions to be prefixed with eDBadmin*, to unify the function ↵David Sommerseth2008-12-053-37/+37
| | | | name schema
* Moved administration functions (eDBadmin*) into adminstration.cDavid Sommerseth2008-12-033-364/+381
|
* Workaround to avoid getting existing eurephiadb template db block rebuildingDavid Sommerseth2008-12-031-1/+4
|
* Fixed wrong data type for the access variable in eDBadminAuth(...)David Sommerseth2008-12-031-2/+2
|
* BUGFIX: Logout works properly again and improved logout status changeDavid Sommerseth2008-12-031-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 Sommerseth2008-12-032-6/+6
| | | | user is about to logout
* Enhanced the access control by introducing access levelsDavid Sommerseth2008-12-023-33/+75
|
* Added database functions for editing the openvpn_config tableDavid Sommerseth2008-12-023-0/+52
|
* Fixed memory leak. Was missing a sqlite_free_results(...)David Sommerseth2008-11-301-0/+1
|
* Added eDBadminLogout(...) function in database driverDavid Sommerseth2008-11-303-3/+44
| | | | | 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 Sommerseth2008-11-301-1/+44
| | | | Auto-logout implemented as well
* Unified define flagsDavid Sommerseth2008-11-303-5/+5
|
* Completed the change of authentication model in database driverDavid Sommerseth2008-11-302-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 Sommerseth2008-11-301-0/+1
| | | | (*eDBstore_session_value)(...)
* Improved admin authentication modelDavid Sommerseth2008-11-302-1/+5
| | | | | | Remove the session creation logic from the database layer, as that should be located in the application instead. Database layer should do as strictly as possible database things.
* Merge branch 'master' into eurephiadmDavid Sommerseth2008-11-291-5/+8
|\
| * BUGFIX: Use hard coded default values when checking against openvpn_attempts ↵David Sommerseth2008-11-291-5/+8
| | | | | | | | if config parameters is not set
* | Login seems to work from database driver sideDavid Sommerseth2008-11-293-7/+256
| |
* | Corrected silly typoDavid Sommerseth2008-11-291-1/+1
| |
* | Added context_type into eurephiaCTX struct. Database queries limited due to ↵David Sommerseth2008-11-291-0/+4
| | | | | | | | context type.
* | Splitted plugin/eurephiadb_session.[ch] into two partsDavid Sommerseth2008-11-282-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 2David Sommerseth2008-11-282-3/+29
| |
* | Added some needed admin functionsDavid Sommerseth2008-11-282-1/+34
|/
* Added minimum API version check when loading database driver.David Sommerseth2008-11-282-2/+11
|
* BUGFIX: Added missing linking against cryptoDavid Sommerseth2008-11-281-1/+1
|
* Cleaned up eurephiadb_session dependenciesDavid Sommerseth2008-11-282-2/+0
| | | | | Moved eurephiadb_session_struct.h to the common directory and made sure that eurephiadb_session.h is only included where needed
* Renamed eurephia_struct.h to eurephia_context.hDavid Sommerseth2008-11-272-2/+2
| | | | | | | | | | | | | Since this include file now only consists of eurephiaCTX definition, it was moved to the common/ directory and renamed. Moved the SESSION_* definitions out of this file and into plugin/eurephiadb_session.h where they belong. Moved the Posix MQ definitions into plugin/firewall/eurephiafw_struct.h where they belong. eurephia_context.h is now containing only context related things.
* Code cleanup: Splitted all structures defined in eurephia_struct.h into ↵David Sommerseth2008-11-053-1/+38
| | | | separate include files
* Renamed eurephiadb-sqlite to edb-sqliteDavid Sommerseth2008-11-052-7/+7
|
* Code improvement - using already assigned (char *) pointer instead of ↵David Sommerseth2008-11-031-1/+1
| | | | calling sqlite_get_value(...) once again
* Added double check if ip address is NULL or notDavid Sommerseth2008-11-011-1/+4
|
* Fixed missing WHERE clause in SQL for extracting blacklisted IP addressesDavid Sommerseth2008-11-012-2/+2
|
* Fixed wrong registration of IP addresses in eDBget_blacklisted_ip(...)David Sommerseth2008-11-012-2/+2
|
* Added eDBget_blacklisted_ip(ctx) functions into db driversDavid Sommerseth2008-11-012-0/+44
|
* Code cleanup in eurephiadb.cDavid Sommerseth2008-11-011-18/+18
|
* Updated eurephiadb driver to implement eDBget_blacklisted_ip() functionDavid Sommerseth2008-11-012-1/+2
|
* Created install rules via cmakeDavid Sommerseth2008-10-211-1/+6
|
* Reorganised the source codeDavid Sommerseth2008-10-154-6/+252
| | | | | | | | Moved all OpenVPN plug-in related things into ./plugins, including firewall Moved all shared code into ./common and moved the generic part of the database files into ./database Updated all CMakeLists.txt files and created a new one for the root directory
* Merge branch 'master' into cmakev0.9_betaDavid Sommerseth2008-10-082-27/+5
|\