From: Jo Sutton Date: Tue, 13 Feb 2024 00:40:48 +0000 (+1300) Subject: s3:passdb: Reformat array of strings X-Git-Tag: tdb-1.4.11~1712 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=676601340c5ff8895845b089289dcbb2e9f60d91;p=thirdparty%2Fsamba.git s3:passdb: Reformat array of strings Signed-off-by: Jo Sutton Reviewed-by: Andrew Bartlett --- 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) {