summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-06-16 17:14:51 +0200
committerMichael Adam <obnox@samba.org>2010-08-14 02:10:43 +0200
commitd5c3cb5a8a55e325a84d5fc5f704af86588b2027 (patch)
tree5e06617132b49bdee5a12cc2faa721912de6ffe2
parent4b10036da81857449e95272381faa2167ee4f10b (diff)
downloadsamba-d5c3cb5a8a55e325a84d5fc5f704af86588b2027.tar.gz
samba-d5c3cb5a8a55e325a84d5fc5f704af86588b2027.tar.bz2
samba-d5c3cb5a8a55e325a84d5fc5f704af86588b2027.zip
s3:idmap_tdb2: use range from idmap_domain in idmap_tdb2_allocate_id
-rw-r--r--source3/winbindd/idmap_tdb2.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/winbindd/idmap_tdb2.c b/source3/winbindd/idmap_tdb2.c
index 6520e9951b..0c9488ae03 100644
--- a/source3/winbindd/idmap_tdb2.c
+++ b/source3/winbindd/idmap_tdb2.c
@@ -241,14 +241,11 @@ static NTSTATUS idmap_tdb2_allocate_id(struct idmap_domain *dom,
uint32_t high_hwm;
uint32_t hwm = 0;
NTSTATUS status;
- struct idmap_tdb2_context *ctx;
struct idmap_tdb2_allocate_id_context state;
status = idmap_tdb2_open_db();
NT_STATUS_NOT_OK_RETURN(status);
- ctx = talloc_get_type(dom->private_data, struct idmap_tdb2_context);
-
/* Get current high water mark */
switch (xid->type) {
@@ -267,7 +264,7 @@ static NTSTATUS idmap_tdb2_allocate_id(struct idmap_domain *dom,
return NT_STATUS_INVALID_PARAMETER;
}
- high_hwm = ctx->filter_high_id;
+ high_hwm = dom->high_id;
state.hwm = hwm;
state.high_hwm = high_hwm;