]> git.proxmox.com Git - mirror_qemu.git/commit - net/slirp.c
qemu/slirp: Fix SMB security configuration on newer samba versions
authorMichael Buesch <m@bues.ch>
Fri, 1 Nov 2013 11:23:49 +0000 (12:23 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Wed, 12 Mar 2014 07:06:22 +0000 (08:06 +0100)
commitc2804ee6c0eba19c029bb2950fa2998c16f3ea11
tree3c74edccf44a84b03d04d8ab9cf86118d0109166
parent239618707637ec87eba8c452d2b2f75dc5ca20c7
qemu/slirp: Fix SMB security configuration on newer samba versions

The smb.conf automatically generated by qemu's -smb option fails on current
samba, because smbd rejects the security=share option with the following warning:

>   WARNING: Ignoring invalid value 'share' for parameter 'security'

Which makes it fall back to security=user without guest login.
This results in being unable to login to the samba server from the guest OS.

This fixes it by selecting 'user' explicitly and mapping
unknown users to guest logins.

Signed-off-by: Michael Buesch <m@bues.ch>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
net/slirp.c