xfree(conf->prop_filename);
}
conf->prop_filename = getFullpathName(conf->config_dir, value);
+ DEBUG("conf->prop_filename : %s\n", conf->prop_filename);
}
if (!strncmp(name, "ir.quote", 8)) {
if (!strncmp(value, "WITHOUT_QUOTE", 13)) {
if (!strncmp(name, "ima.validation.mode", 19)) {
if (!strncmp(value, "aide", 4)) {
conf->ima_validation_mode = OPENPTS_VALIDATION_MODE_AIDE;
+ DEBUG("conf->ima_validation_mode : OPENPTS_VALIDATION_MODE_AIDE\n");
} else if (!strncmp(value, "none", 4)) {
conf->ima_validation_mode = OPENPTS_VALIDATION_MODE_NONE;
+ DEBUG("conf->ima_validation_mode : OPENPTS_VALIDATION_MODE_NONE\n");
} else {
LOG(LOG_ERR, "unknown ima.validation.mode [%s]\n", value);
isFileIncorrect = 1;
/* SSH */
/* default values */
- conf->ssh_username = NULL; // use default values
- conf->ssh_port = NULL;
-
+ // conf->ssh_username = NULL; // use default values
+ // conf->ssh_port = NULL;
if (!strncmp(name, "ssh.username", 12)) {
conf->ssh_username = smalloc_assert(value);
DEBUG("conf->ssh_username : %s\n", conf->ssh_username);
target_conf_dir = getTargetConfDir(conf); // HOME/.openpts/UUID/
target_conf_filename = smalloc_assert(target_collector->target_conf_filename);
target_conf = (OPENPTS_CONFIG*)target_collector->target_conf;
+ /* lookup SSH setting */
+ if ((ssh_username == NULL) && (target_conf->ssh_username != NULL)) {
+ ssh_username = target_conf->ssh_username;
+ }
+ if ((ssh_port == NULL) && (target_conf->ssh_port != NULL)) {
+ ssh_port = target_conf->ssh_port;
+ }
+
}
}