]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
PAM: add 'uid_min' and 'uid_max' options for changing the uid range
authorVal Packett <val@packett.cool>
Sat, 6 May 2023 01:34:58 +0000 (22:34 -0300)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 1 Jun 2023 00:01:07 +0000 (17:01 -0700)
commite3ba6b93de32bc76e9e616472af1c7aafea585a5
tree104cd95a9ffe104eda021a94fd6e5d027f539ad8
parentf2f3ec17edb5015c068c737f328654ae2c36a790
PAM: add 'uid_min' and 'uid_max' options for changing the uid range

Instead of a fixed >=1000 check, allow the configuration to override
the minimum UID and add a maximum one as well. While here, add the
uid range check to the authenticate method as well, and fix the return
in the chauthtok method (seems very wrong to report success when we've
done absolutely nothing).

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Felix Dörre <felix@dogcraft.de>
Signed-off-by: Val Packett <val@packett.cool>
Closes #14834
contrib/pam_zfs_key/pam_zfs_key.c