summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-10-19 22:27:54 +1100
committerAndrew Bartlett <abartlet@samba.org>2010-10-19 22:34:58 +1100
commit5650e8558eb703a5660cb3cef79bec89dc6ac5fc (patch)
treed3c342f145f4e582f6c6b371a687865512d36604
parent897583476c49d4c037c1d8579fd6841728b871ba (diff)
downloadsamba-5650e8558eb703a5660cb3cef79bec89dc6ac5fc.tar.gz
samba-5650e8558eb703a5660cb3cef79bec89dc6ac5fc.tar.bz2
samba-5650e8558eb703a5660cb3cef79bec89dc6ac5fc.zip
s4-dsdb Allow LDB_ERR_INVALID_DN_SYNTAX in dsdb_load_partition_usn
This will happen on an OpenLDAP backend, because @ records are invalid in LDAP. We don't have these sequence numbers in this case. Andrew Bartlett
-rw-r--r--source4/dsdb/common/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c
index 9e6ccbc911..f56cd07f3a 100644
--- a/source4/dsdb/common/util.c
+++ b/source4/dsdb/common/util.c
@@ -2828,7 +2828,7 @@ int dsdb_load_partition_usn(struct ldb_context *ldb, 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;