[Samba] dbcheck gets uncaught exception

Heiko Robert heiko.samba.info at ecm4u.de
Tue Jul 16 23:47:59 UTC 2024


> Now I was able to remove the orphaned nodes one by one but now still get 
> that uncaught exception without any hint. Is there a debug flag I can 
> set to unterstand what happens? In log.samba and syslog I don't see any 
> output.

The only additional output I get from running with debug

samba-tool dbcheck --cross-ncs --fix -d 10

is

ndr_pull_dom_sid: ndr_pull_error(Range Error): value out of range at 
../../librpc/ndr/ndr_sec_helper.c:329

following by

ERROR(ldb): uncaught exception - ldb_wait from (null) with LDB_WAIT_ALL: 
Operations error (1)
   File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 
186, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python3/dist-packages/samba/netcmd/dbcheck.py", line 
169, in run
     error_count = chk.check_database(DN=DN, scope=search_scope,
   File "/usr/lib/python3/dist-packages/samba/dbchecker.py", line 255, 
in check_database
     error_count += self.check_object(object.dn, requested_attrs=attrs)
   File "/usr/lib/python3/dist-packages/samba/dbchecker.py", line 2310, 
in check_object
     res = self.samdb.search(base=dn, scope=ldb.SCOPE_BASE,


when I try to get the sid via "net getdomainsid" I get a valid sid in 
return.

In line 169 of dbcheck.py I see

dn = self.samdb.get_wellknown_dn(ldb.Dn(self.samdb, nc.decode('utf8')),

Could someone help me please to understand the issue?




More information about the samba mailing list