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
4.19.9 the problem still persists
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?
(In reply to Sergey Nasonov from comment #2) That worked! Thanks!
Hi, my rough patch for pkg-plist.ad_dc on #284473 were also effective at least on my environment, with - samba419-4.19.9_5 (from ports) - ldb28-2.8.2 (from pkg) - tdb-1.4.9,1 (from pkg) I hope this helps you. Regards,
Hello Will take your pkg-plist.ad_dc on #284473 update net/samba419, hope this will fix this issue
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=ff0a14ef5fdf6c4d39fcfaa04e5b3c7f8b8fed6d commit ff0a14ef5fdf6c4d39fcfaa04e5b3c7f8b8fed6d Author: shellingfield@icloud.com <shellingfield@icloud.com> AuthorDate: 2025-02-04 11:07:33 +0000 Commit: Xavier Beaudouin <kiwi@FreeBSD.org> CommitDate: 2025-02-04 12:01:18 +0000 net/samba419: Fix plist for ad_dc replication PR: 281672 Reported by: Oljas Kuzembaev <oljas@oml.su> Approved by: 0mp (mentor) Approved by: samba (0mp, kiwi) Differential Revision: https://reviews.freebsd.org/D48827 net/samba419/pkg-plist.ad_dc | 3 +++ 1 file changed, 3 insertions(+)
Changes has been commited. Please tell us if it fix everything in your side ! Kind regards
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=616b16524e935a0f19db0c767000d48a5e3fa994 commit 616b16524e935a0f19db0c767000d48a5e3fa994 Author: shellingfield@icloud.com <shellingfield@icloud.com> AuthorDate: 2025-02-04 11:22:24 +0000 Commit: Xavier Beaudouin <kiwi@FreeBSD.org> CommitDate: 2025-02-04 13:16:03 +0000 net/samba420: net/samba419: Fix plist for ad_dc replication PR: 284473 PR: 281672 Reported by: Oljas Kuzembaev <oljas@oml.su> Approved by: 0mp (mentor) Approved by: samba (0mp, kiwi) Differential Revision: https://reviews.freebsd.org/D48828 net/samba420/pkg-plist.ad_dc | 3 +++ 1 file changed, 3 insertions(+)
Confirm. Path pkg-plist.ad_dc is resolved replication issue on samba 4.19.9. Thanks!
If the problem is gone, let's close this PR. Thanks everyone!