Bug 281672 (samba_4.19.8_1_broken_replication) - net/samba419 4.19.8_1 breaks replication
Summary: net/samba419 4.19.8_1 breaks replication
Status: Open
Alias: samba_4.19.8_1_broken_replication
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: FreeBSD Samba Team
URL:
Keywords:
Depends on: 282760
Blocks: DEFAULT_VERSIONS=samba=4.19
  Show dependency treegraph
 
Reported: 2024-09-23 19:52 UTC by Oljas Kuzembaev
Modified: 2024-11-14 15:42 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (samba)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!