]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
auth3: Fix whitespace
authorVolker Lendecke <vl@samba.org>
Thu, 21 May 2026 05:31:34 +0000 (07:31 +0200)
committerMartin Schwenke <martins@samba.org>
Thu, 11 Jun 2026 12:16:31 +0000 (12:16 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
source3/auth/auth_builtin.c
source3/auth/auth_ntlmssp.c
source3/auth/auth_sam.c
source3/auth/auth_samba4.c
source3/auth/auth_unix.c
source3/auth/auth_winbind.c
source3/auth/pass_check.c
source3/auth/token_util.c

index 646fbea272fc4196a4fde91da5b84067fa7a1145..a3cbafd132a079f5ae182464d567de97f1d32e08 100644 (file)
@@ -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)
index 9d5d87646c9008abf4151286176c9e3fdcb0d5c6..e45532b1f2a84f43235fac2ea0d4939743bb6787 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
    Unix SMB/Netbios implementation.
    Version 3.0
    handle NLTMSSP, server side
    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 <http://www.gnu.org/licenses/>.
 */
@@ -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.
  */
index a2ce1013975014c8abbc518e18e86825b780c17d..9bf4a3b12139c1699321dd940796a20a01fccca1 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
    Unix SMB/CIFS implementation.
    Password and authentication handling
    Copyright (C) Andrew Tridgell              1992-2000
index bae34e521c4f93885bb9c4b31a7fe1ecce71ae24..5663d75c95614864636b7be540e3e64d001d688b 100644 (file)
@@ -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);
index eaf344d61e0adf9a4e37dc87baf9bcd6d780d574..0d431edd65d28718d62f420ff1725671d293cd23 100644 (file)
@@ -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,
index b8a7dcb05a7d8d79caa0100d55f3af49b6794917..8b89cecd91af6b958f7a1da8b9421f52481d385a 100644 (file)
@@ -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",
index 3b74c8ffdd8fdb9d74945cc0a7b2703b3ace7e39..811df2b5fafbbc6fd61e5bb427baaec7988a27f1 100644 (file)
@@ -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.
         */
 
index 4dd8036616be65cf68e28bb0225352389be2883d..562d55822d524304116f19748578f1db9b31c9c7 100644 (file)
@@ -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