From a1adc881cf28643d1936b43c51e9a8839fc914d1 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 7 Apr 2014 17:24:31 +0200 Subject: [PATCH] autorid: reserve 500 IDs at the top of the ALLOC range. The wellknowns are now allocated into this sub-range. Signed-off-by: Michael Adam Reviewed-by: Stefan Metzmacher --- source3/winbindd/idmap_autorid.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source3/winbindd/idmap_autorid.c b/source3/winbindd/idmap_autorid.c index 869131f9362..6a8865690c2 100644 --- a/source3/winbindd/idmap_autorid.c +++ b/source3/winbindd/idmap_autorid.c @@ -82,6 +82,8 @@ #undef DBGC_CLASS #define DBGC_CLASS DBGC_IDMAP +#define IDMAP_AUTORID_ALLOC_RESERVED 500 + /* handle to the tdb storing domain <-> range assignments */ static struct db_context *autorid_db; @@ -680,7 +682,8 @@ static NTSTATUS idmap_autorid_initialize(struct idmap_domain *dom) /* fill the TDB common configuration */ - commonconfig->max_id = config->rangesize -1; + commonconfig->max_id = config->rangesize - 1 + - IDMAP_AUTORID_ALLOC_RESERVED; commonconfig->hwmkey_uid = ALLOC_HWM_UID; commonconfig->hwmkey_gid = ALLOC_HWM_GID; commonconfig->rw_ops->get_new_id = idmap_autorid_allocate_id; -- 2.11.4.GIT