12012-05-13 Sergey Poznyakoff <gray@gnu.org.ua> 2 3 Revamp build system. Add pam_ldaphome module. 4 5 * configure.ac: Test for ldap. 6 (AC_OUTPUT): Create pam_ldaphome/Makefile. 7 * acinclude.m4 (PM_ENABLE): Declare PAM_COND_<item> 8 conditional in addition to BUILD_PAM_<item> substitution 9 variable. 10 * Makefile.am (SUBDIRS): Include most modules via 11 conditionally defined Makefile variables. 12 13 * lib/graypam.h (gray_env): New struct. 14 (gray_env_get,gray_env_free,gray_env_read) 15 (gray_boolean_true_p): New protos. 16 * lib/env.c: New file. 17 * lib/Makefile.am (libgraypam_la_SOURCES): Add env.c 18 19 * pam_fshadow/Makefile.am: Remove BUILD_PAM_FSHADOW 20 substitution. 21 * pam_regex/Makefile.am: Remove BUILD_PAM_REGEX 22 substitution. 23 * pam_sql/pam_sql.c (free_config, boolean_true_p) 24 (read_config): Remove. Use gray_env_* functions 25 instead. All uses updated. 26 * pam_regex/pam_regex.c: Fix typo. 27 28 * pam_ldaphome/Makefile.am: New file. 29 302011-09-29 Sergey Poznyakoff <gray@gnu.org.ua> 31 32 Allow installers to link modules with alternative crypt(3) 33 implementations. 34 35 * configure.ac: New option --with-crypt-lib. 36 * README: Update. 37 382011-08-31 Sergey Poznyakoff <gray@gnu.org.ua> 39 40 Various bugfixes. 41 42 * pam_fshadow/pam_fshadow.c (pam_sm_authenticate): Fix 43 erroneous conditional, which allowed for logins with 44 arbitrary passwords if `nopasswd' option was given. 45 * lib/graypam.h (gray_free_transform_expr): New proto. 46 * lib/transform.c (transform) <has_regex>: New member. 47 (free_transform,free_segment): New statics. 48 (gray_free_transform_expr): New function. 49 * pam_regex/pam_regex.c (pam_sm_authenticate): Free slist and 50 transform expression. 51 522011-04-08 Sergey Poznyakoff <gray@gnu.org.ua> 53 54 Version 1.7 55 56 * configure.ac: Enable silent rules. 57 Require autoconf 2.63, automake 1.11. 58 * pam_log/pam_log.c: Suppress a gcc warning. 59 * NEWS: Update. 60 612011-04-05 Sergey Poznyakoff <gray@gnu.org.ua> 62 63 Allow for the use of `CALL proc' in MySQL queries. 64 65 * pam_sql/pam_mysql.c (flush_result): New static. 66 (mysql_do_query): Call mysql_real_connect with the 67 CLIENT_MULTI_RESULTS flag. 68 (check_query_result, mysql_setenv, gpam_sql_acct): Call flush_result 69 after freeing the result. 70 712009-02-27 Sergey Poznyakoff <gray@gnu.org.ua> 72 73 Minor changes 74 75 * pam_fshadow/pam_fshadow.c: Protect shadow-related code with 76 ifdefs. 77 * configure.ac: Check for shadow.h, struct spwd and fgetspent. Do 78 not disable pam_fshadow.c if they are not present. 79 80 Rewrite Makefile.am's in a clearer and simpler way 81 82 * configure.ac: Require libtool 2.2.5a 83 * Make.rules (.c.lo, .lo.la): Remove 84 (AM_LDFLAGS, INCLUDES, LIBS): New assignments. 85 * pam_sql/Makefile.am, pam_fshadow/Makefile.am, 86 pam_sql/Makefile.am, pam_regex/Makefile.am, 87 pam_log/Makefile.am: Rewrite. 88 * pam_sql/pam_sql.h, pam_sql/pam_mysql.c, pam_sql/pam_pgsql.c. 89 pam_sql/pam_sql.c: Rewrite. 90 * pam_sql/sha1.h, pam_sql/md5.c, pam_sql/md5.h, pam_sql/sha1.c 91 * pam_fshadow/pam_fshadow.c: New option [no]shadow 92 * doc/pam-modules.texi: Update. 93 94 * lib/graypam.h (gray_trim_ws): New proto 95 * lib/strutil.c: New file. 96 * lib/Makefile.am: Add strutil.c 97 982009-02-17 Sergey Poznyakoff <gray@gnu.org.ua> 99 100 * pam_fshadow/Makefile.am: Build the module conditionally. 101 * pam_regex/Makefile.am: Likewise. 102 * pam_log/Makefile.am: Likewise. 103 * NEWS, README: Update. 104 * configure.ac: Raise version number to 1.5. Update bug-report 105 address. 106 Add options for disabling fshadow, log and regex. 107 * acinclude.m4: Prefix all macros with PM_ 108 (PM_CHECK_LIB): Rewrite. 109 1102008-03-20 Sergey Poznyakoff <gray@gnu.org.ua> 111 112 * configure.ac, NEWS: Version 1.4 113 * doc/pam-modules.texi: Update. 114 * doc/macros.texi (opsummary,kwsummary): Remove anchor 115 definitions, they cause grief in texi2html. 116 1172008-03-19 Sergey Poznyakoff <gray@gnu.org.ua> 118 119 * doc/pam-modules.texi: Improve docs. 120 121 Documentation checking framework: 122 123 * doc/macros.texi, doc/check-docs.sh, doc/mastermenu.el, 124 doc/untabify.el, doc/rendition.texi: New files. 125 * pam_regex/pam_regex.c: Remove useless use_authtok option. 126 * pam_sql/pam_mysql.c, pam_sql/pam_pgsql.c, 127 pam_sql/pam_sql.c: Pacify `make check-sql-config' in doc. 128 * doc/Makefile.am: Add check-* rules. 129 * doc/pam-modules.texi: Update. 130 131 * configure.ac: Check for pam libraries and header files. 132 * pam_sql/pam_mysql.c (mysql_setenv): Protect by #ifdef 133 HAVE_PAM_MISC_SETENV. Prevent coredumps on NULL values. 134 * pam_sql/pam_pgsql.c (pgsql_setenv): Likewise. 135 * pam_sql/Makefile.am (pam_mysql_la_LDADD,pam_pgsql_la_LDADD): Add 136 @PAM_MISC@. 137 * pam_sql/pam_sql.c (read_config): Read lines of arbitrary length. 138 139 * pam_sql/pam_mysql.c, pam_sql/pam_pgsql.c: Implement `setenv' 140 method. 141 * pam_sql/pam_sql.c, pam_fshadow/pam_fshadow (_pam_get_password): 142 Set PAM_AUTHTOK. 143 1442008-03-17 Sergey Poznyakoff <gray@gnu.org.ua> 145 146 * doc/pam-modules.texi: Update. 147 148 * pam_fshadow/pam_fshadow.c, pam_sql/pam_mysql.c, 149 pam_sql/pam_sql.c, pam_regex/pam_regex.c: Ensure passwords might 150 get divulged only at debugging level 100. 151 1522008-03-16 Sergey Poznyakoff <gray@gnu.org.ua> 153 154 Add session management to pam_sql. 155 156 * NEWS, configure.ac: Updated. Set version to 1.3.90. 157 158 * lib/escape.c, lib/vartab.c: New files. 159 * lib/graypam.h (gray_expand_argv) 160 (gray_expand_string, gray_escape_string): New functions. 161 (struct keyword): New declaration. 162 (gray_find_keyword): New function. 163 * lib/Makefile.am (libgraypam_la_SOURCES): Add vartab.c and 164 escape.c. 165 166 * pam_log/pam_log.c: Use gray_find_keyword and gray_expand_argv. 167 168 * pam_sql/pam_mysql.c, pam_sql/pam_pgsql.c (verify_user_pass): 169 Change signature. 170 (sql_acct): New function. 171 * pam_sql/pam_sql.c (verify_user_pass): Change signature. 172 (_pam_parse): Initialize globals. 173 (free_config): Reset config_env to NULL. 174 (read_config): Set config_env to NULL. 175 (get_query,get_query2): New functions. 176 (pam_sm_authenticate): Call gray_pam_init, update call to 177 verify_user_pass. 178 (sql_session_mgmt,pam_sm_open_session,pam_sm_close_session): New 179 functions. 180 1812008-03-15 Sergey Poznyakoff <gray@gnu.org.ua> 182 183 * pam_regex/pam_regex.c (pam_opt): Fix a typo: rename "user_name" 184 option to "user". 185 (pam_sm_authenticate): Bugfix 186 1872008-03-15 Sergey Poznyakoff <gray@gnu.org.ua> 188 189 -= Release 1.3 =- 190 1912008-03-15 Sergey Poznyakoff <gray@gnu.org.ua> 192 193 Initial framework for LDAP-style password hashes. 194 195 * pam_sql/pam_mysql.c, pam_sql/pam_pgsql.c: Call 196 gray_check_ldap_pass if configuration variable allow-ldap-pass is 197 set. 198 * lib/graypam.h (gray_base64_decode, gray_check_ldap_pass): New 199 prototypes. 200 * lib/Makefile.am (libgraypam_la_SOURCES): Add new files. 201 * lib/sha1.h, lib/base64.c, lib/md5.c, lib/ldappass.c, lib/md5.h, 202 lib/sha1.c: New files. 203 2042008-03-14 Sergey Poznyakoff <gray@gnu.org.ua> 205 206 * doc/Makefile.am: Use texi2html to produce html files. 207 * doc/gendocs_template: Use latest version from Texinfo. 208 209 -= Release 1.2 =- 210 211 * lib/graypam.h: Minor change. 212 * pam_sql/pam_pgsql.c (verify_user_pass): port is optional. 213 Fix erroneous argument to PQsetdbLogin. 214 * pam_sql/pam_sql.c (pam_opt): Bugfix. 215 216 * doc/pam-modules.texi: Minor change. 217 218 * NEWS, doc/pam-modules.texi: Document new regexp default for 219 pam_fshadow.c 220 221 * lib/parseopt.c: New file. 222 * lib/Makefile.am (libgraypam_la_SOURCES): Add parseopt.c 223 * lib/graypam.h (gray_parseopt, gray_wait_debug_fun): New 224 functions 225 (CNTL_DEBUG_LEV, CNTL_SET_DEBUG_LEV): Removed. 226 * lib/log.c (gray_wait_debug): New functions. 227 * pam_fshadow/pam_fshadow.c, pam_sql/pam_sql.c, 228 pam_regex/pam_regex.c, pam_log/pam_log.c: Use gray_parseopt for 229 command line parsing. 230 2312008-03-13 Sergey Poznyakoff <gray@gnu.org.ua> 232 233 * configure.ac (PAM_COMMON_INCLUDES): Add -I${top_srcdir}/lib. 234 (AC_OUTPUT): Add lib/Makefile. 235 * doc/pam-modules.texi: Document `transform' option. 236 * Make.rules: New file. 237 238 * lib/mem.c, lib/slist.c, lib/log.c, lib/converse.c, 239 lib/graypam.h, lib/Makefile.am, lib/transform.c. 240 241 * pam_regex/pam_regex.c: Implement user name transformations. 242 243 * pam_fshadow/Makefile.am, pam_sql/Makefile.am: 244 Add ../lib/libgraypam.la to LDADD 245 * pam_fshadow/pam_fshadow.c, pam_sql/pam_mysql.c, 246 pam_sql/pam_pgsql.c, pam_sql/pam_sql.c: Use functions from ../lib. 247 2482007-08-28 Sergey Poznyakoff <gray@gnu.org.ua> 249 250 * pam_fshadow/Makefile.am, pam_regex/Makefile.am, 251 pam_log/Makefile.am: Place INCLUDES in front of CPPFLAGS 252 253 * pam_sql/Makefile.am: Place INCLUDES in front of CPPFLAGS 254 (pam_mysql.la): Redo rule 255 256 * pam_sql/sha1.h, pam_sql/sha1.c, pam_sql/md5.h, pam_sql/md5.c: 257 Replace with another version 258 259 * pam_fshadow/pam_fshadow.c: Minor change 260 * pam_sql/pam_mysql.c (sql_expand_query): Bugfix 261 Implement pure md5 passwords 262 (verify_user_pass): Lots of bugfixes 263 * pam_sql/pam_sql.c (read_config): Lots of bugfixes 264 (pam_sm_setcred,pam_sm_acct_mgmt): Add required functions 265 2662007-08-14 Sergey Poznyakoff <gray@gnu.org.ua> 267 268 * NEWS, configure.ac: Version 1.2 269 270 * pam_fshadow/pam_fshadow.c: Include config.h and time.h 271 * pam_sql/pam_mysql.c, pam_sql/pam_pgsql.c, pam_sql/pam_sql.c: Use 272 _pam_log for diagnostics. 273 * pam_regex/pam_regex.c (pam_sm_authenticate): Remove unused variable. 274 * configure.ac: New option --enable-debug 275 * common.c (wait_debug): Bugfix 276 * pam_log/pam_log.c: Include ctype.h 277 (parse_priority): Change return type. 278 * pam_fshadow/Makefile.am, pam_log/Makefile.am, 279 pam_regex/Makefile.am, pam_sql/Makefile.am: Use CPPFLAGS in cc rules. 280 2812007-08-06 Sergey Poznyakoff <gray@gnu.org.ua> 282 283 Relicense under GPLv3. 284 2852007-08-05 Sergey Poznyakoff <gray@gnu.org.ua> 286 287 * NEWS: Update 288 * configure.ac: Version 1.0.90 289 * common.c: Include regex.h; 290 (_cleanup_regex, make_str): New functions 291 * doc/pam-modules.texi: Update 292 * pam_fshadow/Makefile.am (pam_fshadow_la_LDADD): Add @LIBS@ 293 * pam_fshadow/pam_fshadow.c: Implement virtual domain 294 authentication. 295 * pam_regex/pam_regex.c (make_str): Moved to ../common.c 296 * pam_sql/pam_sql.c (verify_user_pass): static 297 2982006-09-06 Sergey Poznyakoff <gray@gnu.org.ua> 299 300 * configure.ac: New option --without-sql 301 302 * doc/pam-modules.texi: Updated 303 * common.c: Moved here syslog-reporting and debugging functions 304 * pam_fshadow/Makefile.am (AM_CPPFLAGS): Define MODULE_NAME 305 * pam_log/Makefile.am: Likewise 306 * pam_regex/Makefile.am: Likewise 307 308 * pam_fshadow/pam_fshadow.c: Update 309 * pam_regex/pam_regex.c: Update 310 * pam_sql/pam_sql.c: Update 311 312 * pam_sql/pam_mysql.c (sql_expand_query): Bugfix 313 * pam_sql/pam_pgsql.c (sql_expand_query): Bugfix 314 315 * pam_log/pam_log.c: Implemented 316 3172006-09-06 Sergey Poznyakoff <gray@gnu.org.ua> 318 319 * acinclude.m4: New file 320 * common.c: New file 321 * pam_log: New directory 322 * pam_log/pam_log.c: New file 323 * pam_log/Makefile.am: New file 324 * pam_log/.cvsignore: New file 325 326 * pam_sql: New directory 327 * pam_sql/Makefile.am: New file 328 * pam_sql/pam_mysql.c: New file 329 * pam_sql/pam_pgsql.c: New file 330 * pam_sql/pam_sql.c: New file 331 * pam_sql/pam_sql.h: New file 332 * pam_sql/sha1.c: New file 333 * pam_sql/sha1.h: New file 334 * pam_sql/.cvsignore: New file 335 336 * Makefile.am (SUBDIRS): Add pam_log pam_sql 337 * configure.ac: Add library versioning. Check for libmysqlclient 338 and libpq. Create pam_log/Makefile and pam_sql/Makefile 339 * pam_fshadow/Makefile.am, pam_regex/Makefile.am: Update 340 * pam_fshadow/pam_fshadow.c, pam_regex/pam_regex.c: Include <common.c> 341 3422006-09-04 Sergey Poznyakoff <gray@gnu.org.ua> 343 344 * pam_regex/pam_regex.c: New option 'user=[arg]' 345 * doc/pam-modules.texi: Update 346 3472005-08-18 Sergey Poznyakoff <gray@gnu.org.ua> 348 349 * autogen.sh: Updated 350 * pam_regex/pam_regex.c: Use stdarg.h 351 (regex): Made const 352 353 * NEWS: Updated 354 * README: Updated 355 * configure.ac: Change auxiliary directory to build-aux, change 356 version number to 1.0, change bug report address. 357 358 * doc: New directory 359 * doc/Makefile.am: New file 360 * doc/pam-modules.texi: New file 361 * doc/gendocs_template: New file 362 * doc/fdl.texi: New file 363 * doc/.cvsignore: New file 364 365 * configure.ac: Add doc/ 366 * Makefile.am: Likewise 367 * pam_fshadow/pam_fshadow.c: Updated copyright statement 368 * pam_regex/pam_regex.c: Likewise 369 3702004-05-27 Sergey Poznyakoff <gray@Mirddin.farlep.net> 371 372 * INSTALL: Removed 373 * Makefile.in: Removed 374 * pam_fshadow/Makefile.in: Removed 375 * pam_regex/Makefile.in: Removed 376 * .cvsignore: New file 377 * pam_fshadow/.cvsignore: New file 378 * pam_regex/.cvsignore: New file 379 * pam_fshadow/pam_fshadow.c: Minor fixes. 380 * README: Updated 381 * autogen.sh: Updated 382 3832004-02-09 Sergey Poznyakoff <gray@Mirddin.farlep.net> 384 385 * Put the two modules in a single packet and imported them 386 to CVS. 387 3882001-09-22 Sergey Poznyakoff <gray@mirddin.farlep.net> 389 390 First release. 391 392 393Local Variables: 394mode: change-log 395version-control: never 396End: 397