/*
Authors:
Fabiano FidĂȘncio <fidencio@redhat.com>
Copyright (C) 2017 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <popt.h>
#include <stdio.h>
#include <ini_configobj.h>
{
const char *services;
const char *str;
return ENOMEM;
}
if (ret != 0) {
goto done;
}
if (ret != 0) {
goto done;
}
/* Using the same flags used by sss_ini_get_config(), which is used to
* load the config file ... */
if (ret != 0) {
goto done;
}
/* And also check the snippets ... */
NULL,
NULL);
goto done;
}
if (modified_ini_config != NULL) {
}
"ini_get_config_valueobj() failed [%d][%s]\n",
goto done;
}
/* In case there's no services' line at all, just return EOK. */
goto done;
}
"ini_get_string_config_value() failed [%d][%s]\n",
goto done;
}
goto done;
}
done:
return ret;
}
{
int ret;
int opt;
_("The name of the responder to be checked"), NULL},
};
switch (opt) {
default:
ret = 1;
goto done;
}
}
ret = 1;
goto done;
}
"Misconfiguration found for the %s responder.\n"
"The %s responder has been configured to be socket-activated "
"but it's still mentioned in the services' line in %s.\n"
"Please, consider either adjusting your services' line in %s "
"or disabling the %s's socket by calling:\n"
"\"systemctl disable sssd-%s.socket\"",
goto done;
}
done:
return ret;
}