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.
This commit is contained in:
Esa Korhonen
2019-06-26 16:21:21 +03:00
parent 8a749dc627
commit b4289224de
4 changed files with 56 additions and 16 deletions

View File

@ -28,6 +28,9 @@ const string FIELD_ANYDB = "anydb";
const string FIELD_AUTHSTR = "authentication_string";
const int NUM_FIELDS = 5;
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
*