From 6fdbdfc86f49e1cd5ead670c1ff0243a598fcc6c Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 18 Dec 2006 15:29:05 +0000 Subject: r20239: Parse the configfile for pam_sm_setcred as well (e.g. to get the debug flag) Guenther (This used to be commit 2c549f71f15b066ac1f415544848b582558abd5d) --- source3/nsswitch/pam_winbind.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); } -- cgit