mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
Try to get this finally working. (Note to self: *always* check build farm...)
:-) Andrew Bartlett
This commit is contained in:
@ -103,7 +103,7 @@ int nt_status_to_pam(NTSTATUS nt_status)
|
||||
/*****************************************************************************
|
||||
convert a PAM error to a NT status32 code
|
||||
*****************************************************************************/
|
||||
NTSTATUS pam_to_ntstatus(int pam_error)
|
||||
NTSTATUS pam_to_nt_status(int pam_error)
|
||||
{
|
||||
if (pam_error == 0) return NT_STATUS_OK;
|
||||
return NT_STATUS_UNSUCCESSFUL;
|
||||
@ -112,7 +112,7 @@ NTSTATUS pam_to_ntstatus(int pam_error)
|
||||
/*****************************************************************************
|
||||
convert an NT status32 code to a PAM error
|
||||
*****************************************************************************/
|
||||
int ntstatus_to_pam(NTSTATUS nt_status)
|
||||
int nt_status_to_pam(NTSTATUS nt_status)
|
||||
{
|
||||
if (NT_STATUS_EQUAL(nt_status, NT_STATUS_OK)) return 0;
|
||||
return 4; /* PAM_SYSTEM_ERR */
|
||||
|
Reference in New Issue
Block a user