| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
| |
|
|
|
|
| |
possibility for table aliases
|
|
|
|
|
|
|
|
| |
The added account_flags are flags used to quickly identify the
account status.
Made also suret that all flags are not set when a new eurephiaUSERINFO
struct is initialised
|
|
|
|
|
|
|
| |
For those environments where you just want to build
the eurephiadm and/or database drivers. ./configure
must now be called with -p or --plug-in to build the
OpenVPN plug-in
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Avoided duplicated code lines. Changed -n parameter to -u
for the --username option
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
| |
struct
|
|
|
|
|
|
| |
New functions to simplify using these structs in the code. Extended
eurephiaUSERINFO to also have a eurephiaCERTLIST pointer, which can be
used to store all associated certificates to this user.
|
| |
|
| |
|
|
|
|
|
| |
And added support for setting fields to NULL if flagged via
the field type value ft_SETNULL
|
|
|
|
|
|
|
| |
This can make it possible to get a value getting set to NULL if
this flag contains the FIELD_* value of the field being set to NULL.
If more fields wants to be reset, these field values can be bitwise
ORed together into the setnull_flag.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
The functions in eurephiadb_common.[ch] was only adding functions
which was connected to the unified field mapping interface
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Sending the argument incrementer as reference instead of as value. This
way eurephia_getopt(...) can directly increase the incrementer on arguments with
extra options.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
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 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.
|
| |
|
|
|
|
|
| |
Reorganised the command a little bit, to make it more generic for user
management
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Changed it from free_nullsafe() to free(), since we already check if
session is null before we reach this free line. valgrind did not
complain afterwards.
|