summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2012-04-23 17:23:35 -0400
committerSimo Sorce <idra@samba.org>2012-04-24 02:56:10 +0200
commitadbace20a24b6ae4fbd6d17b7153833f4ac8c88d (patch)
treeb67b532800d88fac02a72a493e056198d8d10d99 /nsswitch
parent360c11eaaafb0b74d2cc2e733eea922553407b16 (diff)
downloadsamba-adbace20a24b6ae4fbd6d17b7153833f4ac8c88d.tar.gz
samba-adbace20a24b6ae4fbd6d17b7153833f4ac8c88d.tar.bz2
samba-adbace20a24b6ae4fbd6d17b7153833f4ac8c88d.zip
Fix pam_winbind build against newer iniparser library
iniparser_getstr is deprecated and has been removed in newer libraries available in Fedora. Use iniparse_getstring instead. Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Tue Apr 24 02:56:10 CEST 2012 on sn-devel-104
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/pam_winbind.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c
index 831fa84462..e3e9af19a3 100644
--- a/nsswitch/pam_winbind.c
+++ b/nsswitch/pam_winbind.c
@@ -437,13 +437,13 @@ static int _pam_parse(const pam_handle_t *pamh,
ctrl |= WINBIND_SILENT;
}
- if (iniparser_getstr(d, discard_const_p(char, "global:krb5_ccache_type")) != NULL) {
+ if (iniparser_getstring(d, discard_const_p(char, "global:krb5_ccache_type"), NULL) != NULL) {
ctrl |= WINBIND_KRB5_CCACHE_TYPE;
}
- if ((iniparser_getstr(d, discard_const_p(char, "global:require-membership-of"))
+ if ((iniparser_getstring(d, discard_const_p(char, "global:require-membership-of"), NULL)
!= NULL) ||
- (iniparser_getstr(d, discard_const_p(char, "global:require_membership_of"))
+ (iniparser_getstring(d, discard_const_p(char, "global:require_membership_of"), NULL)
!= NULL)) {
ctrl |= WINBIND_REQUIRED_MEMBERSHIP;
}
@@ -2278,7 +2278,7 @@ static const char *get_conf_item_string(struct pwb_context *ctx,
goto out;
}
- parm_opt = iniparser_getstr(ctx->dict, key);
+ parm_opt = iniparser_getstring(ctx->dict, key, NULL);
TALLOC_FREE(key);
_pam_log_debug(ctx, LOG_INFO, "CONFIG file: %s '%s'\n",