mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
s3:auth: Remove trailing spaces in pampass.c
Reviewed-by: Noel Power <npower@samba.org>
This commit is contained in:
parent
09d731470e
commit
990a68fedb
@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
Unix SMB/CIFS implementation.
|
||||
PAM Password checking
|
||||
Copyright (C) Andrew Tridgell 1992-2001
|
||||
@ -37,7 +37,7 @@
|
||||
#ifdef WITH_PAM
|
||||
|
||||
/*******************************************************************
|
||||
* Handle PAM authentication
|
||||
* Handle PAM authentication
|
||||
* - Access, Authentication, Session, Password
|
||||
* Note: See PAM Documentation and refer to local system PAM implementation
|
||||
* which determines what actions/limitations/allowances become affected.
|
||||
@ -99,7 +99,7 @@ static bool smb_pam_error_handler(pam_handle_t *pamh, int pam_error, const char
|
||||
*********************************************************************/
|
||||
|
||||
static bool smb_pam_nt_status_error_handler(pam_handle_t *pamh, int pam_error,
|
||||
const char *msg, int dbglvl,
|
||||
const char *msg, int dbglvl,
|
||||
NTSTATUS *nt_status)
|
||||
{
|
||||
*nt_status = pam_to_nt_status(pam_error);
|
||||
@ -220,7 +220,7 @@ struct chat_struct {
|
||||
Create a linked list containing chat data.
|
||||
***************************************************************/
|
||||
|
||||
static struct chat_struct *make_pw_chat(const char *p)
|
||||
static struct chat_struct *make_pw_chat(const char *p)
|
||||
{
|
||||
char *prompt;
|
||||
char *reply;
|
||||
@ -294,7 +294,7 @@ static int smb_pam_passchange_conv(int num_msg,
|
||||
struct chat_struct *t;
|
||||
const struct loadparm_substitution *lp_sub =
|
||||
loadparm_s3_global_substitution();
|
||||
bool found;
|
||||
bool found;
|
||||
*resp = NULL;
|
||||
|
||||
DEBUG(10,("smb_pam_passchange_conv: starting conversation for %d messages\n", num_msg));
|
||||
@ -452,7 +452,7 @@ static struct pam_conv *smb_setup_pam_conv(smb_pam_conv_fn smb_pam_conv_fnptr, c
|
||||
return pconv;
|
||||
}
|
||||
|
||||
/*
|
||||
/*
|
||||
* PAM Closing out cleanup handler
|
||||
*/
|
||||
|
||||
@ -559,7 +559,7 @@ static NTSTATUS smb_pam_auth(pam_handle_t *pamh, const char *user)
|
||||
return nt_status;
|
||||
}
|
||||
|
||||
/*
|
||||
/*
|
||||
* PAM Account Handler
|
||||
*/
|
||||
static NTSTATUS smb_pam_account(pam_handle_t *pamh, const char * user)
|
||||
@ -612,7 +612,7 @@ static NTSTATUS smb_pam_setcred(pam_handle_t *pamh, const char * user)
|
||||
*/
|
||||
|
||||
DEBUG(4,("PAM: Account Management SetCredentials for User: %s\n", user));
|
||||
pam_error = pam_setcred(pamh, (PAM_ESTABLISH_CRED|PAM_SILENT));
|
||||
pam_error = pam_setcred(pamh, (PAM_ESTABLISH_CRED|PAM_SILENT));
|
||||
switch( pam_error ) {
|
||||
case PAM_CRED_UNAVAIL:
|
||||
DEBUG(0, ("smb_pam_setcred: PAM: Credentials not found for user:%s\n", user ));
|
||||
@ -710,7 +710,7 @@ static bool smb_pam_chauthtok(pam_handle_t *pamh, const char * user)
|
||||
default:
|
||||
DEBUG(0, ("PAM: UNKNOWN PAM ERROR (%d) for User: %s\n", pam_error, user));
|
||||
}
|
||||
|
||||
|
||||
if(!smb_pam_error_handler(pamh, pam_error, "Password Change Failed", 2)) {
|
||||
return False;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user