From: Jo Sutton Date: Mon, 8 Jan 2024 02:04:17 +0000 (+1300) Subject: s4:dsdb: Remove trailing whitespace X-Git-Tag: tdb-1.4.11~1791 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b54546de66e7202a485f22bdf8ebd5052bd5836;p=thirdparty%2Fsamba.git s4:dsdb: Remove trailing whitespace Signed-off-by: Jo Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source4/dsdb/samdb/ldb_modules/password_hash.c b/source4/dsdb/samdb/ldb_modules/password_hash.c index 0a7a78cdf37..c8f9e47cda5 100644 --- a/source4/dsdb/samdb/ldb_modules/password_hash.c +++ b/source4/dsdb/samdb/ldb_modules/password_hash.c @@ -1,4 +1,4 @@ -/* +/* ldb database module Copyright (C) Simo Sorce 2004-2008 @@ -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 . */ @@ -685,7 +685,7 @@ static int password_hash_bypass(struct ldb_module *module, struct ldb_request *r return ldb_next_request(module, request); } -/* Get the NT hash, and fill it in as an entry in the password history, +/* Get the NT hash, and fill it in as an entry in the password history, and specify it into io->g.nt_hash */ static int setup_nt_fields(struct setup_password_fields_io *io) @@ -1317,14 +1317,14 @@ static int setup_primary_wdigest(struct setup_password_fields_io *io, .user = &sAMAccountName_l, .realm = &dns_domain_u, }, - /* + /* * userPrincipalName, no realm */ { .user = &userPrincipalName, }, { - /* + /* * NOTE: w2k3 messes this up, if the user has a real userPrincipalName, * the fallback to the sAMAccountName based userPrincipalName is correct */ @@ -1333,7 +1333,7 @@ static int setup_primary_wdigest(struct setup_password_fields_io *io, { .user = &userPrincipalName_u, }, - /* + /* * nt4dom\sAMAccountName, no realm */ { @@ -1416,7 +1416,7 @@ static int setup_primary_wdigest(struct setup_password_fields_io *io, io->ac->status->domain_data.dns_domain); if (!user_principal_name) { return ldb_oom(ldb); - } + } } userPrincipalName = data_blob_string_const(user_principal_name); userPrincipalName_l = data_blob_string_const(strlower_talloc(io->ac, user_principal_name)); @@ -3515,11 +3515,11 @@ static int msg_find_old_and_new_pwd_val(const struct ldb_message *msg, return LDB_SUCCESS; } -static int setup_io(struct ph_context *ac, +static int setup_io(struct ph_context *ac, const struct ldb_message *client_msg, const struct ldb_message *existing_msg, - struct setup_password_fields_io *io) -{ + struct setup_password_fields_io *io) +{ const struct ldb_val *quoted_utf16, *old_quoted_utf16, *lm_hash, *old_lm_hash; struct ldb_context *ldb = ldb_module_get_ctx(ac->module); struct loadparm_context *lp_ctx = talloc_get_type(