1
0
mirror of https://github.com/samba-team/samba.git synced 2025-09-06 17:44:20 +03:00

py:samdb: add get_linearized to dsdb_dn

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
Douglas Bagnall
2025-07-30 16:40:15 +12:00
committed by Douglas Bagnall
parent 588a1566ef
commit 7c94f0c69c
2 changed files with 6 additions and 1 deletions

View File

@@ -1741,6 +1741,11 @@ class BaseDsdbDn:
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