Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | sqlite - admin: Added fetching blacklist info for user account. | David Sommerseth | 2008-12-19 | 1 | -0/+24 | |
| | ||||||
* | sqlite - admin: Added fetching login attempt for user. Fixed a memory leak ↵ | David Sommerseth | 2008-12-19 | 1 | -4/+30 | |
| | | | | and removed XML dump for debug | |||||
* | Added extraction of lastlog info in eDBadminGetUserInfo(...) | David Sommerseth | 2008-12-19 | 1 | -43/+104 | |
| | ||||||
* | Fixed more memory leaks and missing memory initialisation. | David Sommerseth | 2008-12-19 | 1 | -2/+4 | |
| | ||||||
* | sqlite - BUGFIX: Fixed INSERT INTO statements when using ↵ | David Sommerseth | 2008-12-18 | 1 | -2/+8 | |
| | | | | sqlite_query_mapped(...) | |||||
* | Fixed segfault and wrong XML node extraction in eDBxmlMapping(...) | David Sommerseth | 2008-12-18 | 1 | -2/+2 | |
| | ||||||
* | sqlite: Fixed segfault int SQLreservedWord(...) | David Sommerseth | 2008-12-18 | 1 | -1/+1 | |
| | ||||||
* | Added SQLite3 admin functions for adding and deleting users | David Sommerseth | 2008-12-18 | 1 | -2/+90 | |
| | ||||||
* | Added pwhash attribute in fieldMapping XML for password fields. | David Sommerseth | 2008-12-18 | 1 | -5/+19 | |
| | | | | | | | This attribute can be "sha512" if the contents of the field is already hashed with SHA512. The other official value is "none", which will then tell eDBxmlMapping(...) to hash the value. Unknown values will be treated like 'none'. | |||||
* | Added more comments and some XML format documentation | David Sommerseth | 2008-12-18 | 1 | -4/+28 | |
| | ||||||
* | Removed all other eurephia admin structs which can be replaced by XML | David Sommerseth | 2008-12-18 | 2 | -12/+12 | |
| | ||||||
* | Removed everything which was connected to the eurephiaUSERINFO struct. | David Sommerseth | 2008-12-18 | 3 | -11/+10 | |
| | ||||||
* | Rewrote eDBadminUpdateUser(...) to use XML instead of eurephiaUSERINFO | David Sommerseth | 2008-12-18 | 2 | -15/+34 | |
| | ||||||
* | eDBxmlMapping(...) did not honor the setnull attribute correctly. | David Sommerseth | 2008-12-18 | 1 | -10/+17 | |
| | ||||||
* | Updated eAdminGetUserInfo(...) work after commit | David Sommerseth | 2008-12-17 | 1 | -2/+4 | |
| | | | | 31911812e53a8fda5ce8fa8e9d45254053a580c5 | |||||
* | Rewrote eDBxmlMapping(...) to take an XML node instead of a complete XML ↵ | David Sommerseth | 2008-12-17 | 2 | -17/+38 | |
| | | | | | | | | document as input. The node name of the input node must be <fieldMapping/>. In addition this node must have an attribute called "table" which must match the eDBfieldMap* structure given as input. | |||||
* | Changed eDBxmlMapping(...) function to make use of the new ↵ | David Sommerseth | 2008-12-17 | 1 | -1/+3 | |
| | | | | eurephiaXML_getRoot(...) function | |||||
* | Using the new eurephiaXML_* functions for creating and parsing XML | David Sommerseth | 2008-12-17 | 1 | -6/+2 | |
| | | | | | | | | | | | Also rebased the XML file to always have a document root which is <eurephia/>. This tag must contain a "format" attribute, which should be 1 for the moment. When parsing the XML, the eurephiaXML_getRoot(...) function will return a pointer to the requested XML node inside the <eurephia/> document root. The format version in the root element will also be checked automatically. | |||||
* | BUGFIX: Made the eDBmkSortKeyString(...) function work again | David Sommerseth | 2008-12-16 | 1 | -8/+10 | |
| | | | | | The function did not work after the change of the field mapping system changed when reworking things from eurephiaUSER{LIST,INFO} to XML | |||||
* | Rewrote eDBadminGetUserList(...) to use XML | David Sommerseth | 2008-12-16 | 2 | -27/+19 | |
| | ||||||
* | Removed not needed pointer - found by compiler warning | David Sommerseth | 2008-12-16 | 1 | -1/+1 | |
| | ||||||
* | Completed rewriting eDBadminGetUserInfo(...) function for XML | David Sommerseth | 2008-12-13 | 2 | -14/+19 | |
| | | | | | This rewrite utilities the XML interface instead of the more static eurephiaUSERINFO struct. | |||||
* | Completed rewriting eDBmkMapping_USERINFO(...) to eDBxmlMapping(...) | David Sommerseth | 2008-12-13 | 2 | -64/+109 | |
| | | | | | | | | | | | | | | | | | | | This new mapping function uses a flexible XML document as input, and will be generic to all other tables as well. XML structure is: <fieldMapping table="{table name}> <{fieldname}>{value}</{fieldname}> </fieldMapping> An example: <fieldMapping table="users"> <uid>1</uid> <username>testuser1</username> </fieldMapping> This function will return a eDBfieldMap structure contatining the proper fieldnames with values assigned, depending on the database map given when called. | |||||
* | Moved libxml2 check from edb-sqlite to the global CMakeLists.txt | David Sommerseth | 2008-12-13 | 1 | -5/+0 | |
| | ||||||
* | Began porting eDBadminGetUserInfo(...) over to XML | David Sommerseth | 2008-12-13 | 1 | -50/+65 | |
| | ||||||
* | Added sqlite functions for populating an XML document directly | David Sommerseth | 2008-12-13 | 2 | -0/+27 | |
| | ||||||
* | 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 | 4 | -53/+62 | |
| | | | | 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 | 2 | -36/+55 | |
| | ||||||
* | eurephiadb init: Only setup the requiered function pointers in driver | David Sommerseth | 2008-12-09 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | 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. | |||||
* | 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 | |||||
* | Added setnull_flag in the eurephiaUSERINFO struct | David Sommerseth | 2008-12-08 | 1 | -0/+5 | |
| | | | | | | | 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. | |||||
* | 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 | 2 | -2/+3 | |
| | ||||||
* | Update field mapping to include data type. Improved ↵ | David Sommerseth | 2008-12-08 | 5 | -72/+207 | |
| | | | | | | | | | | | | | | 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 | 2 | -3/+47 | |
| | ||||||
* | 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. | |||||
* | Merged eurephiadb_common.[ch] into eurephiadb_mapping.[ch] | David Sommerseth | 2008-12-07 | 4 | -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 == 0 | David Sommerseth | 2008-12-07 | 1 | -2/+6 | |
| | ||||||
* | Added missing copyright header, corrected another wrong file head | David Sommerseth | 2008-12-06 | 1 | -0/+20 | |
| |