summaryrefslogtreecommitdiff
path: root/source3/nsswitch/pam_winbind.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-12-18 15:29:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:35 -0500
commit6fdbdfc86f49e1cd5ead670c1ff0243a598fcc6c (patch)
tree48cc9a42a630892631d103bf8bdf28d386a910a2 /source3/nsswitch/pam_winbind.c
parent5bb49b08f3d79ef9ee17dbbd64ce90dc438d96df (diff)
downloadsamba-6fdbdfc86f49e1cd5ead670c1ff0243a598fcc6c.tar.gz
samba-6fdbdfc86f49e1cd5ead670c1ff0243a598fcc6c.tar.bz2
samba-6fdbdfc86f49e1cd5ead670c1ff0243a598fcc6c.zip
r20239: Parse the configfile for pam_sm_setcred as well
(e.g. to get the debug flag) Guenther (This used to be commit 2c549f71f15b066ac1f415544848b582558abd5d)
Diffstat (limited to 'source3/nsswitch/pam_winbind.c')
-rw-r--r--source3/nsswitch/pam_winbind.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/nsswitch/pam_winbind.c b/source3/nsswitch/pam_winbind.c
index b92ff5a8a0..0fb52404d5 100644
--- a/source3/nsswitch/pam_winbind.c
+++ b/source3/nsswitch/pam_winbind.c
@@ -1054,14 +1054,20 @@ PAM_EXTERN
int pam_sm_setcred(pam_handle_t *pamh, int flags,
int argc, const char **argv)
{
+ dictionary *d = NULL;
+
/* parse arguments */
- int ctrl = _pam_parse(pamh, flags, argc, argv, NULL);
+ int ctrl = _pam_parse(pamh, flags, argc, argv, &d);
if (ctrl == -1) {
return PAM_SYSTEM_ERR;
}
_pam_log_debug(pamh, ctrl, LOG_DEBUG, "pam_winbind: pam_sm_setcred (flags: 0x%04x)", flags);
+ if (d) {
+ iniparser_freedict(d);
+ }
+
if (flags & PAM_DELETE_CRED) {
return pam_sm_close_session(pamh, flags, argc, argv);
}