From 676601340c5ff8895845b089289dcbb2e9f60d91 Mon Sep 17 00:00:00 2001 From: Jo Sutton Date: Tue, 13 Feb 2024 13:40:48 +1300 Subject: [PATCH] s3:passdb: Reformat array of strings Signed-off-by: Jo Sutton Reviewed-by: Andrew Bartlett --- source3/passdb/pdb_samba_dsdb.c | 36 ++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/source3/passdb/pdb_samba_dsdb.c b/source3/passdb/pdb_samba_dsdb.c index 8060bd9fb94..99471d47fb8 100644 --- a/source3/passdb/pdb_samba_dsdb.c +++ b/source3/passdb/pdb_samba_dsdb.c @@ -636,15 +636,33 @@ static NTSTATUS pdb_samba_dsdb_getsamupriv(struct pdb_samba_dsdb_state *state, TALLOC_CTX *mem_ctx, struct ldb_message **msg) { - static const char * attrs[] = { - "lastLogon", "lastLogoff", "pwdLastSet", "accountExpires", - "sAMAccountName", "displayName", "homeDirectory", - "homeDrive", "scriptPath", "profilePath", "description", - "userWorkstations", "comment", "userParameters", "objectSid", - "primaryGroupID", "userAccountControl", - "msDS-User-Account-Control-Computed", "logonHours", - "badPwdCount", "logonCount", "countryCode", "codePage", - "unicodePwd", "dBCSPwd", NULL }; + static const char *attrs[] = { + "lastLogon", + "lastLogoff", + "pwdLastSet", + "accountExpires", + "sAMAccountName", + "displayName", + "homeDirectory", + "homeDrive", + "scriptPath", + "profilePath", + "description", + "userWorkstations", + "comment", + "userParameters", + "objectSid", + "primaryGroupID", + "userAccountControl", + "msDS-User-Account-Control-Computed", + "logonHours", + "badPwdCount", + "logonCount", + "countryCode", + "codePage", + "unicodePwd", + "dBCSPwd", + NULL}; int rc = dsdb_search_one(state->ldb, mem_ctx, msg, ldb_get_default_basedn(state->ldb), LDB_SCOPE_SUBTREE, attrs, 0, "%s", filter); if (rc != LDB_SUCCESS) { -- 2.34.1