Describe the bug
I'm trying to integrate my NixOS setup with an ad server. I've set up samba the following way using the sssd guide at https://sssd.io/docs/users/ad_provider.html:
net groupmap add sid=S-1-5-32-546 unixgroup=nobody type=builtin
After running nix-shell -p samba4Full --command 'net groupmap add sid=S-1-5-32-546 unixgroup=nobody type=builtin'
and rebuilding the config with nixos-rebuild switch Samba starts up fine.
IMHO the Samba package should verify the existence of the guest account and automatically add it via the above command if missing.
Notify maintainers
@aneeshusa
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
# a list of nixpkgs attributes affected by the problem
attribute:
- samba4Full
# a list of nixos modules affected by the problem
module:
- services.samba
Describe the bug I'm trying to integrate my NixOS setup with an ad server. I've set up samba the following way using the sssd guide at https://sssd.io/docs/users/ad_provider.html:
When applying the config samba fails with the following error:
Note the error message ERROR: failed to setup guest info.
To Reproduce Enable the samba service with the above configuration.
Expected behavior The Samba service should start without an error.
Additional context I've found the following RedHat ticket (https://bugzilla.redhat.com/show_bug.cgi?id=1648399), which recommends running the following command to fix the issue:
net groupmap add sid=S-1-5-32-546 unixgroup=nobody type=builtin
After running
nix-shell -p samba4Full --command 'net groupmap add sid=S-1-5-32-546 unixgroup=nobody type=builtin'
and rebuilding the config withnixos-rebuild switch
Samba starts up fine.IMHO the Samba package should verify the existence of the guest account and automatically add it via the above command if missing.
Notify maintainers
@aneeshusa
Metadata Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Maintainer information: