s3:passdb: Reformat array of strings
authorJo Sutton <josutton@catalyst.net.nz>
Tue, 13 Feb 2024 00:40:48 +0000 (13:40 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 16 Feb 2024 02:41:36 +0000 (02:41 +0000)
Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/passdb/pdb_samba_dsdb.c

index 8060bd9fb94b718d76106f32d74075e78610ee30..99471d47fb8d730a23fb4d36ea68cdf67da77777 100644 (file)
@@ -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) {