Revert "autorid: reserve 500 IDs at the top of the ALLOC range."
authorMichael Adam <obnox@samba.org>
Mon, 28 Apr 2014 16:05:30 +0000 (18:05 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 29 Apr 2014 11:55:52 +0000 (13:55 +0200)
This reverts commit a1adc881cf28643d1936b43c51e9a8839fc914d1.

Signed-off-by: Michael Adam <obnox@samba.org>
source3/winbindd/idmap_autorid.c

index 37612c2f535a7809ae57de10bd28d1d4011d781d..9e930b1748b90a2a9f5b8ce013ade4771746472a 100644 (file)
@@ -82,8 +82,6 @@
 #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;
 
@@ -772,8 +770,7 @@ static NTSTATUS idmap_autorid_initialize(struct idmap_domain *dom)
 
        /* fill the TDB common configuration */
 
-       commonconfig->max_id = config->rangesize - 1
-                            - IDMAP_AUTORID_ALLOC_RESERVED;
+       commonconfig->max_id = config->rangesize -1;
        commonconfig->hwmkey_uid = ALLOC_HWM_UID;
        commonconfig->hwmkey_gid = ALLOC_HWM_GID;
        commonconfig->rw_ops->get_new_id = idmap_autorid_allocate_id;