1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

More winbind for HPUX updates from Don Mccall. I think JRA has already

applied these to 2.2.

Andrew Bartlett
This commit is contained in:
Andrew Bartlett 0001-01-01 00:00:00 +00:00
parent 020d6fa2f7
commit 51fe3324dd
2 changed files with 28 additions and 5 deletions

View File

@ -482,6 +482,27 @@ int pam_sm_acct_mgmt(pam_handle_t *pamh, int flags,
/* should not be reached */
return PAM_IGNORE;
}
PAM_EXTERN
int pam_sm_open_session(pam_handle_t *pamh, int flags,
int argc, const char **argv)
{
/* parse arguments */
int ctrl = _pam_parse(argc, argv);
if (ctrl & WINBIND_DEBUG_ARG)
_pam_log(LOG_DEBUG,"libpam_winbind:pam_sm_open_session handler");
return PAM_SUCCESS;
}
PAM_EXTERN
int pam_sm_close_session(pam_handle_t *pamh, int flags,
int argc, const char **argv)
{
/* parse arguments */
int ctrl = _pam_parse(argc, argv);
if (ctrl & WINBIND_DEBUG_ARG)
_pam_log(LOG_DEBUG,"libpam_winbind:pam_sm_close_session handler");
return PAM_SUCCESS;
}
PAM_EXTERN int pam_sm_chauthtok(pam_handle_t * pamh, int flags,
@ -650,8 +671,8 @@ struct pam_module _pam_winbind_modstruct = {
pam_sm_authenticate,
pam_sm_setcred,
pam_sm_acct_mgmt,
NULL,
NULL,
pam_sm_open_session,
pam_sm_close_session,
pam_sm_chauthtok
};

View File

@ -10,12 +10,14 @@
#include <sys/param.h>
#include <string.h>
#include <pwd.h>
#include <syslog.h>
#include <sys/syslog.h>
#include "includes.h"
#include <syslog.h>
#if !defined(HPUX)
#include <sys/syslog.h>
#endif /*hpux*/
#include "winbind_nss_config.h"
#ifdef HAVE_NSS_COMMON_H
#if defined(HAVE_NSS_COMMON_H) || defined(HPUX)
#undef NSS_DEBUG