HomeFreeBSD

PAM: add 'uid_min' and 'uid_max' options for changing the uid range

Description

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

Details

Provenance
val_packett.coolAuthored on May 6 2023, 1:34 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jun 1 2023, 12:01 AM
Parents
rGf2f3ec17edb5: PAM: add 'forceunmount' flag
Branches
Unknown
Tags
Unknown