summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2010-03-27 21:46:27 -0500
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-04-08 22:59:10 +0200
commit5d5fc92c6942d0d2a03dfdf0c8fd17b575bae608 (patch)
tree6d4dd99654b38022d449b796c18f83935c77c3a3
parent7f65f77b4dfb5ee124992a34db4a92be4d728fb0 (diff)
downloadsamba-5d5fc92c6942d0d2a03dfdf0c8fd17b575bae608.tar.gz
samba-5d5fc92c6942d0d2a03dfdf0c8fd17b575bae608.tar.bz2
samba-5d5fc92c6942d0d2a03dfdf0c8fd17b575bae608.zip
s4:dsdb - Handle INVALID_DN_SYNTAX from OpenLDAP in dsdb_module_load_partition_usn().
Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
-rw-r--r--source4/dsdb/samdb/ldb_modules/util.c2
1 files changed, 1 insertions, 1 deletions
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;