aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2015-02-26 11:14:24 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2015-02-26 11:22:00 +0200
commit7974dd9073790cb6913dfe26dbbaa91dcbe157fe (patch)
treea0b99b1280a8d2a4944a41cf5d3dc5002caca537
parent30d6e72e175e1733b16860906550a24aca92440f (diff)
downloadpam-modules-7974dd9073790cb6913dfe26dbbaa91dcbe157fe.tar.gz
pam-modules-7974dd9073790cb6913dfe26dbbaa91dcbe157fe.tar.bz2
Version 2.0release-2.0
* NEWS: Update version number * configure.ac: Likewise. * doc/pam-modules.texi: Fix a typo. * doc/pam_ldaphome.8in: Likewise. * pamck/pamck.c: Update copyright years. * pam_fshadow/pam_fshadow.c: Suppress cc warnings. * pam_groupmember/pam_groupmember.c: Likewise. * pam_ldaphome/pam_ldaphome.c: Likewise. * pam_log/pam_log.c: Likewise. * pam_regex/pam_regex.c: Likewise.
-rw-r--r--NEWS12
-rw-r--r--configure.ac2
-rw-r--r--doc/pam-modules.texi2
-rw-r--r--doc/pam_ldaphome.8in4
-rw-r--r--pam_fshadow/pam_fshadow.c18
-rw-r--r--pam_groupmember/pam_groupmember.c1
-rw-r--r--pam_ldaphome/pam_ldaphome.c4
-rw-r--r--pam_log/pam_log.c1
-rw-r--r--pam_regex/pam_regex.c14
-rw-r--r--pamck/pamck.c2
10 files changed, 36 insertions, 24 deletions
diff --git a/NEWS b/NEWS
index 79dbb71..7d24ab6 100644
--- a/NEWS
+++ b/NEWS
@@ -1,11 +1,11 @@
1pam-modules -- history of user-visible changes. 2015-01-30 1pam-modules -- history of user-visible changes. 2015-02-26
2Copyright (C) 2001, 2004-2005, 2007-2012, 2015 Sergey Poznyakoff 2Copyright (C) 2001, 2004-2005, 2007-2012, 2015 Sergey Poznyakoff
3See the end of file for copying conditions. 3See the end of file for copying conditions.
4 4
5Please send pam-modules bug reports to <bug-pam-modules@gnu.org.ua> 5Please send pam-modules bug reports to <bug-pam-modules@gnu.org.ua>
6 6
7 7
8Version 1.9.90 (Git) 8Version 2.0, 2015-02-26
9 9
10* pam_ldaphome reads LDAP configuration from /etc/ldap.conf 10* pam_ldaphome reads LDAP configuration from /etc/ldap.conf
11 11
@@ -32,6 +32,14 @@ configuration file contains:
32 32
33then the line '#:user' can be used to delimit ldap-synchronized 33then the line '#:user' can be used to delimit ldap-synchronized
34and user-specific keys. 34and user-specific keys.
35
36* audit option
37
38All modules now support 'audit' option, which is equivalent to
39debug=100, i.e. it enables logging maximum debugging output.
40
41* pam_fshadow is built on all systems
42
35 43
36Version 1.9, 2014-05-21 44Version 1.9, 2014-05-21
37 45
diff --git a/configure.ac b/configure.ac
index 70c5b74..3a192a6 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, 1.9.90, bug-pam-modules@gnu.org.ua) 19AC_INIT(pam-modules, 2.0, 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])
diff --git a/doc/pam-modules.texi b/doc/pam-modules.texi
index a37a8ae..1464e06 100644
--- a/doc/pam-modules.texi
+++ b/doc/pam-modules.texi
@@ -1215,7 +1215,7 @@ From @file{/etc/ldap.conf}, the following statements are used:
1215 1215
1216In general, all statements defined below can appear in both files. 1216In general, all statements defined below can appear in both files.
1217However, since @file{/etc/ldap.conf} is read by other system utilities 1217However, since @file{/etc/ldap.conf} is read by other system utilities
1218as well, we do not recomment using @command{pam_ldaphome}-specific 1218as well, we do not recommend using @command{pam_ldaphome}-specific
1219keywords in it. 1219keywords in it.
1220 1220
1221The values read from @command{pam_ldaphome} configuration file 1221The values read from @command{pam_ldaphome} configuration file
diff --git a/doc/pam_ldaphome.8in b/doc/pam_ldaphome.8in
index 01b0a1c..ace334a 100644
--- a/doc/pam_ldaphome.8in
+++ b/doc/pam_ldaphome.8in
@@ -14,7 +14,7 @@
14.\" You should have received a copy of the GNU General Public License 14.\" You should have received a copy of the GNU General Public License
15.\" along with PAM-Modules. If not, see <http://www.gnu.org/licenses/>. 15.\" along with PAM-Modules. If not, see <http://www.gnu.org/licenses/>.
16.so config.so 16.so config.so
17.TH PAM_LDAPHOME 8 "January 30, 2015" "PAM-MODULES" "Pam-Modules User Reference" 17.TH PAM_LDAPHOME 8 "February 26, 2015" "PAM-MODULES" "Pam-Modules User Reference"
18.SH NAME 18.SH NAME
19pam_ldaphome \- create and populate user home directories 19pam_ldaphome \- create and populate user home directories
20.SH SYNOPSIS 20.SH SYNOPSIS
@@ -50,7 +50,7 @@ The system-wide configuration file
50is parsed after processing the main configuration file. In general, 50is parsed after processing the main configuration file. In general,
51all statements defined below can appear in both files. However, since 51all statements defined below can appear in both files. However, since
52.B /etc/ldap.conf 52.B /etc/ldap.conf
53is read by other system utilities as well, we do not recomment using 53is read by other system utilities as well, we do not recommend using
54.BR pam_ldaphome -specific 54.BR pam_ldaphome -specific
55keywords in it. 55keywords in it.
56.PP 56.PP
diff --git a/pam_fshadow/pam_fshadow.c b/pam_fshadow/pam_fshadow.c
index 3a9bcda..058dd44 100644
--- a/pam_fshadow/pam_fshadow.c
+++ b/pam_fshadow/pam_fshadow.c
@@ -124,19 +124,21 @@ struct pam_opt pam_opt[] = {
124 { PAM_OPTSTR(sysconfdir), pam_opt_string, &sysconfdir }, 124 { PAM_OPTSTR(sysconfdir), pam_opt_string, &sysconfdir },
125 { PAM_OPTSTR(regex), pam_opt_string, &regex_str }, 125 { PAM_OPTSTR(regex), pam_opt_string, &regex_str },
126 { PAM_OPTSTR(extended), pam_opt_bitmask, &regex_flags, 126 { PAM_OPTSTR(extended), pam_opt_bitmask, &regex_flags,
127 REG_EXTENDED }, 127 { .value = REG_EXTENDED } },
128 { PAM_OPTSTR(basic), pam_opt_bitmask_rev, &regex_flags, 128 { PAM_OPTSTR(basic), pam_opt_bitmask_rev, &regex_flags,
129 REG_EXTENDED }, 129 { .value = REG_EXTENDED } },
130 { PAM_OPTSTR(icase), pam_opt_bitmask, &regex_flags, 130 { PAM_OPTSTR(icase), pam_opt_bitmask, &regex_flags,
131 REG_ICASE }, 131 { .value = REG_ICASE } },
132 { PAM_OPTSTR(ignore-case), pam_opt_bitmask, &regex_flags, 132 { PAM_OPTSTR(ignore-case), pam_opt_bitmask, &regex_flags,
133 REG_ICASE }, 133 { .value = REG_ICASE } },
134 { PAM_OPTSTR(case), pam_opt_bitmask_rev, &regex_flags, 134 { PAM_OPTSTR(case), pam_opt_bitmask_rev, &regex_flags,
135 REG_ICASE }, 135 { .value = REG_ICASE } },
136 { PAM_OPTSTR(passwd), pam_opt_bool, &cntl_flags, CNTL_PASSWD }, 136 { PAM_OPTSTR(passwd), pam_opt_bool, &cntl_flags,
137 { PAM_OPTSTR(shadow), pam_opt_bool, &cntl_flags, CNTL_SHADOW }, 137 { .value = CNTL_PASSWD } },
138 { PAM_OPTSTR(shadow), pam_opt_bool, &cntl_flags,
139 { .value = CNTL_SHADOW } },
138 { PAM_OPTSTR(revert-index), pam_opt_bool, &cntl_flags, 140 { PAM_OPTSTR(revert-index), pam_opt_bool, &cntl_flags,
139 CNTL_REVERT_INDEX }, 141 { .value = CNTL_REVERT_INDEX } },
140 { NULL } 142 { NULL }
141}; 143};
142 144
diff --git a/pam_groupmember/pam_groupmember.c b/pam_groupmember/pam_groupmember.c
index 39685b0..020c900 100644
--- a/pam_groupmember/pam_groupmember.c
+++ b/pam_groupmember/pam_groupmember.c
@@ -40,7 +40,6 @@
40const char *sense_choice[] = { "allow", "deny", NULL }; 40const char *sense_choice[] = { "allow", "deny", NULL };
41 41
42static int sense; 42static int sense;
43static int cntl_flags;
44static long debug_level; 43static long debug_level;
45static char *groups; 44static char *groups;
46 45
diff --git a/pam_ldaphome/pam_ldaphome.c b/pam_ldaphome/pam_ldaphome.c
index c80f1dc..b1403cb 100644
--- a/pam_ldaphome/pam_ldaphome.c
+++ b/pam_ldaphome/pam_ldaphome.c
@@ -628,6 +628,10 @@ get_ldap_attrs(LDAP *ld, LDAPMessage *msg, const char *attr)
628 struct berval **values; 628 struct berval **values;
629 629
630 rc = ldap_get_dn_ber(ld, msg, &ber, &bv); 630 rc = ldap_get_dn_ber(ld, msg, &ber, &bv);
631 if (rc != LDAP_SUCCESS) {
632 _pam_log(LOG_ERR, "ldap_get_dn_ber: %s", ldap_err2string(rc));
633 return NULL;
634 }
631 ufn = ldap_dn2ufn(bv.bv_val); 635 ufn = ldap_dn2ufn(bv.bv_val);
632 DEBUG(2, ("INFO: %s", ufn)); 636 DEBUG(2, ("INFO: %s", ufn));
633 ldap_memfree(ufn); 637 ldap_memfree(ufn);
diff --git a/pam_log/pam_log.c b/pam_log/pam_log.c
index adb296d..8a76f3f 100644
--- a/pam_log/pam_log.c
+++ b/pam_log/pam_log.c
@@ -18,7 +18,6 @@
18 18
19 19
20/* Command line parsing */ 20/* Command line parsing */
21static int cntl_flags;
22static long debug_level; 21static long debug_level;
23 22
24static int xargc; 23static int xargc;
diff --git a/pam_regex/pam_regex.c b/pam_regex/pam_regex.c
index cbb7431..3f14510 100644
--- a/pam_regex/pam_regex.c
+++ b/pam_regex/pam_regex.c
@@ -43,7 +43,6 @@
43const char *sense_choice[] = { "allow", "deny", NULL }; 43const char *sense_choice[] = { "allow", "deny", NULL };
44 44
45static int sense; 45static int sense;
46static int cntl_flags;
47static long debug_level; 46static long debug_level;
48static const char *regex = NULL; 47static const char *regex = NULL;
49static int regex_flags = REG_NOSUB|REG_EXTENDED; 48static int regex_flags = REG_NOSUB|REG_EXTENDED;
@@ -56,20 +55,21 @@ struct pam_opt pam_opt[] = {
56 { PAM_OPTSTR(audit), pam_opt_const, &debug_level, { 100 } }, 55 { PAM_OPTSTR(audit), pam_opt_const, &debug_level, { 100 } },
57 { PAM_OPTSTR(waitdebug), pam_opt_null, NULL, { 0 }, 56 { PAM_OPTSTR(waitdebug), pam_opt_null, NULL, { 0 },
58 gray_wait_debug_fun }, 57 gray_wait_debug_fun },
59 { PAM_OPTSTR(sense), pam_opt_enum, &sense, { sense_choice } }, 58 { PAM_OPTSTR(sense), pam_opt_enum, &sense,
59 { .enumstr = sense_choice } },
60 { PAM_OPTSTR(transform), pam_opt_string, &transform }, 60 { PAM_OPTSTR(transform), pam_opt_string, &transform },
61 { PAM_OPTSTR(user), pam_opt_string, &user_name }, 61 { PAM_OPTSTR(user), pam_opt_string, &user_name },
62 { PAM_OPTSTR(regex), pam_opt_string, &regex }, 62 { PAM_OPTSTR(regex), pam_opt_string, &regex },
63 { PAM_OPTSTR(extended), pam_opt_bitmask, &regex_flags, 63 { PAM_OPTSTR(extended), pam_opt_bitmask, &regex_flags,
64 { REG_EXTENDED } }, 64 { .value = REG_EXTENDED } },
65 { PAM_OPTSTR(basic), pam_opt_bitmask_rev, &regex_flags, 65 { PAM_OPTSTR(basic), pam_opt_bitmask_rev, &regex_flags,
66 { REG_EXTENDED } }, 66 { .value = REG_EXTENDED } },
67 { PAM_OPTSTR(icase), pam_opt_bitmask, &regex_flags, 67 { PAM_OPTSTR(icase), pam_opt_bitmask, &regex_flags,
68 { REG_ICASE } }, 68 { .value = REG_ICASE } },
69 { PAM_OPTSTR(ignore-case), pam_opt_bitmask, &regex_flags, 69 { PAM_OPTSTR(ignore-case), pam_opt_bitmask, &regex_flags,
70 { REG_ICASE } }, 70 { .value = REG_ICASE } },
71 { PAM_OPTSTR(case), pam_opt_bitmask_rev, &regex_flags, 71 { PAM_OPTSTR(case), pam_opt_bitmask_rev, &regex_flags,
72 { REG_ICASE } }, 72 { .value = REG_ICASE } },
73 73
74 { NULL } 74 { NULL }
75}; 75};
diff --git a/pamck/pamck.c b/pamck/pamck.c
index 55e744c..976c1da 100644
--- a/pamck/pamck.c
+++ b/