Moving attr-sql config in strongswan.conf to libhydra.
This commit is contained in:
@@ -62,7 +62,7 @@ plugin_t *attr_sql_plugin_create()
|
||||
char *uri;
|
||||
private_attr_sql_plugin_t *this;
|
||||
|
||||
uri = lib->settings->get_str(lib->settings, "libstrongswan.plugins.attr-sql.database", NULL);
|
||||
uri = lib->settings->get_str(lib->settings, "libhydra.plugins.attr-sql.database", NULL);
|
||||
if (!uri)
|
||||
{
|
||||
DBG1("attr-sql plugin: database URI not set");
|
||||
|
||||
@@ -1381,10 +1381,10 @@ int main(int argc, char *argv[])
|
||||
exit(SS_RC_INITIALIZATION_FAILED);
|
||||
}
|
||||
|
||||
uri = lib->settings->get_str(lib->settings, "libstrongswan.plugins.attr-sql.database", NULL);
|
||||
uri = lib->settings->get_str(lib->settings, "libhydra.plugins.attr-sql.database", NULL);
|
||||
if (!uri)
|
||||
{
|
||||
fprintf(stderr, "database URI libstrongswan.plugins.attr-sql.database not set.\n");
|
||||
fprintf(stderr, "database URI libhydra.plugins.attr-sql.database not set.\n");
|
||||
exit(SS_RC_INITIALIZATION_FAILED);
|
||||
}
|
||||
db = lib->db->create(lib->db, uri);
|
||||
|
||||
@@ -366,7 +366,7 @@ sql_attribute_t *sql_attribute_create(database_t *db)
|
||||
|
||||
this->db = db;
|
||||
this->history = lib->settings->get_bool(lib->settings,
|
||||
"libstrongswan.plugins.attr-sql.lease_history", TRUE);
|
||||
"libhydra.plugins.attr-sql.lease_history", TRUE);
|
||||
|
||||
/* close any "online" leases in the case we crashed */
|
||||
if (this->history)
|
||||
|
||||
Reference in New Issue
Block a user