diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-06-22 14:41:50 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-06-22 14:47:08 +1000 |
commit | 202f0a4b576d78928a403b68f3e057d3a425bddf (patch) | |
tree | c5c5a4a7f869ea1674adc8dee12ef502aad625a0 /source4/scripting/python | |
parent | 341884c835b9c5785794cba562c2a21939eb4bce (diff) | |
download | samba-202f0a4b576d78928a403b68f3e057d3a425bddf.tar.gz samba-202f0a4b576d78928a403b68f3e057d3a425bddf.tar.bz2 samba-202f0a4b576d78928a403b68f3e057d3a425bddf.zip |
pydsdb: added get_syntax_oid_from_lDAPDisplayName()
this gives you access to the syntax oid of an attribute
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/scripting/python')
-rw-r--r-- | source4/scripting/python/samba/samdb.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/samdb.py b/source4/scripting/python/samba/samdb.py index 53346e8670..72ee472764 100644 --- a/source4/scripting/python/samba/samdb.py +++ b/source4/scripting/python/samba/samdb.py @@ -476,9 +476,14 @@ accountExpires: %u def get_attid_from_lDAPDisplayName(self, ldap_display_name, is_schema_nc=False): + '''return the attribute ID for a LDAP attribute as an integer as found in DRSUAPI''' return dsdb._dsdb_get_attid_from_lDAPDisplayName(self, ldap_display_name, is_schema_nc) + def get_syntax_oid_from_lDAPDisplayName(self, ldap_display_name): + '''return the syntax OID for a LDAP attribute as a string''' + return dsdb._dsdb_get_syntax_oid_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. |