| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
This also improves debugging as well, if debug logging is enabled and log level is >= 40.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
This mode updates the firewall access profile for at user-certs link
|
|
|
|
|
|
| |
into one function
Plus added better XML documentation for the new eDBadminUserCertsLink(...) function
|
|
|
|
| |
queries
|
| |
|
| |
|
|
|
|
| |
management
|
| |
|
|
|
|
| |
Added functionality for resetting and deleting attempt records
|
| |
|
| |
|
|
|
|
|
|
| |
Also made the result XML from eDBadminAttemptsLog(...) more efficient
by not adding the username/certificate/ipaddress group tags if the
information is not present.
|
|
|
|
|
|
| |
This static library is later on linked in. This is to avoid recompiling
the same source files several times during a complete eurephia
compilation.
|
| |
|
|
|
|
| |
Follow up of commit ff744b48fdc0665b620339d51424892def8d8071
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This field will be used to determine what kind of filter logic to add
when building SQL queries. The filter type is set in the fieldMapping
field nodes as an attribute named 'filter'. Their values and the
corresponding SQL conditions are:
filter | SQL condition
-----------------------+---------------
equals | =
not-equals | != / NOT(...)
less-than | <
less-than-equals | <=
greater-than | >
greater-than-equals | >=
-----------------------+---------------
The default value for each field is set in the eurephiadb_mapping.h
|
| |
|
| |
|
|
|
|
| |
correct
|
| |
|
|
|
|
| |
Also added install rules to XSLT files
|
| |
|
|
|
|
|
| |
Will try a new approach to use the same entry point for all actions
connected to the firewall profiles configuration.
|
|
|
|
|
|
| |
Do proper conversion from char * to xmlChar *. Need to figure out a
better way how to return xmlChar * to char * when returning strings
which may contain UTF-8.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Due to the current implementation of SHA512 salts, it could be
experienced as if the application hung on wrong passwords. This is
because the rounds count for the passwords are scrambled, with values
based on the given password. When a wrong password is given, this will
also result in getting a wrong salt length and hash rounds for the
following hash calculation.
Due to this, the extracted rounds value from the salt string could
return some really high number of rounds on wrong
passwords (possibly the max value if integer). And this is why the
"hang" is experienced.
To avoid this, a check is added to make sure the rounds is not
unreasonably much higher than the configured max rounds values. If the
descrambled rounds number from the salt exceeds max rounds * 1.5, the
password (most probaly) is wrong. In this case we do a sleep() to slow
down bruteforce attacks and return NULL.
The drawback is if the maxrounds later on is changed to a value which
hits this scenario:
passwordsalt_rounds > maxrounds_cfg * 1.5
In this case these old passwords will be invalidated by that
configuration change. This is considered to be a feature and not a bug.
The reason for mulitiplying by 1.5, is to allow a little room for a
degrading the max rounds setting. By adjusting the max rounds up again,
these passwords will be valid again.
Added also a sleep() when wrong username is attempted.
|
|
|
|
|
|
|
|
| |
When calling eDBadminGetCertificateInfo(...) or
eDBadminDeleteCertificate(...) with a search XML document using
common_name or organisation and these fields contained spaces, no
certificates would be deleted. This is because space is replaced with
underscore in the database.
|
| |
|
|
|
|
|
| |
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
|
|
|
|
| |
Follow up from commit 062a3c92343a5fa371f8637f8bca88aacca14cc4
|
| |
|
|
|
|
|
| |
This makes it possible to compile it on some older versions
of the SQLite3 library
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is to prepare eurephia-auth plugin to use other and
more CPU intensive hashing algorithms for passwords. In addition,
open sessions will now not be rejected/closed due to wrong
password if the user changes the password with an open session
running.
The patch adds a new server_salt attribute in the eurephiaCTX
structure. This is used as a temporary salt and is created of
random data when OpenVPN is started.
When a user is being authenticated (eurephia.c/eurephia_userauth)
a authentication session (not the same as a 'normal' session) is
opened and checked for a cached password. If it does not exist
or match, normal password check will be done against the user
database. If a cached password is found and matches, it is
considered to be authenticated.
The cached password uses the SHA512 algorithm, together with the
eurephiaCTX->server_salt.
|
|
|
|
| |
hashing algorithms
|
| |
|
| |
|