-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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 Login Failed #94744
Comments
This is missing some information on how your sssd is configured. Can you provide a minimal test case, maybe as a VM test to reproduce? |
@flokli I can not provide my exact sssd config as it has auth info (I do not allow unauthenticated binds). I can pull that out, but are you asking for that? Or are you asking for the configuration.nix I'm using to build? |
I'm asking for a configuration to reproduce this. Ideally we could produce a tests for |
I've uploaded the configuration that I've been using below, with passwords and hostnames redacted. GitHub also made me rename it from .nix to .txt |
Sorry not an |
I'm not sure if this is useful, but I managed to get login working by editing the pam.d config by hand. Is there a way to make nixos automatically apply this as opposed to the default? This is the working sddm pam.d config:
|
I'm taking a look at this. I don't know much about the pam.d part but I'm also interested in having graphical login work with active directory. |
@bbigras I'm interested in learning more about |
@aanderse thanks. Is users.ldap not using sssd at all? I thought sssd was useful to make a computer part of the domain, has gpo support, can be used to log in while offline (the creds are cached I think). I also want to use keytabs for kerberos with active directory. I'm pretty sure I can get one with sssd but I'm not sure if it's required since in one test we copied a keytab that was generated on a window sserver. I was able to test sssd with active directory on NixOS in the past. I think login, sudo and ssh worked but not gdm. Possibly because of the pam.d stuff. |
No |
I just submitted a very basic test for sssd with ldap: #96885 Maybe it can help for testing with sddm. I wonder if As for pam.d, maybe we can modify the following code to add nixpkgs/nixos/modules/services/x11/display-managers/sddm.nix Lines 209 to 242 in 7bc3a08
|
The sssd-ldap test is now merged (with Mic92's help) You can use it as a base for a SDDM test. I'll try to find some time soon to take a look at it. |
Thank you for working on this. I'm having same issue |
Popping back in, sshd/login are borked now from a fresh install using my previous config. Not sure why that is but I have a hunch based on the PR I made above. Hoping someone can take a look at it and make sense/explain what's going on with that. I'm not sure how to test your patch @bbigras, can I just reinstall using sddm and sssd and it will work or do I have to pull something differently? |
I marked this as stale due to inactivity. → More info |
@Rudi9719 did you figure it out since your last comment? |
Not sure if anyone is still suffering from this issue or not, but I believe adding this to your configuration might resolve the problem:
|
May this be the same issue as in #128116 ? |
I marked this as stale due to inactivity. → More info |
Describe the bug
Unable to authenticate SDDM via SSSD
To Reproduce
Steps to reproduce the behavior:
services.xserver.enable = true;
services.xserver.layout = "us";
services.xserver.displayManager.sddm.enable = true;
services.xserver.desktopManager.plasma5.enable = true;
Expected behavior
Users should now be able to log in via SSSD using SDDM
Screenshots
N/A
Additional context
Regular login via console, or ssh seems to be working
Notify maintainers
@flokli
@aanderse
@dasJ
@e-user
@arianvp
Metadata
these paths will be fetched (0.05 MiB download, 0.28 MiB unpacked):
/nix/store/d43v6bx7r6fcaq3fbbfd5mwh1f5s7rmg-bash-interactive-4.4-p23-dev
copying path '/nix/store/d43v6bx7r6fcaq3fbbfd5mwh1f5s7rmg-bash-interactive-4.4-p23-dev' from 'https://cache.nixos.org'...
"x86_64-linux"
Linux 5.4.53, NixOS, 20.03.2668.7c85b915892 (Markhor)
yes
yes
nix-env (Nix) 2.3.6
/nix/var/nix/profiles/per-user/root/channels/nixos
Maintainer information:
The text was updated successfully, but these errors were encountered: