summaryrefslogtreecommitdiff
path: root/source4/torture/drs
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/drs')
-rw-r--r--source4/torture/drs/python/repl_schema.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/torture/drs/python/repl_schema.py b/source4/torture/drs/python/repl_schema.py
index 166a0eb77f..cbed6400d6 100644
--- a/source4/torture/drs/python/repl_schema.py
+++ b/source4/torture/drs/python/repl_schema.py
@@ -84,7 +84,11 @@ class DrsReplSchemaTestCase(drs_base.DrsBaseTestCase):
if not attrs is None:
rec.update(attrs)
# add it to the Schema
- ldb_ctx.add(rec)
+ try:
+ ldb_ctx.add(rec)
+ except LdbError, (enum, estr):
+ self.fail("Adding record failed with %d/%s" % (enum, estr))
+
self._ldap_schemaUpdateNow(ldb_ctx)
return (rec["lDAPDisplayName"], rec["dn"])