]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
This commit makes significant changes to pam_login_access(8) to bring it
authorcy <cy@FreeBSD.org>
Tue, 18 Feb 2020 11:27:08 +0000 (11:27 +0000)
committercy <cy@FreeBSD.org>
Tue, 18 Feb 2020 11:27:08 +0000 (11:27 +0000)
commit4bbdfe4e6ec2b1998ed4693745918a097dd898e7
tree5ad9e3152ff428f64df4ee49138a02fe06642dc6
parent70e579827c11db37b2332255944f965628926a4b
This commit makes significant changes to pam_login_access(8) to bring it
up to par with the Linux pam_access(8).

Like the Linux pam_access(8) our pam_login_access(8) is a service module
for pam(3) that allows a administrator to limit access from specified
remote hosts or terminals. Unlike the Linux pam_access, pam_login_access
is missing some features which are added by this commit:

Access file can now be specified. The default remains /etc/access.conf.
The syntax is consistent with Linux pam_access.

By default usernames are matched. If the username fails to match a match
against a group name is attempted. The new nodefgroup module option will
only match a username and no attempt to match a group name is made.
Group names must be specified in brackets, "()" when nodefgroup is
specified. Otherwise the old backward compatible behavior is used.
This is consistent with Linux pam_access.

A new field separator module option allows the replacement of the default
colon (:) with any other character. This facilitates potential future
specification of X displays. This is also consistent with Linux pam_access.

A new list separator module option to replace the default space/comma/tab
with another character. This too is consistent with Linux pam_access.

Linux pam_access options not implemented in this commit are the debug
and audit options. These will be implemented at a later date.

Reviewed by: bjk, bcr (for manpages)
Approved by: des (blanket, implicit)
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D23198
lib/libpam/modules/pam_login_access/login.access.5
lib/libpam/modules/pam_login_access/login_access.c
lib/libpam/modules/pam_login_access/pam_login_access.8
lib/libpam/modules/pam_login_access/pam_login_access.c
lib/libpam/modules/pam_login_access/pam_login_access.h