diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2015-02-26 11:14:24 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2015-02-26 11:22:00 +0200 |
commit | 7974dd9073790cb6913dfe26dbbaa91dcbe157fe (patch) | |
tree | a0b99b1280a8d2a4944a41cf5d3dc5002caca537 | |
parent | 30d6e72e175e1733b16860906550a24aca92440f (diff) | |
download | pam-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-- | NEWS | 12 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | doc/pam-modules.texi | 2 | ||||
-rw-r--r-- | doc/pam_ldaphome.8in | 4 | ||||
-rw-r--r-- | pam_fshadow/pam_fshadow.c | 18 | ||||
-rw-r--r-- | pam_groupmember/pam_groupmember.c | 1 | ||||
-rw-r--r-- | pam_ldaphome/pam_ldaphome.c | 4 | ||||
-rw-r--r-- | pam_log/pam_log.c | 1 | ||||
-rw-r--r-- | pam_regex/pam_regex.c | 14 | ||||
-rw-r--r-- | pamck/pamck.c | 2 |
10 files changed, 36 insertions, 24 deletions
@@ -1,11 +1,11 @@ | |||
1 | pam-modules -- history of user-visible changes. 2015-01-30 | 1 | pam-modules -- history of user-visible changes. 2015-02-26 |
2 | Copyright (C) 2001, 2004-2005, 2007-2012, 2015 Sergey Poznyakoff | 2 | Copyright (C) 2001, 2004-2005, 2007-2012, 2015 Sergey Poznyakoff |
3 | See the end of file for copying conditions. | 3 | See the end of file for copying conditions. |
4 | 4 | ||
5 | Please send pam-modules bug reports to <bug-pam-modules@gnu.org.ua> | 5 | Please send pam-modules bug reports to <bug-pam-modules@gnu.org.ua> |
6 | 6 | ||
7 | 7 | ||
8 | Version 1.9.90 (Git) | 8 | Version 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 | ||
33 | then the line '#:user' can be used to delimit ldap-synchronized | 33 | then the line '#:user' can be used to delimit ldap-synchronized |
34 | and user-specific keys. | 34 | and user-specific keys. |
35 | |||
36 | * audit option | ||
37 | |||
38 | All modules now support 'audit' option, which is equivalent to | ||
39 | debug=100, i.e. it enables logging maximum debugging output. | ||
40 | |||
41 | * pam_fshadow is built on all systems | ||
42 | |||
35 | 43 | ||
36 | Version 1.9, 2014-05-21 | 44 | Version 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 | ||
17 | AC_PREREQ(2.63) | 17 | AC_PREREQ(2.63) |
18 | 18 | ||
19 | AC_INIT(pam-modules, 1.9.90, bug-pam-modules@gnu.org.ua) | 19 | AC_INIT(pam-modules, 2.0, bug-pam-modules@gnu.org.ua) |
20 | AC_CONFIG_SRCDIR(pam_fshadow/pam_fshadow.c) | 20 | AC_CONFIG_SRCDIR(pam_fshadow/pam_fshadow.c) |
21 | AC_CONFIG_AUX_DIR([build-aux]) | 21 | AC_CONFIG_AUX_DIR([build-aux]) |
22 | AC_CONFIG_MACRO_DIR([m4]) | 22 | AC_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 | ||
1216 | In general, all statements defined below can appear in both files. | 1216 | In general, all statements defined below can appear in both files. |
1217 | However, since @file{/etc/ldap.conf} is read by other system utilities | 1217 | However, since @file{/etc/ldap.conf} is read by other system utilities |
1218 | as well, we do not recomment using @command{pam_ldaphome}-specific | 1218 | as well, we do not recommend using @command{pam_ldaphome}-specific |
1219 | keywords in it. | 1219 | keywords in it. |
1220 | 1220 | ||
1221 | The values read from @command{pam_ldaphome} configuration file | 1221 | The 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 |
19 | pam_ldaphome \- create and populate user home directories | 19 | pam_ldaphome \- create and populate user home directories |
20 | .SH SYNOPSIS | 20 | .SH SYNOPSIS |
@@ -50,7 +50,7 @@ The system-wide configuration file | |||
50 | is parsed after processing the main configuration file. In general, | 50 | is parsed after processing the main configuration file. In general, |
51 | all statements defined below can appear in both files. However, since | 51 | all statements defined below can appear in both files. However, since |
52 | .B /etc/ldap.conf | 52 | .B /etc/ldap.conf |
53 | is read by other system utilities as well, we do not recomment using | 53 | is read by other system utilities as well, we do not recommend using |
54 | .BR pam_ldaphome -specific | 54 | .BR pam_ldaphome -specific |
55 | keywords in it. | 55 | keywords 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, ®ex_str }, | 125 | { PAM_OPTSTR(regex), pam_opt_string, ®ex_str }, |
126 | { PAM_OPTSTR(extended), pam_opt_bitmask, ®ex_flags, | 126 | { PAM_OPTSTR(extended), pam_opt_bitmask, ®ex_flags, |
127 | REG_EXTENDED }, | 127 | { .value = REG_EXTENDED } }, |
128 | { PAM_OPTSTR(basic), pam_opt_bitmask_rev, ®ex_flags, | 128 | { PAM_OPTSTR(basic), pam_opt_bitmask_rev, ®ex_flags, |
129 | REG_EXTENDED }, | 129 | { .value = REG_EXTENDED } }, |
130 | { PAM_OPTSTR(icase), pam_opt_bitmask, ®ex_flags, | 130 | { PAM_OPTSTR(icase), pam_opt_bitmask, ®ex_flags, |
131 | REG_ICASE }, | 131 | { .value = REG_ICASE } }, |
132 | { PAM_OPTSTR(ignore-case), pam_opt_bitmask, ®ex_flags, | 132 | { PAM_OPTSTR(ignore-case), pam_opt_bitmask, ®ex_flags, |
133 | REG_ICASE }, | 133 | { .value = REG_ICASE } }, |
134 | { PAM_OPTSTR(case), pam_opt_bitmask_rev, ®ex_flags, | 134 | { PAM_OPTSTR(case), pam_opt_bitmask_rev, ®ex_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 @@ | |||
40 | const char *sense_choice[] = { "allow", "deny", NULL }; | 40 | const char *sense_choice[] = { "allow", "deny", NULL }; |
41 | 41 | ||
42 | static int sense; | 42 | static int sense; |
43 | static int cntl_flags; | ||
44 | static long debug_level; | 43 | static long debug_level; |
45 | static char *groups; | 44 | static 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 */ |
21 | static int cntl_flags; | ||
22 | static long debug_level; | 21 | static long debug_level; |
23 | 22 | ||
24 | static int xargc; | 23 | static 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 @@ | |||
43 | const char *sense_choice[] = { "allow", "deny", NULL }; | 43 | const char *sense_choice[] = { "allow", "deny", NULL }; |
44 | 44 | ||
45 | static int sense; | 45 | static int sense; |
46 | static int cntl_flags; | ||
47 | static long debug_level; | 46 | static long debug_level; |
48 | static const char *regex = NULL; | 47 | static const char *regex = NULL; |
49 | static int regex_flags = REG_NOSUB|REG_EXTENDED; | 48 | static 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, ®ex }, | 62 | { PAM_OPTSTR(regex), pam_opt_string, ®ex }, |
63 | { PAM_OPTSTR(extended), pam_opt_bitmask, ®ex_flags, | 63 | { PAM_OPTSTR(extended), pam_opt_bitmask, ®ex_flags, |
64 | { REG_EXTENDED } }, | 64 | { .value = REG_EXTENDED } }, |
65 | { PAM_OPTSTR(basic), pam_opt_bitmask_rev, ®ex_flags, | 65 | { PAM_OPTSTR(basic), pam_opt_bitmask_rev, ®ex_flags, |
66 | { REG_EXTENDED } }, | 66 | { .value = REG_EXTENDED } }, |
67 | { PAM_OPTSTR(icase), pam_opt_bitmask, ®ex_flags, | 67 | { PAM_OPTSTR(icase), pam_opt_bitmask, ®ex_flags, |
68 | { REG_ICASE } }, | 68 | { .value = REG_ICASE } }, |
69 | { PAM_OPTSTR(ignore-case), pam_opt_bitmask, ®ex_flags, | 69 | { PAM_OPTSTR(ignore-case), pam_opt_bitmask, ®ex_flags, |
70 | { REG_ICASE } }, | 70 | { .value = REG_ICASE } }, |
71 | { PAM_OPTSTR(case), pam_opt_bitmask_rev, ®ex_flags, | 71 | { PAM_OPTSTR(case), pam_opt_bitmask_rev, ®ex_flags, |
72 | { REG_ICASE } }, | 72 | { .value = REG_ICASE } }, |
73 | 73 | ||
74 | { NULL } | 74 | { NULL } |
75 | }; | 75 | }; |