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:
parent
5bb49b08f3
commit
6fdbdfc86f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user