From 5d5fc92c6942d0d2a03dfdf0c8fd17b575bae608 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Sat, 27 Mar 2010 21:46:27 -0500 Subject: s4:dsdb - Handle INVALID_DN_SYNTAX from OpenLDAP in dsdb_module_load_partition_usn(). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Matthias Dieter Wallnöfer --- source4/dsdb/samdb/ldb_modules/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/dsdb/samdb/ldb_modules') diff --git a/source4/dsdb/samdb/ldb_modules/util.c b/source4/dsdb/samdb/ldb_modules/util.c index 7ff5e16fef..e95777462b 100644 --- a/source4/dsdb/samdb/ldb_modules/util.c +++ b/source4/dsdb/samdb/ldb_modules/util.c @@ -675,7 +675,7 @@ int dsdb_module_load_partition_usn(struct ldb_module *module, struct ldb_dn *dn, ret = ldb_wait(req->handle, LDB_WAIT_ALL); } - if (ret == LDB_ERR_NO_SUCH_OBJECT) { + if (ret == LDB_ERR_NO_SUCH_OBJECT || ret == LDB_ERR_INVALID_DN_SYNTAX) { /* it hasn't been created yet, which means an implicit value of zero */ *uSN = 0; -- cgit