git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8975834
)
s4-dsdb Allow LDB_ERR_INVALID_DN_SYNTAX in dsdb_load_partition_usn
author
Andrew Bartlett
<abartlet@samba.org>
Tue, 19 Oct 2010 11:27:54 +0000
(22:27 +1100)
committer
Andrew Bartlett
<abartlet@samba.org>
Tue, 19 Oct 2010 11:34:58 +0000
(22:34 +1100)
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
source4/dsdb/common/util.c
patch
|
blob
|
history
diff --git
a/source4/dsdb/common/util.c
b/source4/dsdb/common/util.c
index 9e6ccbc9114a2e8e88451e635a3568ffd898a591..f56cd07f3a34c1ac6dfab6b8e226d63a90306897 100644
(file)
--- 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;