diff options
author | Michael Adam <obnox@samba.org> | 2014-04-07 17:24:31 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2014-04-25 15:35:09 +0200 |
commit | a1adc881cf28643d1936b43c51e9a8839fc914d1 (patch) | |
tree | 15f05041d1b19f5bef18879ee65245a584146dff | |
parent | 57e49d90f245873883fb3ccc71191032b8d4768f (diff) | |
download | samba-a1adc881cf28643d1936b43c51e9a8839fc914d1.tar.gz samba-a1adc881cf28643d1936b43c51e9a8839fc914d1.tar.xz samba-a1adc881cf28643d1936b43c51e9a8839fc914d1.zip |
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 <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r-- | source3/winbindd/idmap_autorid.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/winbindd/idmap_autorid.c b/source3/winbindd/idmap_autorid.c index 869131f936..6a8865690c 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; |