-
jzu
Yo
-
jzu
installed samba4 from pkgsrc but I'm not able to connect to the shares from macOS, I just get.. "Connection failed"
-
jzu
something special I need to do compared to samba3 setup?
-
jzu
my share allows guest access and I've got guest user defined etc.
-
jzu
erhm this is not promising:
-
jzu
[root@surdo ~]# smbclient -L 192.168.1.5 -U jussi
-
jzu
abort_handler_s: memset_s: n > smax
-
jzu
Abort (core dumped)
-
jperkin
jzu: pstack on the core would be useful to see where it's coming from, they use memset_s a lot
-
jperkin
though I can immediately see at least one place where n and smax aren't the same
-
jzu
-
jzu
maybe I've not set up Samba correctly as I haven't done anything else than added share which guest can access, that's all.
-
jperkin
possibly, but that wouldn't explain the runtime abort, the stack clearly shows n > smax but the code says they should be the same
-
jzu
running on latest base-64-lts, samba-4.17.4
-
jzu
went from 2015-something and samba3 for samb4, looking some read performance gains here :)
-
jperkin
ah ok I'm looking at trunk so 4.18.6, lemme check 2022Q4
-
jperkin
yeh looks like it was fixed in this commit:
heimdal/heimdal 88ea803
-
jperkin
I'll look at backporting samba from turnk
-
jzu
thanks!
-
jzu
I can also switch over to latest base-64 if you're busy :)
-
jperkin
if you're able to verify first that the trunk version works as expected that'd be great
-
jzu
sure I'll do that
-
jzu
now the client is working, still unable to access with guest though :)
-
jzu
but a step forward
-
jzu
right so it's something in the way how macOS talks to the Samba server, as I'm able to login from the CLI on SmartOS:
-
jzu
# smbclient //192.168.1.5/work
-
jzu
Password for [MYGROUP\root]:
-
jzu
Anonymous login successful
-
jzu
-
jzu
still not able to list shares in Network on macOS but oh well :)
-
jperkin
you might need some dns-sd for that, e.g. dns-sd -R SmartOS _smb._tcp local 445
-
jzu
I can see server there but it doesn't list shares, weird.
-
jzu
ah now the Guest login works through Finder, showing the shares.
-
jbk
i need to get back to mdns w/ smb
-
jbk
i have a branch where if the mdns service is running, smb will automatically register w/ it to advertise
-
jbk
so no dns-sd stuff is necessary
-
copec
-
copec
Before I try to give it the ole' college go