[Samba] samba_dlz: ldb: Unable to load modules

Heinz Hölzl heinz.hoelzl at gvcc.net
Wed Feb 12 10:59:16 UTC 2025


I have just seen:

on the servers where lmdb works there is /usr/local/samba/bind-
dns/dns/sam.ldb.d/CN=CONFIGURATION,DC=XXX,DC=NET.ldb-lock


on the servers where it does not work the ldb-lock file is missing. 

the only other difference I notice is that the working servers have xfs
as filesystem, the others have btrfs



    
    database "dlopen /usr/local/samba/lib/bind9/dlz_bind9_18.so -d5";

with a debuglevel 5 i got in syslog:


med[2389]: samba_dlz: ldb: ../../lib/ldb/ldb_mdb/ldb_mdb.c:419: MDB
corrupted for key [ DN=@BASEINFO]
Feb 12 11:30:26 probe28 named[2389]: samba_dlz:
Feb 12 11:30:26 probe28 named[2389]: samba_dlz: ldb: Failed to connect
to 'mdb:///usr/local/samba/bind-
dns/dns/sam.ldb.d/CN=CONFIGURATION,DC=HH,DC=NET.ldb' with backend
'mdb': Unable to load ltdb cache records for backend 'ldb_mdb backend'
Feb 12 11:30:26 probe28 named[2389]: samba_dlz: ldb: module samba_dsdb
initialization failed : Operations error
Feb 12 11:30:26 probe28 named[2389]: samba_dlz: ldb: Unable to load
modules for /usr/local/samba/bind-dns/dns/sam.ldb: Unable to load ltdb
cache records for backend 'ldb_mdb backend'
Feb 12 11:30:26 probe28 named[2389]: samba_dlz: Failed to connect to
Failed to connect to /usr/local/samba/bind-dns/dns/sam.ldb: Unable to
load ltdb cache records for backend 'ldb_mdb backend': Operations error
Feb 12 11:30:26 probe28 named[2389]: samba_dlz: FAILED dlz_create call
result=25 #refs=0
Feb 12 11:30:26 probe28 named[2389]: dlz_dlopen of 'AD DNS Zone' failed
Feb 12 11:30:26 probe28 named[2389]: SDLZ driver failed to load.
Feb 12 11:30:26 probe28 named[2389]: DLZ driver failed to load.
Feb 12 11:30:26 probe28 named[2389]: loading configuration: failure
Feb 12 11:30:26 probe28 named[2389]: exiting (due to fatal error)


regards,
heinz

> Hi,
> 
> I am trying to convert my DC to lmdb.
> and do the following:
> 
> samba-tool domain join gvcc.net DC --realm=XXX.NET --server=dc6 --
> dns-
> backend=BIND9_DLZ --backend-store=mdb --backend-store-size=8Gb -
> Uadministrator
> 
> 
> It worked on the first two servers dc5 and dc6.
> 
> Now I try it on dc4, but here I get the following errors in the
> syslog:
> 
> Feb 11 18:08:45 dc4 named[29841]: Loading 'AD DNS Zone' using driver
> dlopen
> Feb 11 18:08:45 dc4 named[29841]: samba_dlz: ldb: module samba_dsdb
> initialization failed : Operations error
> Feb 11 18:08:45 dc4 named[29841]: samba_dlz: ldb: Unable to load
> modules for /usr/local/samba/bind-dns/dns/sam.ldb: Unable to load
> ltdb
> cache records for backend 'ldb_mdb backend'
> Feb 11 18:08:45 dc4 named[29841]: samba_dlz: Failed to connect to
> Failed to connect to /usr/local/samba/bind-dns/dns/sam.ldb: Unable to
> load ltdb cache records for backend 'ldb_mdb backend': Operations
> error
> Feb 11 18:08:45 dc4 named[29841]: samba_dlz: FAILED dlz_create call
> result=25 #refs=0
> Feb 11 18:08:45 dc4 named[29841]: dlz_dlopen of 'AD DNS Zone' failed
> Feb 11 18:08:45 dc4 named[29841]: SDLZ driver failed to load.
> Feb 11 18:08:45 dc4 named[29841]: DLZ driver failed to load.
> Feb 11 18:08:45 dc4 named[29841]: loading configuration: failure
> Feb 11 18:08:45 dc4 named[29841]: exiting (due to fatal error)
> 
> all servers run on debian 12.9
> 
> 
> i have not found any difference between the servers, where else can i
> look?
> 
> 
> thanks
> 
> 
> regards,
> 
> heinz



More information about the samba mailing list