r26538: Pass path generation function around rather than base directory.
[ira/wip.git] / source / scripting / python / samba / samdb.py
index 7061e22ce4350f57bc4dd5240771a220f8bd608e..84b604dbc46403a37a7d681b3aca7f0762583d13 100644 (file)
@@ -29,8 +29,8 @@ class SamDB(samba.Ldb):
                  modules_dir=None, lp=None):
         super(SamDB, self).__init__(session_info=session_info, credentials=credentials,
                                     modules_dir=modules_dir, lp=lp)
-        misc.dsdb_set_global_schema(self)
-        misc.ldb_register_samba_handlers(self)
+        assert misc.dsdb_set_global_schema(self) == 0
+        assert misc.ldb_register_samba_handlers(self) == 0
         if url:
             self.connect(url)