Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
# otherwise the LDB code will correct it on the way through
# (Note: we still want to preserve the DSDB DN prefix in the
# case of binary DNs)
- bad_dn = dsdb_dn.prefix + dsdb_dn.dn.get_linearized()
+ bad_dn = dsdb_dn.get_linearized()
self.err_dn_string_component_old(obj.dn, attrname, bad_dn,
dsdb_dn, res[0].dn)
continue
dnstr = self.dn.extended_str(mode=1)
return f"{self.prefix}{dnstr}"
+ def get_linearized(self) -> str:
+ """Return the DN as a string without any extended attributes."""
+ dnstr = self.dn.get_linearized()
+ return f"{self.prefix}{dnstr}"
+
class PlainDn(BaseDsdbDn):
"""This does very little, other than providing the sort order (via