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:04 +0000 (10:57 +0000)
commited62f4fabafcbe54db7d48e3782a2e952cb13e81
tree0d156b54ec6966d714e17fbe7194ef48c4dfbdd5
parentda03582f30a629bf46dcb2fc5a9e7ecccb9e7a1e
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-18-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-18-test): Tue Aug  1 10:57:04 UTC 2023 on atb-devel-224
source3/passdb/pdb_samba_dsdb.c