dsdb: Use samdb_get_system_container_dn() to get Password Settings Container
authorAndrew Bartlett <abartlet@samba.org>
Thu, 27 Jul 2023 04:44:10 +0000 (16:44 +1200)
committerJule Anger <janger@samba.org>
Tue, 1 Aug 2023 09:53:17 +0000 (09:53 +0000)
commit8e45b202caed2635a17b79d9df85d8e66169ed09
tree1453fd9c1dcc90aafc3e2b3466a718cb7e5ee386
parent820752e377719efe7e0ab14bcc74c16ee79cf918
dsdb: Use samdb_get_system_container_dn() to get Password Settings Container

By doing this we use the common samdb_get_system_container_dn() routine and we
avoid doing a linerize and parse step on the main DN, instead using the
already stored parse of the DN.  This is more hygenic.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=9959

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 3669caa97f76d3e893ac6a1ab88341057929ee6a)
source4/dsdb/samdb/ldb_modules/operational.c