When home_prefix is set to anything other than /home/, user's home dirs don't get created. This causes users created with Kanidm to chdir to / when they login via ssh.
Steps To Reproduce
Steps to reproduce the behavior:
Install Kanidm server on another machine
Install Kanidm UNIX client and set home_prefix to any other location than /home/
kanidm login -D idm_admin
kanidm person create <name> <display name>
kanidm person posix set <name>
kanidm person ssh add-publickey <name> "mykey" "<PUBKEY>"
kanidm group create pamgroup
kanidm group posix set pamgroup
kanidm group add-member pamgroup <name>
Try to ssh ssh <name>@idm.example.com and observe the message
Expected behavior
When home_prefix is set to anything other than /home/ kanidm-unixd-tasks should create the user's home dir in the location specified in home_prefix. Additionally when home_mount_prefix = "<path>" is set it should create a symlink which points to home_prefix.
Screenshots
Additional context
When home_prefix is unset it defaults to creating home dirs in /home which works just fine.
I've also reproduced the issue with a minimal config in a freshly installed arm64 NixOS VM with 2 virtual disks attached where one is ext4 and another xfs.
Describe the bug
When
home_prefix
is set to anything other than/home/
, user's home dirs don't get created. This causes users created with Kanidm to chdir to/
when they login via ssh.Steps To Reproduce
Steps to reproduce the behavior:
home_prefix
to any other location than/home/
Create a POSIX user, group and add a ssh key
Try to ssh
ssh <name>@idm.example.com
and observe the messageExpected behavior
When
home_prefix
is set to anything other than/home/
kanidm-unixd-tasks should create the user's home dir in the location specified inhome_prefix
. Additionally whenhome_mount_prefix = "<path>"
is set it should create a symlink which points tohome_prefix
.Screenshots
Additional context
When
home_prefix
is unset it defaults to creating home dirs in/home
which works just fine.I've also reproduced the issue with a minimal config in a freshly installed arm64 NixOS VM with 2 virtual disks attached where one is ext4 and another xfs.
I've opened an issue in upstream: https://github.com/kanidm/kanidm/issues/3105
Kanidm logs after ssh login:
Notify maintainers
@erictapen @Flakebi @adamcstephens
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.