summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2011-07-07 00:29:58 +0400
committerAndrew Tridgell <tridge@samba.org>2011-07-11 14:32:44 +1000
commitbbd4e27745352cc1069d7070620fe21f46702743 (patch)
tree244f51fd6ce3da36fbb677f64244bb92dc0345ac /source4/scripting/python
parentab77df800eb5e4af83d3a9e1079c369e00903fac (diff)
downloadsamba-bbd4e27745352cc1069d7070620fe21f46702743.tar.gz
samba-bbd4e27745352cc1069d7070620fe21f46702743.tar.bz2
samba-bbd4e27745352cc1069d7070620fe21f46702743.zip
s4-python: Add functions to get linkid and systemflags of an attribute
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/samba/samdb.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/samdb.py b/source4/scripting/python/samba/samdb.py
index adb4eb08a5..ba0dd99cb7 100644
--- a/source4/scripting/python/samba/samdb.py
+++ b/source4/scripting/python/samba/samdb.py
@@ -509,6 +509,14 @@ accountExpires: %u
'''return the syntax OID for a LDAP attribute as a string'''
return dsdb._dsdb_get_syntax_oid_from_lDAPDisplayName(self, ldap_display_name)
+ def get_systemFlags_from_lDAPDisplayName(self, ldap_display_name):
+ '''return the systemFlags for a LDAP attribute as a integer'''
+ return dsdb._dsdb_get_systemFlags_from_lDAPDisplayName(self, ldap_display_name)
+
+ def get_linkId_from_lDAPDisplayName(self, ldap_display_name):
+ '''return the linkID for a LDAP attribute as a integer'''
+ return dsdb._dsdb_get_linkId_from_lDAPDisplayName(self, ldap_display_name)
+
def set_ntds_settings_dn(self, ntds_settings_dn):
"""Set the NTDS Settings DN, as would be returned on the dsServiceName
rootDSE attribute.