| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
correct
This skips looking up all the eDBadmin*() functions if the context is unprivileged
or the database interface is initialised by the OpenVPN plug-in
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
Removed old and obsolete expressions used to reference the eurephia database driver.
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
|
| |
|
|
|
|
|
|
|
|
| |
eDBadminAuthenticate()
eDBadminAuth(), eDBadminValidateSession(), eDBadminRegisterLogin() and
eDBadminLogout() are now unfied into one admin function, eDBadminAuthenticate().
This function receives all input as eurephia XML documents.
|
| |
|
|
|
|
|
|
| |
Rewritten the database API and the SQLite3 database driver.
This code has yet not been tested.
|
|
|
|
|
|
| |
eDBadminDeleteCertificate() into eDBadminCertificate()
Updated eurephiadm utility to make use of this new unified API
|
|
|
|
| |
eDBadminAccessLevel()
|
|
|
|
| |
eDBadminConfigDelete() into eDBadminConfiguration()
|
| |
|
| |
|
|
|
|
|
|
| |
into one function
Plus added better XML documentation for the new eDBadminUserCertsLink(...) function
|
|
|
|
| |
management
|
| |
|
|
|
|
|
| |
Will try a new approach to use the same entry point for all actions
connected to the firewall profiles configuration.
|
| |
|
| |
|
|
|
|
|
| |
Made sure we only include needed include files and checked that
the copyright headers are equal and correct
|
|
|
|
|
|
| |
This function will return an XML document with data extracted
from the eurephia_adminaccess table. Search criterias are
defined by the search XML doc given as input.
|
|
|
|
| |
Implemented eDBadminEditAdminAccess(...) function in db driver
|
| |
|
|
|
|
| |
account/certs links
|
|
|
|
| |
delete records in openvpn_usercerts
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is ment as a security enhancement. Do not setup the function
pointers to functions which is not needed for the requested minimum
driver API version. Calling any of these functions which is not
set up would then cause a SEGV.
In real life, this means that the eurephia-auth.so which only needs
API version 1 now will not setup any pointers to the API version 2,
which the eurephiadm utility needs.
In the future it should be a 4th argument to the eDBlink_init(...),
defining features to enable when loading the drivers. This should
be a bitwise mask. So that API version can change whenever the
driver includes more functions. But for now, this change is enough.
|
|
|
|
| |
name schema
|
| |
|
|
|
|
|
| |
Added one more status code, for active sessions. Auto-logout will now
also delete session variables
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
| |
Moved eurephiadb_session_struct.h to the common directory and
made sure that eurephiadb_session.h is only included where needed
|
| |
|
| |
|
|
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
|