1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r20239: Parse the configfile for pam_sm_setcred as well

(e.g. to get the debug flag)

Guenther
(This used to be commit 2c549f71f1)
This commit is contained in:
Günther Deschner 2006-12-18 15:29:05 +00:00 committed by Gerald (Jerry) Carter
parent 5bb49b08f3
commit 6fdbdfc86f

View File

@ -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);
}