From: Volker Lendecke Date: Thu, 21 May 2026 05:31:34 +0000 (+0200) Subject: auth3: Fix whitespace X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b30fd63db325986b62ef2d93409c0b1b0bfee29f;p=thirdparty%2Fsamba.git auth3: Fix whitespace Signed-off-by: Volker Lendecke Reviewed-by: Martin Schwenke --- diff --git a/source3/auth/auth_builtin.c b/source3/auth/auth_builtin.c index 646fbea272f..a3cbafd132a 100644 --- a/source3/auth/auth_builtin.c +++ b/source3/auth/auth_builtin.c @@ -1,4 +1,4 @@ -/* +/* Unix SMB/CIFS implementation. Generic authentication types Copyright (C) Andrew Bartlett 2001-2002 @@ -106,7 +106,7 @@ static NTSTATUS auth_init_anonymous( } #ifdef DEVELOPER -/** +/** * Return an error based on username * * This function allows the testing of obscure errors, as well as the generation @@ -120,7 +120,7 @@ static NTSTATUS auth_init_anonymous( **/ static NTSTATUS check_name_to_ntstatus_security(const struct auth_context *auth_context, - void *my_private_data, + void *my_private_data, TALLOC_CTX *mem_ctx, const struct auth_usersupplied_info *user_info, struct auth_serversupplied_info **server_info) diff --git a/source3/auth/auth_ntlmssp.c b/source3/auth/auth_ntlmssp.c index 9d5d87646c9..e45532b1f2a 100644 --- a/source3/auth/auth_ntlmssp.c +++ b/source3/auth/auth_ntlmssp.c @@ -1,4 +1,4 @@ -/* +/* Unix SMB/Netbios implementation. Version 3.0 handle NLTMSSP, server side @@ -11,12 +11,12 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program. If not, see . */ @@ -90,7 +90,7 @@ NTSTATUS auth3_generate_session_info(struct auth4_context *auth_context, } /** - * Return the challenge as determined by the authentication subsystem + * Return the challenge as determined by the authentication subsystem * @return an 8 byte random challenge */ @@ -104,7 +104,7 @@ NTSTATUS auth3_get_challenge(struct auth4_context *auth4_context, } /** - * NTLM2 authentication modifies the effective challenge, + * NTLM2 authentication modifies the effective challenge, * @param challenge The new challenge value */ NTSTATUS auth3_set_challenge(struct auth4_context *auth4_context, const uint8_t *chal, @@ -129,7 +129,7 @@ NTSTATUS auth3_set_challenge(struct auth4_context *auth4_context, const uint8_t } /** - * Check the password on an NTLMSSP login. + * Check the password on an NTLMSSP login. * * Return the session keys used on the connection. */ diff --git a/source3/auth/auth_sam.c b/source3/auth/auth_sam.c index a2ce1013975..9bf4a3b1213 100644 --- a/source3/auth/auth_sam.c +++ b/source3/auth/auth_sam.c @@ -1,4 +1,4 @@ -/* +/* Unix SMB/CIFS implementation. Password and authentication handling Copyright (C) Andrew Tridgell 1992-2000 diff --git a/source3/auth/auth_samba4.c b/source3/auth/auth_samba4.c index bae34e521c4..5663d75c956 100644 --- a/source3/auth/auth_samba4.c +++ b/source3/auth/auth_samba4.c @@ -96,7 +96,7 @@ static struct server_id *new_server_id_task(TALLOC_CTX *mem_ctx) * behaviour. */ -/* +/* * This hook is currently used by winbindd only, as all other NTLM * logins go via the hooks provided by make_auth4_context_s4() below. * @@ -129,7 +129,7 @@ static NTSTATUS check_samba4_security( TALLOC_FREE(frame); goto done; } - + nt_status = auth_context_set_challenge(auth4_context, auth_context->challenge.data, "auth_samba4"); if (!NT_STATUS_IS_OK(nt_status)) { TALLOC_FREE(auth4_context); diff --git a/source3/auth/auth_unix.c b/source3/auth/auth_unix.c index eaf344d61e0..0d431edd65d 100644 --- a/source3/auth/auth_unix.c +++ b/source3/auth/auth_unix.c @@ -1,4 +1,4 @@ -/* +/* Unix SMB/CIFS implementation. Password and authentication handling Copyright (C) Andrew Bartlett 2001 @@ -32,7 +32,7 @@ **/ static NTSTATUS check_unix_security(const struct auth_context *auth_context, - void *my_private_data, + void *my_private_data, TALLOC_CTX *mem_ctx, const struct auth_usersupplied_info *user_info, struct auth_serversupplied_info **server_info) @@ -56,7 +56,7 @@ static NTSTATUS check_unix_security(const struct auth_context *auth_context, become_root(); pass = Get_Pwnam_alloc(talloc_tos(), user_info->mapped.account_name); - /** @todo This call assumes a ASCII password, no charset transformation is + /** @todo This call assumes a ASCII password, no charset transformation is done. We may need to revisit this **/ nt_status = pass_check(pass, pass ? pass->pw_name : user_info->mapped.account_name, diff --git a/source3/auth/auth_winbind.c b/source3/auth/auth_winbind.c index b8a7dcb05a7..8b89cecd91a 100644 --- a/source3/auth/auth_winbind.c +++ b/source3/auth/auth_winbind.c @@ -1,4 +1,4 @@ -/* +/* Unix SMB/CIFS implementation. Winbind authentication mechanism @@ -31,7 +31,7 @@ /* Authenticate a user with a challenge/response */ static NTSTATUS check_winbind_security(const struct auth_context *auth_context, - void *my_private_data, + void *my_private_data, TALLOC_CTX *mem_ctx, const struct auth_usersupplied_info *user_info, struct auth_serversupplied_info **server_info) @@ -51,10 +51,10 @@ static NTSTATUS check_winbind_security(const struct auth_context *auth_context, DEBUG(10, ("Check auth for: [%s]\n", user_info->mapped.account_name)); if (!auth_context) { - DEBUG(3,("Password for user %s cannot be checked because we have no auth_info to get the challenge from.\n", + DEBUG(3,("Password for user %s cannot be checked because we have no auth_info to get the challenge from.\n", user_info->mapped.account_name)); return NT_STATUS_INVALID_PARAMETER; - } + } if (strequal(user_info->mapped.domain_name, get_global_sam_name())) { DEBUG(3,("check_winbind_security: Not using winbind, requested domain [%s] was for this SAM.\n", diff --git a/source3/auth/pass_check.c b/source3/auth/pass_check.c index 3b74c8ffdd8..811df2b5faf 100644 --- a/source3/auth/pass_check.c +++ b/source3/auth/pass_check.c @@ -125,7 +125,7 @@ static NTSTATUS password_check(const char *user, const char *password, const voi /**************************************************************************** CHECK if a username/password is OK the function pointer fn() points to a function to call when a successful -match is found and is used to update the encrypted password file +match is found and is used to update the encrypted password file return NT_STATUS_OK on correct match, appropriate error otherwise ****************************************************************************/ @@ -149,10 +149,10 @@ NTSTATUS pass_check(const struct passwd *pass, if ((!*password) && !lp_null_passwords()) return NT_STATUS_LOGON_FAILURE; -#if defined(WITH_PAM) +#if defined(WITH_PAM) /* - * If we're using PAM we want to short-circuit all the + * If we're using PAM we want to short-circuit all the * checks below and dive straight into the PAM code. */ diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c index 4dd8036616b..562d55822d5 100644 --- a/source3/auth/token_util.c +++ b/source3/auth/token_util.c @@ -307,7 +307,7 @@ NTSTATUS get_user_sid_info3_and_extra(const struct netr_SamInfo3 *info3, return NT_STATUS_OK; } -static struct security_token *init_local_nt_token(TALLOC_CTX *mem_ctx) +static struct security_token *init_local_nt_token(TALLOC_CTX *mem_ctx) { /* * We do not have a method to populate the claims into this