diff options
Diffstat (limited to 'patches/smbpasswd-syslog.patch')
-rw-r--r-- | patches/smbpasswd-syslog.patch | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/patches/smbpasswd-syslog.patch b/patches/smbpasswd-syslog.patch index 1bd6c21c9b..6c5f73cc0d 100644 --- a/patches/smbpasswd-syslog.patch +++ b/patches/smbpasswd-syslog.patch @@ -313,13 +313,13 @@ Index: samba-3.0.28a/source/pam_smbpass/pam_smb_auth.c if ( retval != PAM_SUCCESS ) { if (on( SMB_DEBUG, ctrl )) { - _log_err(LOG_DEBUG, "auth: could not identify user"); -+ _log_err(pamh, LOG_DEBUG, "auth: could not identify user"); ++ _log_err(pamh, LOG_DEBUG, "auth: could not identify user"); } AUTH_RETURN; } if (on( SMB_DEBUG, ctrl )) { - _log_err( LOG_DEBUG, "username [%s] obtained", name ); -+ _log_err(pamh, LOG_DEBUG, "username [%s] obtained", name ); ++ _log_err(pamh, LOG_DEBUG, "username [%s] obtained", name ); } if (geteuid() != 0) { @@ -328,7 +328,7 @@ Index: samba-3.0.28a/source/pam_smbpass/pam_smb_auth.c if (!initialize_password_db(True)) { - _log_err( LOG_ALERT, "Cannot access samba password database" ); -+ _log_err(pamh, LOG_ALERT, "Cannot access samba password database" ); ++ _log_err(pamh, LOG_ALERT, "Cannot access samba password database" ); retval = PAM_AUTHINFO_UNAVAIL; AUTH_RETURN; } @@ -336,7 +336,7 @@ Index: samba-3.0.28a/source/pam_smbpass/pam_smb_auth.c sampass = samu_new( NULL ); if (!sampass) { - _log_err( LOG_ALERT, "Cannot talloc a samu struct" ); -+ _log_err(pamh, LOG_ALERT, "Cannot talloc a samu struct" ); ++ _log_err(pamh, LOG_ALERT, "Cannot talloc a samu struct" ); retval = nt_status_to_pam(NT_STATUS_NO_MEMORY); AUTH_RETURN; } @@ -381,7 +381,7 @@ Index: samba-3.0.28a/source/pam_smbpass/pam_smb_acct.c in_client = True; - ctrl = set_ctrl( flags, argc, argv ); -+ ctrl = set_ctrl(pamh, flags, argc, argv); ++ ctrl = set_ctrl(pamh, flags, argc, argv ); /* get the username */ @@ -389,13 +389,13 @@ Index: samba-3.0.28a/source/pam_smbpass/pam_smb_acct.c if (retval != PAM_SUCCESS) { if (on( SMB_DEBUG, ctrl )) { - _log_err( LOG_DEBUG, "acct: could not identify user" ); -+ _log_err(pamh, LOG_DEBUG, "acct: could not identify user" ); ++ _log_err(pamh, LOG_DEBUG, "acct: could not identify user" ); } return retval; } if (on( SMB_DEBUG, ctrl )) { - _log_err( LOG_DEBUG, "acct: username [%s] obtained", name ); -+ _log_err(pamh, LOG_DEBUG, "acct: username [%s] obtained", name ); ++ _log_err(pamh, LOG_DEBUG, "acct: username [%s] obtained", name ); } if (geteuid() != 0) { @@ -404,7 +404,7 @@ Index: samba-3.0.28a/source/pam_smbpass/pam_smb_acct.c oldsig_handler = CatchSignal(SIGPIPE, SIGNAL_CAST SIG_IGN); if (!initialize_password_db(True)) { - _log_err( LOG_ALERT, "Cannot access samba password database" ); -+ _log_err(pamh, LOG_ALERT, "Cannot access samba password database" ); ++ _log_err(pamh, LOG_ALERT, "Cannot access samba password database" ); CatchSignal(SIGPIPE, SIGNAL_CAST oldsig_handler); return PAM_AUTHINFO_UNAVAIL; } |