1
0
mirror of https://github.com/samba-team/samba.git synced 2025-09-07 21:44:22 +03:00

python:samdb: Add get_lDAPDisplayName_by_governsID_id() method

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

Signed-off-by: Jennifer Sutton <jennifersutton@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
Jennifer Sutton
2025-02-04 18:50:32 +13:00
committed by Jo Sutton
parent e40e7fc6bf
commit 3cc42b090e
2 changed files with 39 additions and 0 deletions

View File

@@ -1116,6 +1116,10 @@ accountExpires: %u
of a forward link attribute. If there is no backlink return None"""
return dsdb._dsdb_get_backlink_from_lDAPDisplayName(self, ldap_display_name)
def get_lDAPDisplayName_by_governsID_id(self, governs_idns_id):
"""return the lDAPDisplayName from an integer DRS governsID"""
return dsdb._dsdb_get_lDAPDisplayName_by_governsID_id(self, governs_idns_id)
def set_ntds_settings_dn(self, ntds_settings_dn):
"""Set the NTDS Settings DN, as would be returned on the dsServiceName
rootDSE attribute.