Samba doesn't work on BuC 5.x.
When a user tries to connect, having entered a valid password, smbd crashes. File /var/log/log.smbd contains messages like:
[2014/02/06 20:52:39.645261, 0] lib/util_sec.c:118(assert_gid)
Failed to set gid privileges to (-1,100) now set to (0,0) uid=(0,0)
[2014/02/06 20:52:39.645685, 0] lib/util.c:1117(smb_panic)
PANIC (pid 5928): failed to set gid
Originally reported by nagy@… (email to leaf-user 2014-02-04) and confirmed with default Samba config by davidmbrooke.
Something is going wrong with the setting of GID. The relevant code has lots of optional blocks, with APIs chosen by "configure", so likely that something is going wrong with detecting the capabilities of the target platform at compile time. Similar error reports for other platforms seem to confirm that. However everything looks good based on an initial check.
We currently package Samba 3.6.20 and the latest upstream is Samba 4.1.4 so an upgrade would be desirable, but Samba 4.x uses a new build system (waf) which seems to be non-trivial for cross-compilation.
Current plan is to pursue debugging the 3.6.20 code on BuC 5.x.
Believed to be fixed based on testing by davidmbrooke. Further testing to be done by nagy@.
Problem was indeed down to "configure" checks for cross-compilation.