Bug 282760 - net/samba419: Fix unbundled databases/ldb28
Summary: net/samba419: Fix unbundled databases/ldb28
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: FreeBSD Samba Team
URL:
Keywords:
Depends on:
Blocks: 282491
  Show dependency treegraph
 
Reported: 2024-11-14 15:42 UTC by Mateusz Piotrowski
Modified: 2025-11-15 07:16 UTC (History)
2 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 Mateusz Piotrowski freebsd_committer freebsd_triage 2024-11-14 15:42:11 UTC
The unbundled version of ldb (databases/ldb28) does not seem to behave like its bundled variant. Some Samba features are broken when the database is unbundled, e.g., replication and ldbedit.

We should address that.
Comment 1 geoffroy desvernay 2024-12-03 11:21:28 UTC
I think importance should be raised…

Here replication is broken, and ldb* tools crash
root@ad-dc# lldb -- /usr/local/bin/ldbsearch -H /var/db/samba4/private/sam.ldb '(cn=pc-test)' supplementalcredentials
(lldb) target create "/usr/local/bin/ldbsearch"
Current executable set to '/usr/local/bin/ldbsearch' (x86_64).
(lldb) settings set -- target.run-args  "-H" "/var/db/samba4/private/sam.ldb" "(cn=pc-abel)" "supplementalcredentials"
(lldb) run
Process 92714 launched: '/usr/local/bin/ldbsearch' (x86_64)
Process 92714 stopped
* thread #1, name = 'ldbsearch', stop reason = signal SIGABRT
    frame #0: 0x000000082521741a libc.so.7`__sys_thr_kill + 10
libc.so.7`__sys_thr_kill:
->  0x82521741a <+10>: jb     0x825215578
    0x825217420 <+16>: retq   
    0x825217421:       int3   
    0x825217422:       int3   

Compilint with SAMBA4_BUNDLED_LDB creates working samba-ldb* tools and replication
Comment 2 Mateusz Piotrowski freebsd_committer freebsd_triage 2025-02-06 17:20:43 UTC
(In reply to geoffroy desvernay from comment #1)
Is it still the case on Samba 4.20?
Comment 3 geoffroy desvernay 2025-11-14 18:29:35 UTC
Sorry I missed your question,

We downgraded to 4.19 and are still there since…
Comment 4 geoffroy desvernay 2025-11-14 18:31:05 UTC
samba419 is working well here for a while, this problem has been solved in the meantime
Comment 5 Mateusz Piotrowski freebsd_committer freebsd_triage 2025-11-15 07:16:06 UTC
(In reply to geoffroy desvernay from comment #4)
Thanks for the report. If I understand correctly, we can close this ticket.