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)
committerStefan Metzmacher <metze@samba.org>
Mon, 31 Jul 2023 06:18:33 +0000 (06:18 +0000)
commit3669caa97f76d3e893ac6a1ab88341057929ee6a
tree3f3533841376199a1bfc45c8eeb03af066d41de7
parent97b682e0eb0450513dcecb74be672e18e84fe7a2
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>
source4/dsdb/samdb/ldb_modules/operational.c