From c199b35dd46b2de21d89ed93edb9a815035717fc Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Tue, 22 Nov 2011 16:51:04 +1100 Subject: s4-dsdb: Remove LDB_SEQ_HIGHEST_TIMESTAMP sequence number support This was a hack for LDAP backends to store a sequence number as a timestamp. It is still supported in standalone ldb tdb backend. Signed-off-by: Andrew Tridgell --- source4/dsdb/samdb/ldb_modules/simple_ldap_map.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'source4/dsdb/samdb/ldb_modules/simple_ldap_map.c') diff --git a/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c b/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c index 9ed3b414d6..9c7599acf5 100644 --- a/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c +++ b/source4/dsdb/samdb/ldb_modules/simple_ldap_map.c @@ -902,13 +902,10 @@ static int entryuuid_sequence_number(struct ldb_module *module, struct ldb_reque seqr->seq_num++; break; case LDB_SEQ_HIGHEST_TIMESTAMP: - { - seqr->seq_num = (seq_num >> 24); - break; - } + return ldb_module_error(module, LDB_ERR_OPERATIONS_ERROR, "LDB_SEQ_HIGHEST_TIMESTAMP not supported"); } + seqr->flags = 0; - seqr->flags |= LDB_SEQ_TIMESTAMP_SEQUENCE; seqr->flags |= LDB_SEQ_GLOBAL_SEQUENCE; /* send request done */ -- cgit