Merge ~kstenerud/ubuntu/+source/samba:bionic-samba-eexist-1801227 into ubuntu/+source/samba:ubuntu/bionic-devel
Status: | Merged |
---|---|
Approved by: | Andreas Hasenack |
Approved revision: | 4f81d752ad1daac7575255baba1721358d5fa52e |
Merge reported by: | Andreas Hasenack |
Merged at revision: | 4f81d752ad1daac7575255baba1721358d5fa52e |
Proposed branch: | ~kstenerud/ubuntu/+source/samba:bionic-samba-eexist-1801227 |
Merge into: | ubuntu/+source/samba:ubuntu/bionic-devel |
Diff against target: |
62 lines (+40/-0) 3 files modified
debian/changelog (+7/-0) debian/patches/auth-fail-eexist.diff (+32/-0) debian/patches/series (+1/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Andreas Hasenack | Approve | ||
Canonical Server | Pending | ||
Review via email: mp+359602@code.launchpad.net |
Description of the change
This upstream patch fixes a regression in Samba 4.7, where the server responds with EEXISTS rather than EACCESS or EPERM on a failed login (or attempt to use guest access on a protected resource), resulting in confusing error messages to the user.
PPA: https:/
Steps to test:
# lxc launch ubuntu:bionic tester && lxc exec tester bash
# apt update && apt dist-upgrade -y && apt install -y samba gvfs libglib2.0-bin gvfs-bin gvfs-backends dbus-x11 &&
echo "
[global]
workgroup = WORKGROUP
security = user
map to guest = bad user
[test]
path = /tmp
browseable = yes
read only = yes
valid users = someone
" >/etc/samba/
service smbd restart
# su - -c "dbus-launch gio mount -a smb://localhost
gio: smb://localhost
# add-apt-repository -y ppa:kstenerud/
# su - -c "dbus-launch gio mount -a smb://localhost
gio: smb://localhost
n/f, comments inline