aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2018-08-12 19:20:04 +0300
committerSergey Poznyakoff <gray@gnu.org>2018-08-12 19:20:04 +0300
commit6bba235d667f25a9ae6bcd1c560b0ae28ea16505 (patch)
tree0d9e26952d7ae381f7dd78e6954fdda366a9eed7
parent23b718d2a385bb07bcbd4584a694e9e75050098b (diff)
downloadpam-modules-6bba235d667f25a9ae6bcd1c560b0ae28ea16505.tar.gz
pam-modules-6bba235d667f25a9ae6bcd1c560b0ae28ea16505.tar.bz2
New module pam_innetgr.
* Makefile.am: Add new module. * NEWS: Upgrade * configure.ac: Add configuration for pam_innetgr * pam_innetgr/Makefile.am: New file. * pam_innetgr/pam_innetgr.c: New file. * doc/Makefile.am: Add pam_innetgr.8 * doc/pam-modules.texi: Document pam_innetgr. * doc/pam_innetgr.8: New file. * examples/ldappubkey: Bugfixes (publickeyattribute setting): Accept a list of attributes (publickeyfilter): New setting.
-rw-r--r--Makefile.am36
-rw-r--r--NEWS22
-rw-r--r--configure.ac20
-rw-r--r--doc/Makefile.am3
-rw-r--r--doc/pam-modules.texi116
-rw-r--r--doc/pam_innetgr.8173
-rwxr-xr-xexamples/ldappubkey65
-rw-r--r--pam_groupmember/pam_groupmember.c2
-rw-r--r--pam_innetgr/Makefile.am22
-rw-r--r--pam_innetgr/pam_innetgr.c319
-rw-r--r--pam_umotd/pam_umotd.c2
11 files changed, 735 insertions, 45 deletions
diff --git a/Makefile.am b/Makefile.am
index 0b5c6d5..f2f416b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -17,37 +17,35 @@
17AUTOMAKE_OPTIONS = gnits 1.8 17AUTOMAKE_OPTIONS = gnits 1.8
18ACLOCAL_AMFLAGS = -I m4 -I imprimatur 18ACLOCAL_AMFLAGS = -I m4 -I imprimatur
19 19
20SUBDIRS = \
21 imprimatur\
22 doc\
23 examples\
24 lib\
25 pam_sql\
26 pamck
27
20if PAM_COND_FSHADOW 28if PAM_COND_FSHADOW
21 FSHADOW_DIR=pam_fshadow 29 SUBDIRS += pam_fshadow
22endif 30endif
23if PAM_COND_REGEX 31if PAM_COND_REGEX
24 REGEX_DIR=pam_regex 32 SUBDIRS += pam_regex
25endif 33endif
26if PAM_COND_LOG 34if PAM_COND_LOG
27 LOG_DIR=pam_log 35 SUBDIRS += pam_log
28endif 36endif
29if PAM_COND_LDAPHOME 37if PAM_COND_LDAPHOME
30 LDAPHOME_DIR=pam_ldaphome 38 SUBDIRS += pam_ldaphome
31endif 39endif
32if PAM_COND_UMOTD 40if PAM_COND_UMOTD
33 UMOTD_DIR=pam_umotd 41 SUBDIRS += pam_umotd
34endif 42endif
35if PAM_COND_GROUPMEMBER 43if PAM_COND_GROUPMEMBER
36 GROUPMEMBER_DIR=pam_groupmember 44 SUBDIRS += pam_groupmember
45endif
46if PAM_COND_INNETGR
47 SUBDIRS += pam_innetgr
37endif 48endif
38SUBDIRS = \
39 imprimatur\
40 doc\
41 examples\
42 lib\
43 $(FSHADOW_DIR)\
44 $(REGEX_DIR)\
45 $(LOG_DIR)\
46 pam_sql\
47 $(LDAPHOME_DIR)\
48 $(UMOTD_DIR)\
49 $(GROUPMEMBER_DIR)\
50 pamck
51 49
52EXTRA_DIST=ChangeLog.svn 50EXTRA_DIST=ChangeLog.svn
53 51
diff --git a/NEWS b/NEWS
index 0a530e2..22ba9df 100644
--- a/NEWS
+++ b/NEWS
@@ -1,9 +1,25 @@
1pam-modules -- history of user-visible changes. 2018-01-02 1pam-modules -- history of user-visible changes. 2018-08-12
2Copyright (C) 2001, 2004-2005, 2007-2012, 2015, 2018 Sergey Poznyakoff
3See the end of file for copying conditions. 2See the end of file for copying conditions.
4 3
5Please send pam-modules bug reports to <bug-pam-modules@gnu.org.ua> 4Please send pam-modules bug reports to <bug-pam-modules@gnu.org.ua>
6 5
6Version 2.2.90 (git)
7
8* New module pam_innetgr
9
10This module checks if the current hostname and the name of the user
11trying to log in are mentioned in a triple of the specified NIS
12netgroup.
13
14* The ldappubkey utility imporoved.
15
16The PublicKeyAttribute setting accepts a whitespace-separated list of
17attribute names.
18
19The new setting PublicKeyFilter can be used to supply a LDAP filter
20expression to use in place of the default.
21
22
7Version 2.2, 2018-01-02 23Version 2.2, 2018-01-02
8 24
9* Improve pam_fshadow 25* Improve pam_fshadow
@@ -223,7 +239,7 @@ Version 0.1
223========================================================================= 239=========================================================================
224Copyright information: 240Copyright information:
225 241
226Copyright (C) 2001, 2004-2005, 2007-2015 Sergey Poznyakoff 242Copyright (C) 2001, 2004-2005, 2007-2012, 2015, 2018 Sergey Poznyakoff
227 243
228 Permission is granted to anyone to make or distribute verbatim copies 244 Permission is granted to anyone to make or distribute verbatim copies
229 of this document as received, in any medium, provided that the 245 of this document as received, in any medium, provided that the
diff --git a/configure.ac b/configure.ac
index 0a4eb33..6869248 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,7 +16,7 @@
16 16
17AC_PREREQ(2.63) 17AC_PREREQ(2.63)
18 18
19AC_INIT(pam-modules, 2.2, bug-pam-modules@gnu.org.ua) 19AC_INIT(pam-modules, 2.2.90, bug-pam-modules@gnu.org.ua)
20AC_CONFIG_SRCDIR(pam_fshadow/pam_fshadow.c) 20AC_CONFIG_SRCDIR(pam_fshadow/pam_fshadow.c)
21AC_CONFIG_AUX_DIR([build-aux]) 21AC_CONFIG_AUX_DIR([build-aux])
22AC_CONFIG_MACRO_DIR([m4]) 22AC_CONFIG_MACRO_DIR([m4])
@@ -171,6 +171,18 @@ yes)
171esac 171esac
172]) 172])
173 173
174#
175AC_CHECK_FUNCS([getdomainname])
176PM_ENABLE(innetgr,[
177case $build_innetgr in
178probe)
179 AC_CHECK_FUNC([innetgr],[build_innetgr=yes],[build_innetgr=no])
180 ;;
181yes)
182 AC_CHECK_FUNC([innetgr],[],[AC_MSG_ERROR([cannot build the requested module pam_innetgr because function innetgr is not present in libc])])
183 ;;
184esac])
185
174## ***************** 186## *****************
175## debugging support 187## debugging support
176## ***************** 188## *****************
@@ -219,7 +231,7 @@ delim="-------------------------------------------------------------------"
219echo $delim | tr '-' '*' 231echo $delim | tr '-' '*'
220echo "Modules to build:" 232echo "Modules to build:"
221res= 233res=
222for module in fshadow regex log pgsql mysql ldaphome umotd groupmember 234for module in fshadow regex log pgsql mysql ldaphome umotd groupmember innetgr
223do 235do
224 modname=pam_$module 236 modname=pam_$module
225 eval enable=\${build_$module} 237 eval enable=\${build_$module}
@@ -242,7 +254,8 @@ build_pgsql=$build_pgsql
242build_mysql=$build_mysql 254build_mysql=$build_mysql
243build_ldaphome=$build_ldaphome 255build_ldaphome=$build_ldaphome
244build_umotd=$build_umotd 256build_umotd=$build_umotd
245build_groupmember=$build_groupmember]) 257build_groupmember=$build_groupmember
258build_innetgr=$build_innetgr])
246 259
247AC_OUTPUT(Makefile 260AC_OUTPUT(Makefile
248 doc/Makefile 261 doc/Makefile
@@ -255,4 +268,5 @@ AC_OUTPUT(Makefile
255 pam_ldaphome/Makefile 268 pam_ldaphome/Makefile
256 pam_umotd/Makefile 269 pam_umotd/Makefile
257 pam_groupmember/Makefile 270 pam_groupmember/Makefile
271 pam_innetgr/Makefile
258 pamck/Makefile) 272 pamck/Makefile)
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 3d588e3..368d3b0 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -43,6 +43,9 @@ endif
43if PAM_COND_GROUPMEMBER 43if PAM_COND_GROUPMEMBER
44 dist_man_MANS += pam_groupmember.8 44 dist_man_MANS += pam_groupmember.8
45endif 45endif
46if PAM_COND_INNETGR
47 dist_man_MANS += pam_innetgr.8
48endif
46 49
47config.so: $(top_srcdir)/configure.ac $(top_srcdir)/doc/Makefile.am 50config.so: $(top_srcdir)/configure.ac $(top_srcdir)/doc/Makefile.am
48 $(AM_V_GEN){\ 51 $(AM_V_GEN){\
diff --git a/doc/pam-modules.texi b/doc/pam-modules.texi
index 31f69ed..840a4c1 100644
--- a/doc/pam-modules.texi
+++ b/doc/pam-modules.texi
@@ -31,10 +31,11 @@
31 session management. 31 session management.
32* pam_log: (pam-modules)log. Format and log arbitrary 32* pam_log: (pam-modules)log. Format and log arbitrary
33 messages to syslog. 33 messages to syslog.
34* pam_ldaphome (pam-modules)ldaphome Maintain home directories and 34* pam_ldaphome (pam-modules)ldaphome. Maintain home directories and
35 SSH keys od LDAP users. 35 SSH keys od LDAP users.
36* pam_umotd (pam-modules)umotd Display a user-specific MOTD. 36* pam_umotd (pam-modules)umotd. Display a user-specific MOTD.
37* pam_groupmember (pam_modules)groupmember Test group membership. 37* pam_groupmember (pam_modules)groupmember. Test group membership.
38* pam_innetgr (pam-modules)innetgr. Check NIS netgroup.
38* pamck: (pam-modules)pamck. Verify PAM Access. 39* pamck: (pam-modules)pamck. Verify PAM Access.
39* usergitconfig: (pam-modules)usergitconfig. Initialize user @file{.gitconfig} file. 40* usergitconfig: (pam-modules)usergitconfig. Initialize user @file{.gitconfig} file.
40* ldappubkey: (pam-modules)ldappubkey. Get user's public ssh keys from the LDAP database. 41* ldappubkey: (pam-modules)ldappubkey. Get user's public ssh keys from the LDAP database.
@@ -90,6 +91,7 @@ Individual modules
90* ldaphome:: Maintain home directories and SSH keys of LDAP users. 91* ldaphome:: Maintain home directories and SSH keys of LDAP users.
91* umotd:: Display a user-specific MOTD. 92* umotd:: Display a user-specific MOTD.
92* groupmember:: Test group membership. 93* groupmember:: Test group membership.
94* innetgr:: Check NIS netgroup.
93 95
94* Reporting Bugs:: How to Report a Bug. 96* Reporting Bugs:: How to Report a Bug.
95 97
@@ -1670,11 +1672,33 @@ LDAP record is searched using the following filter:
1670@end example 1672@end example
1671@end deffn 1673@end deffn
1672 1674
1673@deffn {ldap.conf} publickeyattribute @var{attr} 1675@deffn {ldap.conf} publickeyattribute @var{attr} [@var{attr}...]