Avoid using SQLITE_OPEN_URI

Centos6 uses a very old version of SQLite without support for URI filenames.
PAM authenticator must use a file-based database.

Commit cherry-picked to 2.4.0 from 2.3.
This commit is contained in:
Esa Korhonen
2019-06-26 16:21:21 +03:00
parent 7c2d5fd6a4
commit 166d26ff13
4 changed files with 57 additions and 19 deletions

View File

@ -29,6 +29,9 @@ const string FIELD_AUTHSTR = "authentication_string";
const string FIELD_PROXY = "proxy_grant";
const int NUM_FIELDS = 6;
const char* SQLITE_OPEN_FAIL = "Failed to open SQLite3 handle for file '%s': '%s'";
const char* SQLITE_OPEN_OOM = "Failed to allocate memory for SQLite3 handle for file '%s'.";
/**
* Initialize PAM authenticator
*