Bug 281672 (samba_4.19.8_1_broken_replication)

Summary: net/samba419 4.19.8_1 breaks replication
Product: Ports & Packages Reporter: Oljas Kuzembaev <oljas>
Component: Individual Port(s)Assignee: FreeBSD Samba Team <samba>
Status: Open ---    
Severity: Affects Some People CC: 0mp, crest, snasonov
Priority: --- Flags: bugzilla: maintainer-feedback? (samba)
Version: Latest   
Hardware: amd64   
OS: Any   
Bug Depends on: 282760    
Bug Blocks: 280769    

Description Oljas Kuzembaev 2024-09-23 19:52:38 UTC
command:
samba-tool drs replicate DC2 DC1 dc=samdom,dc=example,dc=com

returns:
ERROR(ldb): uncaught exception - 00002020: Operation unavailable without authentication
  File "/usr/local/lib/python3.11/site-packages/samba/netcmd/__init__.py", line 279, in _run
    return self.run(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/samba/netcmd/drs.py", line 535, in run
    msg = self.samdb.search(base=self.samdb.get_config_basedn(),
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expected Results:
Replicate from DC1 to DC2 was successful.

It works fine on 4.19.7 and 4.16
Comment 1 Oljas Kuzembaev 2024-10-23 09:57:53 UTC
4.19.9 the problem still persists
Comment 2 Sergey Nasonov 2024-10-23 10:19:15 UTC
DC replication with samba 4.19.7 and 4.19.8 on FreeBSD working fine when samba builded with internal LDB and TDB tools.

To build samba with internal LDB and TDB I am added: 
SAMBA4_BUNDLED_TDB=yes
SAMBA4_BUNDLED_LDB=yes
to /etc/make.conf and rebuild net/samba419
Maybe there is rationale to make LDB and TDB bundled with samba by default?
Comment 3 Oljas Kuzembaev 2024-10-23 19:06:22 UTC
(In reply to Sergey Nasonov from comment #2)
That worked!
Thanks!