sssctl_config.c revision e088912418fd4db750f2097dfde8ef9b77303f05
/*
Authors:
Michal Židek <mzidek@redhat.com>
Copyright (C) 2016 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>
#include "tools/common/sss_tools.h"
#include "tools/common/sss_process.h"
#ifdef HAVE_LIBINI_CONFIG_V1_3
struct sss_tool_ctx *tool_ctx,
void *pvt)
{
struct sss_ini_initdata *init_data;
char *msg;
uint32_t i = 0;
if (!init_data) {
goto done;
}
/* Open config file */
"sss_ini_config_file_open failed: %s [%d]\n",
ret);
goto done;
}
/* Check the file permissions */
goto done;
}
goto done;
}
/* Read rules */
SSSDDATADIR"/cfg_rules.ini",
&strs, &num_errors);
if (ret) {
goto done;
}
/* Output from validators */
for (i = 0; i < num_errors; i++) {
}
/* Merging issues */
printf("\n");
printf(_("Messages generated during configuration merging: %zu\n"),
i = 0;
i++;
}
/* Used snippet files */
printf("\n");
printf(_("Used configuration snippet files: %u\n"),
ref_array_len(ra));
i = 0;
i++;
}
if (num_errors != 0 || num_ra_error != 0) {
} else {
}
done:
return ret;
}
#endif /* HAVE_LIBINI_CONFIG_V1_3 */