{
int i = 0;
const char *parm_opt = NULL;
- char *key = NULL;
if (!(ctrl & config_flag)) {
goto out;
}
/* let the pam opt take precedence over the pam_winbind.conf option */
-
- if (d != NULL) {
-
- if (!asprintf(&key, "global:%s", item)) {
- goto out;
- }
-
- parm_opt = iniparser_getstr(d, key);
- SAFE_FREE(key);
- }
-
for ( i=0; i<argc; i++ ) {
if ((strncmp(argv[i], item, strlen(item)) == 0)) {
}
if (d != NULL) {
+ char *key = NULL;
+
+ if (!asprintf(&key, "global:%s", item)) {
+ goto out;
+ }
+
+ parm_opt = iniparser_getstr(d, key);
+ SAFE_FREE(key);
+
_pam_log_debug(pamh, ctrl, LOG_INFO, "CONFIG file: %s '%s'\n", item, parm_opt);
}
out:
dictionary *d,
const char *item)
{
- int parm_opt = -1, i = 0;
- char *key = NULL;
+ int i, parm_opt = -1;
/* let the pam opt take precedence over the pam_winbind.conf option */
for (i = 0; i < argc; i++) {
}
if (d != NULL) {
+ char *key = NULL;
+
if (!asprintf(&key, "global:%s", item)) {
goto out;
}