Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sssd-libwbclient is needed on RHEL/CentOS 7.5+ systems #88

Open
erinn opened this issue Aug 22, 2018 · 5 comments
Open

sssd-libwbclient is needed on RHEL/CentOS 7.5+ systems #88

erinn opened this issue Aug 22, 2018 · 5 comments
Labels
Bug Something isn't working Good First Issue An issue which is a good way to get started in the project hacktoberfest An issue highlighted for the digital ocean Hacktoberfest Event Help Wanted Assistance is required to resolve this issue

Comments

@erinn
Copy link
Contributor

erinn commented Aug 22, 2018

Cookbook version

1.1.4

Chef-client version

14.2.0

Platform Details

RHEL 7.5 x86_64
samba-4.7.1-9.el7_5.x86_64

Scenario:

When a RHEL system is AD joined using SSSD, winbind does not function as samba is not AD joined. To get samba to work with an systems joined to the AD through SSSD the package sssd-libwbclient is needed. However, it can't just blindly be installed as it will override winbind, and for folks who join a system to the AD using samba, they rely on winbind.

An attribute or a flag of some sort is needed to state that SSSD is being used and as such the package sssd-libwbclient needs to be installed.

Steps to Reproduce:

Setup cookbook to configure a RHEL/CentOS 7.5 system that is joined to the AD via SSSD to run as a file share (security = ads) startup of samba will fail because winbind is not enabled, obscure error message in /var/log/samba/log.smbd:
[2018/08/22 10:48:42.481282, 0] ../source3/auth/auth_util.c:1399(make_new_session_info_guest)
create_local_token failed: NT_STATUS_NO_MEMORY
[2018/08/22 10:48:42.482097, 0] ../source3/smbd/server.c:2011(main)
ERROR: failed to setup guest info.

Winbind will not start due to not being AD joined, solution is to install the sssd-libwbclient package.

Expected Result:

Samba to start and serve shares.

Actual Result:

Already mentioned in steps to reproduce.

@damacus
Copy link
Member

damacus commented Aug 22, 2018

Thanks for such a detailed case.

We should be able to cook up something.

@damacus
Copy link
Member

damacus commented Aug 26, 2018

Hey @erinn do you fancy dropping a PR? If you want any guidance to testing or style, please don't hesitate to ask.

Thanks,
Dan

@xorima xorima added Bug Something isn't working Good First Issue An issue which is a good way to get started in the project Help Wanted Assistance is required to resolve this issue labels May 13, 2019
@jringoot
Copy link

jringoot commented Mar 19, 2020

Thanks: installing "sssd-libwbclient" was just the solution for me to the same error you have, to get samba up and running

create_local_token failed: NT_STATUS_NO_MEMORY

@damacus
Copy link
Member

damacus commented Mar 20, 2020

Would you mind making a fix to this cookbook to share that with all the other users of the cookbook?

Thanks!
Dan

@jringoot
Copy link

Would you mind making a fix to this cookbook to share that with all the other users of the cookbook?

Thanks!
Dan

Sorry Dan, I don't know howto, I am not a chef user, but I do use sssd as authentication service.
This is the first hit I got when googling for the error I got.

@ramereth ramereth added the hacktoberfest An issue highlighted for the digital ocean Hacktoberfest Event label Oct 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Good First Issue An issue which is a good way to get started in the project hacktoberfest An issue highlighted for the digital ocean Hacktoberfest Event Help Wanted Assistance is required to resolve this issue
Projects
None yet
Development

No branches or pull requests

6 participants