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

kanidm: set BindPaths when home_mount_prefix is set #356028

Open
muradbu opened this issue Nov 14, 2024 · 0 comments
Open

kanidm: set BindPaths when home_mount_prefix is set #356028

muradbu opened this issue Nov 14, 2024 · 0 comments
Labels
0.kind: bug Something is broken

Comments

@muradbu
Copy link

muradbu commented Nov 14, 2024

Describe the bug

As described in kanidm/kanidm#3214, when home_mount_prefix is set, kanidm-unixd-tasks fails to run due to a missing bind mount.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Setup a kanidm client where home_mount_prefix is set to a non-standard path, so anything other than /home
{
  systemd.services.kanidm-unixd-tasks.serviceConfig.ReadWritePaths = "/home /var/run/kanidm-unixd /custompath";
  services.kanidm = {
    enablePam = true;
    clientSettings = {
      uri = "https://example.com";
    };
    unixSettings = {
      default_shell = "${pkgs.bashInteractive}/bin/bash";
      uid_attr_map = "name";
      gid_attr_map = "name";
      home_alias = "name";
      home_attr = "uuid";
      home_mount_prefix = "/custompath/";
      home_prefix = "/home/";
      pam_allowed_login_groups = [ "pamgroup" ];
    };
  };
}
  1. Rebuild and view logs: journalctl -eu kanidm-unixd-tasks

Expected behavior

kanidm-unixd-tasks should start successfully when home_mount_prefix is set

Screenshots

Additional context

Adding the bind mount yourself fixes the problem: systemd.services.kanidm-unixd-tasks.serviceConfig.BindPaths = "/custompath";

But it'd be nice if the bind mount was added by the module automatically when home_mount_prefix is set.

Metadata

Notify maintainers

@Flakebi
@oddlama


Note for maintainers: Please tag this issue in your PR.


Add a 👍 reaction to issues you find important.

@muradbu muradbu added the 0.kind: bug Something is broken label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

1 participant