Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 828063 - net-fs/samba-4.14.10 breaks access for domain users
Summary: net-fs/samba-4.14.10 breaks access for domain users
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-03 09:44 UTC by Mario Klebsch
Modified: 2021-12-03 15:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mario Klebsch 2021-12-03 09:44:50 UTC
My system updated Samba from net-fs/samba-4.14.9 to net-fs/samba-4.14.10 yesterday, and now all domain users cannot access their shares anymore.


The samba logs the following message:
> Failed to find authenticated user xxx\yyy via getpwnam(), denying access.

Unfortunately, samba is (even compared to sendmail) f*cking complicated, so I am unable to find the cause of this problem.

After downgrading back to net-fs/samba-4.14.9, everythins is fine, again, so it seems, like net-fs/samba-4.14.10 is broken of had a change, that requires changing the configuration.
Comment 1 Joakim Tjernlund 2021-12-03 12:49:28 UTC
Same here, winbind crashes and I don't know why. Downgrading ...
Comment 2 Larry the Git Cow gentoo-dev 2021-12-03 13:00:21 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c602f884e34ee08f6a76b11f03a1946170d16d55

commit c602f884e34ee08f6a76b11f03a1946170d16d55
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2021-12-03 12:59:10 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2021-12-03 13:00:05 +0000

    net-fs/samba: Attempt to fix winbindd regression
    
    Bug: https://bugs.gentoo.org/828063
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 .../samba-4.14.10-winbindd_regression_fix.patch    |  42 +++
 .../samba-4.15.2-winbindd_regression_fix.patch     |  42 +++
 net-fs/samba/samba-4.14.10-r1.ebuild               | 346 +++++++++++++++++++++
 net-fs/samba/samba-4.15.2-r1.ebuild                | 343 ++++++++++++++++++++
 4 files changed, 773 insertions(+)
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2021-12-03 13:01:07 UTC
Please give

  net-fs/samba-4.14.10-r1

a try and report back your results.
Comment 4 Joakim Tjernlund 2021-12-03 15:20:56 UTC
net-fs/samba-4.14.10-r1 fixed the problem for me, thanks.

I did notice emerge complain a little:

* QA Notice: The ebuild is installing to one or more unexpected paths:
 * 
 *   /run
 * 
 * Please fix the ebuild to use correct FHS/Gentoo policy paths.
 * QA Notice: This ebuild installs into paths that should be created at runtime.
 *  To fix, simply do not install into these directories.  Instead, your package
 *  should create dirs on the fly at runtime as needed via init scripts/etc...
 * 
 *   var/cache
 *   var/cache/samba
 *   var/cache/samba/.keep_net-fs_samba-0  var/lock
 *   var/lock/samba
 *   var/lock/samba/.keep_net-fs_samba-0  var/run
 *   var/run/samba  run
 *   run/samba
 * Verifying compiled files in /usr/lib/python3.8/site-packages
 * 
 * QA Notice: This package installs one or more Python modules that are
 * not byte-compiled.
 * The following files are missing:
 * 
 *   /usr/lib/python3.8/site-packages/samba/__pycache__/auth_util.cpython-38.pyc
 *   /usr/lib/python3.8/site-packages/samba/__pycache__/auth_util.cpython-38.opt-1.pyc
 *   /usr/lib/python3.8/site-packages/samba/__pycache__/auth_util.cpython-38.opt-2.pyc
 *   /usr/lib/python3.8/site-packages/samba/__pycache__/colour.cpython-38.pyc
 *   /usr/lib/python3.8/site-packages/samba/__pycache__/colour.cpython-38.opt-1.pyc
 *   /usr/lib/python3.8/site-packages/samba/__pycache__/colour.cpython-38.opt-2.pyc
 *   /usr/lib/python3.8/site-packages/samba/__pycache__/__init__.cpython-38.pyc
 *   /usr/lib/python3.8/site-packages/samba/__pycache__/__init__.cpython-38.opt-1.pyc
 *   /usr/lib/python3.8/site-packages/samba/__pycache__/__init__.cpython-38.opt-2.pyc
 *   /usr/lib/python3.8/site-packages/samba/__pycache__/descriptor.cpython-38.pyc
.....
lots more about python3.8 missing files
Comment 5 Larry the Git Cow gentoo-dev 2021-12-03 15:39:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35138b622cce513e6f94797b97513f9ddbd55170

commit 35138b622cce513e6f94797b97513f9ddbd55170
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2021-12-03 15:34:58 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2021-12-03 15:39:05 +0000

    net-fs/samba: Move stable keywords to 4.14.10-r1
    
    Closes: https://bugs.gentoo.org/828063
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 net-fs/samba/samba-4.14.10-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 6 Joakim Tjernlund 2021-12-03 15:46:33 UTC
I guess you will stable this version ASAP as well?
Comment 7 Joakim Tjernlund 2021-12-03 15:50:44 UTC
(In reply to Joakim Tjernlund from comment #6)
> I guess you will stable this version ASAP as well?

You already did :)