summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGregor Beck <gbeck@sernet.de>2011-04-08 14:53:25 +0200
committerMichael Adam <obnox@samba.org>2011-04-08 16:44:57 +0200
commit6db4fc15df8eaba8ad23ef9c528fa2df1759f8c0 (patch)
tree6cf1ace537cd16d6d77a81f1e8b7deed951b790f /source3
parenteb0e276f3a3b57405cd8cd36c74021350aba9a98 (diff)
downloadsamba-6db4fc15df8eaba8ad23ef9c528fa2df1759f8c0.tar.gz
samba-6db4fc15df8eaba8ad23ef9c528fa2df1759f8c0.tar.bz2
samba-6db4fc15df8eaba8ad23ef9c528fa2df1759f8c0.zip
s3-net: "idmap check" ignore __db_sequence_number__
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_idmap_check.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/utils/net_idmap_check.c b/source3/utils/net_idmap_check.c
index 556a058edb..7140f4c2a9 100644
--- a/source3/utils/net_idmap_check.c
+++ b/source3/utils/net_idmap_check.c
@@ -52,7 +52,7 @@ static bool is_empty(TDB_DATA data) {
enum DT {
DT_INV = 0,
DT_SID, DT_UID, DT_GID,
- DT_HWM, DT_VER
+ DT_HWM, DT_VER, DT_SEQ,
};
struct record {
@@ -621,6 +621,12 @@ parse_record(TALLOC_CTX* mem_ctx, TDB_DATA key, TDB_DATA val)
ret->id = IVAL(val.dptr,0);
ret->val_type = DT_VER;
}
+ } else if (strcmp((const char*)key.dptr, "__db_sequence_number__") == 0) {
+ ret->key_type = DT_SEQ;
+ if (val.dsize == 8) {
+ ret->id = *(uint64_t*)val.dptr;
+ ret->val_type = DT_SEQ;
+ }
}
return ret;