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:
committed by
Douglas Bagnall
parent
588a1566ef
commit
7c94f0c69c
@@ -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
|
||||
|
Reference in New Issue
Block a user