summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-07-11 14:27:21 +1000
committerAndrew Tridgell <tridge@samba.org>2011-07-11 14:32:45 +1000
commit02562a0ca988b5b1e0796a445aabc96dddb408d2 (patch)
treefaf8f3c0fe92ef3c161cefceceb46967cf391c7e /source4/scripting
parent082a9cc72815a3873b1cea2779dff6bc41a9773c (diff)
downloadsamba-02562a0ca988b5b1e0796a445aabc96dddb408d2.tar.gz
samba-02562a0ca988b5b1e0796a445aabc96dddb408d2.tar.bz2
samba-02562a0ca988b5b1e0796a445aabc96dddb408d2.zip
dsdb: added get_lDAPDisplayName_by_attid
this allows conversion from a DRS attribute ID to a LDAP display name Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com> Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/python/samba/samdb.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/samdb.py b/source4/scripting/python/samba/samdb.py
index ba0dd99cb7..f77ce1737d 100644
--- a/source4/scripting/python/samba/samdb.py
+++ b/source4/scripting/python/samba/samdb.py
@@ -517,6 +517,10 @@ accountExpires: %u
'''return the linkID for a LDAP attribute as a integer'''
return dsdb._dsdb_get_linkId_from_lDAPDisplayName(self, ldap_display_name)
+ def get_lDAPDisplayName_by_attid(self, attid):
+ '''return the lDAPDisplayName from an integer DRS attribute ID'''
+ return dsdb._dsdb_get_lDAPDisplayName_by_attid(self, attid)
+
def set_ntds_settings_dn(self, ntds_settings_dn):
"""Set the NTDS Settings DN, as would be returned on the dsServiceName
rootDSE attribute.