[Samba] Error when raising Samba 4.19 Functional Level

Michael Tokarev mjt at tls.msk.ru
Wed Jun 26 15:25:13 UTC 2024


26.06.2024 17:53, Denis CARDON via samba wrote:

> we have had this issue at another client earlier and Andréas here digged into this issue [1]. There is a compile time constant in LMDB lib that is too 
> low for large samba Domain.
> 
> I think you just have to upgrade LMDB. Looking at your python 3.6 I guess you are still on CentOS7, then you can get the patched lmdb here (reminder: 
> you should only need the lmdb package for that specific bug):
> 
> * http://samba.tranquil.it/centos7/samba-4.19.7/
> * http://samba.tranquil.it/centos7/samba-4.19.7-srcrpm/

FWIW, the only relevant change in here is this one:

diff -up a/libraries/liblmdb/midl.h b/libraries/liblmdb/midl.h
--- a/libraries/liblmdb/midl.h  2018-03-22 16:23:05.000000000 +0100
+++ b/libraries/liblmdb/midl.h  2024-03-21 11:46:54.616000000 +0100
@@ -56,7 +56,7 @@ typedef MDB_ID *MDB_IDL;
  /* IDL sizes - likely should be even bigger
   *   limiting factors: sizeof(ID), thread stack size
   */
-#define        MDB_IDL_LOGN    16      /* DB_SIZE is 2^16, UM_SIZE is 2^17 */
+#define        MDB_IDL_LOGN    18      /* DB_SIZE is 2^16, UM_SIZE is 2^17 */
  #define MDB_IDL_DB_SIZE                (1<<MDB_IDL_LOGN)
  #define MDB_IDL_UM_SIZE                (1<<(MDB_IDL_LOGN+1))

(yes, it is mentioned in that samba-technical email thread too)

> 
> [1] https://lists.samba.org/archive/samba-technical/2024-March/138835.html

Thanks,

/mjt




More information about the samba mailing list