]> git.ipfire.org Git - thirdparty/samba.git/commit
dsdb: Use samdb_system_container_dn() in pdb_samba_dsdb_*()
authorAndrew Bartlett <abartlet@samba.org>
Thu, 27 Jul 2023 05:18:45 +0000 (17:18 +1200)
committerJule Anger <janger@samba.org>
Tue, 1 Aug 2023 10:57:31 +0000 (10:57 +0000)
commit9313ebba32b650f31957a8ad6e2b36ac84fba0a3
tree1e134f4e7b10f61314c16d48af53442e3be537c4
parentdc74e3e94704ce4a28a0adb8102f71abb723fae1
dsdb: Use samdb_system_container_dn() in pdb_samba_dsdb_*()

This makes more calls to add children, but avoids the cn=system string in the
codebase which makes it easier to audit that this is always being built
correctly.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Jul 31 07:20:21 UTC 2023 on atb-devel-224

(cherry picked from commit 5571ce9619d856d3c9545099366f4e0259aee8ef)

RN: A second container with name CN=System would disable the operation
 of the Samba AD DC.  Samba now finds the CN=System container by exact
 DN and not a search.

Autobuild-User(v4-17-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-17-test): Tue Aug  1 10:57:31 UTC 2023 on sn-devel-184
source3/passdb/pdb_samba_dsdb.c