diff options
Diffstat (limited to 'source3/nsswitch/pam_winbind.h')
-rw-r--r-- | source3/nsswitch/pam_winbind.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/source3/nsswitch/pam_winbind.h b/source3/nsswitch/pam_winbind.h index 1725a895e0..be17a6fe45 100644 --- a/source3/nsswitch/pam_winbind.h +++ b/source3/nsswitch/pam_winbind.h @@ -122,14 +122,14 @@ do { \ #include "winbind_client.h" -#define PAM_WB_REMARK_DIRECT(h,f,x)\ +#define PAM_WB_REMARK_DIRECT(c,x)\ {\ const char *error_string = NULL; \ error_string = _get_ntstatus_error_string(x);\ if (error_string != NULL) {\ - _make_remark(h, f, PAM_ERROR_MSG, error_string);\ + _make_remark(c, PAM_ERROR_MSG, error_string);\ } else {\ - _make_remark(h, f, PAM_ERROR_MSG, x);\ + _make_remark(c, PAM_ERROR_MSG, x);\ };\ }; @@ -145,37 +145,37 @@ do { \ return ret;\ }; -#define PAM_WB_REMARK_CHECK_RESPONSE(h,f,x,y)\ +#define PAM_WB_REMARK_CHECK_RESPONSE(c,x,y)\ {\ const char *ntstatus = x.data.auth.nt_status_string; \ const char *error_string = NULL; \ if (!strcasecmp(ntstatus,y)) {\ error_string = _get_ntstatus_error_string(y);\ if (error_string != NULL) {\ - _make_remark(h, f, PAM_ERROR_MSG, error_string);\ + _make_remark(c, PAM_ERROR_MSG, error_string);\ };\ if (x.data.auth.error_string[0] != '\0') {\ - _make_remark(h, f, PAM_ERROR_MSG, x.data.auth.error_string);\ + _make_remark(c, PAM_ERROR_MSG, x.data.auth.error_string);\ };\ - _make_remark(h, f, PAM_ERROR_MSG, y);\ + _make_remark(c, PAM_ERROR_MSG, y);\ };\ }; -#define PAM_WB_REMARK_CHECK_RESPONSE_RET(h,f,x,y)\ +#define PAM_WB_REMARK_CHECK_RESPONSE_RET(c,x,y)\ {\ const char *ntstatus = x.data.auth.nt_status_string; \ const char *error_string = NULL; \ if (!strcasecmp(ntstatus,y)) {\ error_string = _get_ntstatus_error_string(y);\ if (error_string != NULL) {\ - _make_remark(h, f, PAM_ERROR_MSG, error_string);\ + _make_remark(c, PAM_ERROR_MSG, error_string);\ return ret;\ };\ if (x.data.auth.error_string[0] != '\0') {\ - _make_remark(h, f, PAM_ERROR_MSG, x.data.auth.error_string);\ + _make_remark(c, PAM_ERROR_MSG, x.data.auth.error_string);\ return ret;\ };\ - _make_remark(h, f, PAM_ERROR_MSG, y);\ + _make_remark(c, PAM_ERROR_MSG, y);\ return ret;\ };\ }; @@ -202,7 +202,7 @@ do { \ #define PAM_WB_GRACE_LOGON(x) ((NETLOGON_CACHED_ACCOUNT|NETLOGON_GRACE_LOGON) == ( x & (NETLOGON_CACHED_ACCOUNT|NETLOGON_GRACE_LOGON))) struct pwb_context { - const pam_handle_t *pamh; + pam_handle_t *pamh; int flags; int argc; const char **argv; |