s4 python: make the function dsdb_get_oid_from_attid reachable from a samDB object
authorMatthieu Patou <mat@matws.net>
Sat, 10 Apr 2010 22:02:50 +0000 (02:02 +0400)
committerJelmer Vernooij <jelmer@samba.org>
Thu, 15 Apr 2010 16:45:41 +0000 (18:45 +0200)
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
source4/scripting/python/samba/__init__.py

index 682f40048bebe861a839ae752dc76090e44ac5e7..67aac869597e133f7220e89c21a446fca10925eb 100644 (file)
@@ -277,6 +277,9 @@ class Ldb(_Ldb):
     def set_schema_from_ldif(self, pf, df):
         _glue.dsdb_set_schema_from_ldif(self, pf, df)
 
+    def get_oid_from_attid(self, attid):
+        return dsdb.dsdb_get_oid_from_attid(self, attid)
+
     def set_schema_from_ldb(self, ldb):
         _glue.dsdb_set_schema_from_ldb(self, ldb)