summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-11-18 09:42:59 +0100
committerGünther Deschner <gd@samba.org>2008-11-18 16:05:20 +0100
commita079c500a6491aa2e2e9fed265096ebee7de1c8b (patch)
tree3394bb7b0ef5998ff7a458b56bb03d462819c50f
parent6aaf220f9e20815a32d166c1c5953e41152e1c99 (diff)
downloadsamba-a079c500a6491aa2e2e9fed265096ebee7de1c8b.tar.gz
samba-a079c500a6491aa2e2e9fed265096ebee7de1c8b.tar.bz2
samba-a079c500a6491aa2e2e9fed265096ebee7de1c8b.zip
s3-libnet-samsync: pass back sequence number from fetch_sam_entries_keytab.
Guenther
-rw-r--r--source3/libnet/libnet_samsync_keytab.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/source3/libnet/libnet_samsync_keytab.c b/source3/libnet/libnet_samsync_keytab.c
index 7eeae3a1a0..7bafad9b0b 100644
--- a/source3/libnet/libnet_samsync_keytab.c
+++ b/source3/libnet/libnet_samsync_keytab.c
@@ -151,7 +151,22 @@ static NTSTATUS fetch_sam_entries_keytab(TALLOC_CTX *mem_ctx,
for (i = 0; i < r->num_deltas; i++) {
- if (r->delta_enum[i].delta_type != NETR_DELTA_USER) {
+ switch (r->delta_enum[i].delta_type) {
+ case NETR_DELTA_USER:
+ break;
+ case NETR_DELTA_DOMAIN:
+ if (sequence_num) {
+ *sequence_num =
+ r->delta_enum[i].delta_union.domain->sequence_num;
+ }
+ continue;
+ case NETR_DELTA_MODIFY_COUNT:
+ if (sequence_num) {
+ *sequence_num =
+ *r->delta_enum[i].delta_union.modified_count;
+ }
+ continue;
+ default:
continue;
}