]> granicus.if.org Git - linux-pam/blob - CHANGELOG
Relevant BUGIDs: 436432
[linux-pam] / CHANGELOG
1
2 $Id$
3
4 -----------------------------
5
6 TODO:
7
8   - sanitize use of md5 throughout distribution.. Make a static
9     library for helping to develop modules that contains it and other
10     stuff. Also add sha-1 and ripemd-160 digest algorithms.
11   - once above is done. remove hacks from the secret@here module etc..
12   - remove prototype for gethostname in pam_access.c (Derrick)
13   - document PAM_INCOMPLETE changes
14   - verify that the PAM_INCOMPLETE interface is sensible.   Can we
15     catch errors? should we permit item changing etc., between
16     pam_authenticate re-invocations?
17   - verify that the PAM_INCOMPLETE interface works (auth seems ok..)
18   - add PAM_INCOMPLETE support to modules (partially added to pam_pwdb)
19   - work on RFC.
20   - do we still need to remove openlog/closelog from modules..?
21   - auth and acct support in pam_cracklib, "yes, I know the password
22     you just typed was valid, I just don't think it was very strong..."
23   - add in the pam_cap and pam_netid modules
24
25 ====================================================================
26 Note, as of release 0.73, all checkins should be accompanied with a
27 Bug ID. The bug IDs relate to sourceforge IDs.. (Of course, nothing is
28 ever that simple. It turns out that at some point in Sourceforge's
29 history all of the bug ids got bumped by 100000, so pretty much if you
30 see a bug ID below that begins with a '1' and your attempted query
31 fails, try adding 100000 to the number and trying again. I believe
32 this only affects bugs before release 0.76.)
33
34 You can query the related bug description with the following URL:
35
36  http://sourceforge.net/tracker/index.php?func=detail&aid=XXXXXX&group_id=6663&atid=106663
37
38 Where you should replace XXXXXX with a bug-id.
39
40 If you have found a bug in Linux-PAM, please consider filing such a
41 bug report - outstanding bugs are listed here:
42
43  http://sourceforge.net/tracker/?atid=106663&group_id=6663&func=browse
44
45 (to file another bug see the 'submit bug' button on this page).
46
47 ====================================================================
48
49 0.76: please submit patches for this section with actual code/doc
50       patches!
51
52 * pam_tally: added an #include (was it really needed?) and made the
53   pam_tally app install (with more pretty printing and a corrected
54   Makefile dependency) motivated by a (red hat diff) courtesy of Harald
55   Welte (Bug 436432 - agmorgan)
56 * more pam_limits changes (extracted from redhat version) courtesy of
57   Harald Welte (Bug 436061 - agmorgan)
58 * configure.in changes to help support non-Linux environments courtesy
59   of Scott T. Emery (Bug 422563 - agmorgan)
60 * made a pam_cracklib enhancement to interpret -ve limits in a
61   sensible fashion contributed by Werner Puschitz (Bug 413162 -
62   agmorgan)
63 * another fix for the latest number of rlimits available to pam_limits
64   (Bug 424060 - agmorgan)
65 * removed stale link from pam_pwdb documentation (Bug 433460 - agmorgan)
66 * pam_appl.sgml change - more discussion of choosing a service name
67   (Bug 417512 - agmorgan)
68 * more specific linking requirements for -lndbm for pam_userdb - from
69   David Lee (Bug 417339 - agmorgan)
70 * a large number of small changes to make AIX support better (Bug
71   416229 - agmorgan)
72 * $(MAKE) instead of 'make' - from Scott T. Emery (Bug 422144 -
73   agmorgan)
74 * c++ header fixes for pam_misc.h and pam_client.h - from Alexandre
75   Sagala (Bug 420270 - agmorgan)
76 * pam_access fixes - looks out for trailing '.' - from Carlo Marcelo
77   Arenas Belon (Bug 419631 - agmorgan)
78 * don't zero out password strings during pam_unix's password changing
79   function (Bug 419803 - vorlon)
80 * propagate some definitions to the _pam_aconf.h file - from David Lee
81   (Bug 415419 - agmorgan)
82 * solaris GCC OS_CFLAGS change from David Lee (Bug 415412 - agmorgan)
83 * added a comment to this CHANGELOG to explain why most of the bugids
84   used below appear not to be known to sourceforge [try adding 100000
85   to the bugid number.] (Bug 414943 - agmorgan)
86 * bumped version numbers and also added support for SONAME defines
87   that appear not to have survived the great autoconf experiment (Bug
88   414669 - agmorgan).
89
90 0.75: Sat Apr  7 23:10:50 PDT 2001
91
92                           ** WARNING **
93
94 This release contains backwardly incompatible changes to
95 libpam. Prior versions were buggy - see bugfix for Bug 129775.
96
97                           ** WARNING **
98
99 * made 0.75 release (Bug 414665 - agmorgan)
100 * pam_pwdb has been removed from the suggested pam.conf template. I've
101   replaced it with pam_unix. (Bug 227565 - agmorgan)
102 * pam_limits - Richard M. Yumul reported that "<domain> -" didn't
103   work, first fix suggested by Werner Puschitz (Bug 404953 - agmorgan)
104 * Nicolay Pelov suggested a simple fix for freebsd support (Bug 407282
105   - agmorgan)
106 * Michel D'HOOGE submitted documentation fixes (Bug 408961 - agmorgan)
107 * fix for module linking directions (Bug 133545 - agmorgan)
108 * fix for glibc-2.2.2 compilation of pam_issue (Bug 133542 - agmorgan)
109 * fix pam_userdb to make and link both .o files it needs - converse()
110   wasn't being linked! (Bug 132880 - agmorgan)
111 * added some sys-admin documentation for the pam_tally module (Bug
112   126210 - agmorgan).
113 * added a link to module examples from the module writers doc (Bug
114   131192 - agmorgan).
115 * fixed a small security hole (more of a user confusion issue) with
116   the unix and pwdb password helper binaries. The beef is described in
117   the bug report, but no uid change was possible so no-one should
118   think they need to issue a security bulletin over this one! (Bug
119   112540 - agmorgan)
120 * pam_lastlog needs to be linked with -lutil, also removed ambiguity
121   from sysadmin guide regarding this module being a 'session' module
122   (Bug 131549 - agmorgan).
123 * pam_cracklib needs to be linked with -lcrypt (old password checking)
124   (Bug 131601 - agmorgan).
125 * fixes for static library builds and also the examples when linked
126   with the debugging build of the libraries. (Bug 131783 - agmorgan)
127 * fixed URL for original RFC to a cached kernel.org file. (Bug 131503
128   - agmorgan)
129 * quoted the $CRACKLIB_DICTPATH test in configure.in (Bug 130130 -
130   agmorgan).
131 * improved handling of the setcred/close_session and update chauthtok
132   stack. *Warning* This is a backwardly incompatable change, but 'more
133   sane' than before. (Bug 129775 - agmorgan)
134 * bumped the version number, and added some code to assist in making
135   documentation releases (Bug 129644 - agmorgan).
136
137 0.74: Sun Jan 21 22:36:08 PST 2001
138
139 * made 0.74 release (Bug 129642 - agmorgan)
140 * libpam - cleaned up a few non-static functions to be static and added
141   support for libpam to enforce things like pam_[gs]et_data() and
142   AUTHTOK rules for using the API. Also documented pam_[gs]et_item()
143   a little better including return codes (Bugs 129027, 128576 -
144   agmorgan).
145 * pam_access - fixed the non-default config file option (Bug 127561 -
146   agmorgan)
147 * pam.8 manual page clarified with respect to the default location for
148   finding modules, also added some text describing the [...] control
149   syntax. (Bug 127625 - agmorgan)
150 * md5.h ia64 fixes for pam_unix and pam_pwdb (Bug 127700 - agmorgan)
151 * removed requirement for c++ from the configure{.in,} files (Bug
152   128298 - agmorgan)
153 * removed subdirectories from man page redirections (124396 - baggins)
154 * per David Lee, fixed non-POSIX shell command in modules/pam_filter/Makefile
155   (Bug 126440 - vorlon)
156 * modify format of pam_unix log messages to include service name
157   (Bug 126423 - vorlon)
158 * prevent pam_unix from logging unknown usernames (Bug 126431 - vorlon)
159 * changed format of pam_unix 'authentication failure' log messages to make
160   them clearer and more consistent (Bug 126036 - vorlon)
161 * improved portability of pam_unix by eliminating Linux-specific utmp
162   defines in PAM_getlogin() (Bug 125704 - vorlon)
163 * removed static variables from pam_tally (Bug 117434 - agmorgan)
164 * added copyright message to pam_access module from original logdaemon
165   sources (Bug 125022 - agmorgan)
166 * configure.in - removed the GCC -Wtraditional flag (Bug 124923 - agmorgan)
167 * pam_mail - use PAM_PATH_MAILDIR as the location of mail spool
168   (Bug 124397 - baggins)
169 * _pam_aconf.h.in, configure.in - added PAM_PATH_MAILDIR set via
170   --with-mailspool=dir option (default is _PAM_MAILDIR if defined
171   in paths.h otherwise /var/spool/mail (Bug 124397 - baggins)
172 * removed unnecessary CVS Log tags from all over the source
173   (Bug 124391 - baggins)
174 * pam_tally - check for PAM_TTY if PAM_RHOST is not set when writing
175   to faillog (Bug 124394 - baggins)
176 * use O_NOFOLLOW if available when opening debug log (Bug 124385 - baggins)
177 * pam_cracklib - removed comments about pam_unix not working with
178   pam_cracklib, added information about use_authtok parameter
179   (Bug 124388 - baggins)
180 * pam_userdb - fixed wrong definition of struct pam_module (was pam_wheel)
181   (Bug 124386 - baggins)
182 * fixed example/Makefile include path (Bug 124187, 127563(?) - agmorgan)
183 * pam_userdb compiles on RH5x. Also removed circular dependency on
184   configure.in. Also bumped revision number to 0.74. (Bug 124136 -
185   agmorgan)
186
187 0.73: Sat Dec  2 00:04:04 PST 2000
188
189 * updated documentaion revisions and added 'make release' support
190   to the top level Makefile (Bug 124132 - agmorgan).
191 * documented Qmail support in pam_mail (Bug 109219 - baggins)
192 * add change_uid option to pam_limits, and set real uid only if
193   this option is present (Bug 124062 - baggins)
194 * pam_limits - set real uid to the user for who we set limits.
195   (Bug 123972 - baggins)
196 * removed static variables from pam_limits (thread safe now). (Bug
197   117450 - agmorgan).
198 * removed static variable from pam_wheel (module should be thread safe
199   now). (Bug 112906 - agmorgan)
200 * added support for '/' symbols in pam_time and pam_group config files
201   (support for modern terminal devices). Fixed infinite loop problem
202   with '\\[^\n]' in these files. (Bug 116076 - agmorgan)
203 * avoid potential SIGPIPE when writing to helper binaries with (Bug
204   123399 - agmorgan)
205 * replaced bogus logic in the pam_cracklib module for determining if
206   the replacement is too similar to the old password (Bug 115055 -
207   agmorgan)
208 * added accessconf=<filename> feature to pam_access - request from
209   Aldrin Martoq and Meelis Roos (Bugs 111927,117240 - agmorgan)
210 * fix for pam_limit module not dealing with all limits Adam J. Richter
211   (Bug 119554 - agmorgan)
212 * comment fix describing fail_delay callback in _pam_types.h (Bug
213   112646 - agmorgan)
214 * "likeauth" fix for pam_unix and pam_pwdb which (Bug 113596 - agmorgan)
215 * fix for pam_unix (support.c) to avoid segfault with NULL password
216   (Bug 113238 - vorlon)
217 * fix to pam_unix_passwd: try repeatedly to get a lock on the password
218   file, instead of failing immediately (Bug 108845 - fix vorlon)
219 * fix to pam_shells: logged information was not formatted correctly
220   (extra comma) (Bug 111491 - fix vorlon)
221 * fix for C++ application support (Bug 111645 - fix agmorgan)
222 * fix for typo in pam_client.h (Bug 111648 - fix agmorgan)
223 * removal of -lpam from pam_mkhomedir Makefile (Bug 116380 - fix agmorgan)
224 * autoconf support [Task ID 15788, Bug ID 108297 - agmorgan with help!]
225  - bugfix for libpamc.h include file [Bug ID 117476 - agmorgan]
226  - bugfix for pam_filter.h inclusion [Bug ID 117474 - agmorgan]
227
228 0.72: Mon Dec 13 22:41:11 PST 1999
229
230 * patches from Debian (Ben Collins): pam_ftp supports event driven
231   conversations now; pwdb_chkpwd cleanup; pam_warn static compile fix;
232   user_db compiler warnings removed; debian defs file; pam_mail can
233   now be used as a session module
234 * ndbm compilation option for user_db module (fix explained by Richard Khoo)
235 * pam_cracklib bug fix
236 * packaging fixes & build from scratch stuff (Konst Bulatnikov & Frodo
237   Looijaard)
238 * -ldl appended to the libpam.so compilation make rule. (Charles Seeger)
239 * Red Hat security patch for pam_pwdb forwarded by Debian! (Ben
240   Collins. Fix provided by Andrey as it caught the problem earlier in the
241   code.)
242 * heuristic to prevent leaking filedescriptors to an agent. [This needs
243   to be better supported perhaps by an additional libpamc API function?]
244 * pam_userdb segfault fix from (Ben Collins)
245 * PAM draft spec extras added at request of 'sen_ml'
246
247 0.71: Sun Nov  7 20:21:19 PST 1999
248
249 * added -lc to linker pass for pam_nologin module (glibc is weird).
250 * various header changes to lower the number of warnings on glibc
251   systems (Dan Yefimov)
252 * merged a bunch of Debian fixes/patches/documentation (Ben Collins)
253   things touched: libpam (minor); doc/modules/pam_unix.sgml; pam_env
254   (plus docs); pam_mkhomedir (new module for new home directories on
255   the fly...); pam_motd (new module); pam_limits (adjust to match
256   docs); pam_issue (new module + doc) [Some of these were also
257   submitted by Thorsten Kukuk]
258 * small hack to lower the number of warnings that pam_client.h was
259   generating.
260 * debian and SuSE apparently can use the pam_ftp module, so
261   removed the obsolete comment about this from the docs. (Thorsten
262   Kukuk)
263
264 0.70: Fri Oct  8 22:05:30 PDT 1999
265
266 * bug fix for parsing of value=action tokens in libpam/pam_misc.c was
267   segfaulting (Jan Rekorajski and independently Matthew Melvin)
268 * numerous fixes from Thorsten Kukuk (icluding much needed fixes for
269   bitrot in modules and some documentation) that got included in SuSE 6.2.
270 * reentrancy issues in pam_unix and pam_cracklib resolved (Jan Rekorajski)
271 * added hosts_equiv_rootok module option to pam_rhosts module (Tim Berger)
272 * added comment about 'expose_account' module argument to admin and
273   module writers' docs (request from Michael K Johnson).
274 * myriad of bug fixes for libpamc - library now built by default and
275   works with the biomouse fingerprint scanner agent/module
276   (distributed separately).
277
278 0.69: Sun Aug  1 20:25:37 PDT 1999
279
280 * c++ header #ifdef'ing for pam_appl.h (Tuomo Pyhala)
281 * added pam_userdb module (Cristian Gafton)
282 * minor documentation changes
283 * added in revised pam_client library (libpamc). Not installed by
284   default yet, since the example agent/module combo is not very secure.
285 * glibc fixes (Thorsten Kukuk, Adam J. Richter)
286
287 0.68: Sun Jul  4 23:04:13 PDT 1999
288
289 * completely new pam_unix module from Jan Rekorajski and Stephen Langasek
290 * Jan Rekorajski pam_mail - support for Maildir format mailboxes
291 * Jan Rekorajski pam_cracklib - support for old password comparison
292 * Jan Rekorajski bug fix for pam_pwdb setcred reusing auth retval
293 * Andrey's pam_tally patch (lstat -> fstat)
294 * Robert Milkowski's additional pam_tally patches to **change format of
295   /var/log/faillog** to one from shadow-utils, add new option "per_user"
296   for pam_tally module, failure time logging, support for fail_line
297   field, and support for fail_locktime field with new option
298   no_lock_time.
299 * pam_tally: clean up the tally application too.
300 * Marcin Korzonek added process priority settings to pam_limits (bonus
301   points for adding to documentation!)
302 * Andrey's pam_pwdb patch (cleanup + md5 endian fubar fix)
303 * more binary prompt preparations (make misc conv more compatible with spec)
304 * modified callback hook for fail delay to be more useful with event
305   driven applications (changed function prototype - suspect no one
306   will notice). Documented this in app developer guide.
307 * documentation for pam_access from Tim Berger
308 * syntax fixes for the documentation - a long time since I've built it :*(
309   added some more names to the CREDITS file.
310
311 0.67: Sat Jun 19 14:01:24 PDT 1999
312
313 * [dropped libpam_client - libpamc will be in the next release and
314    conforms to the developing spec in doc/specs/draft-morgan-pam.raw.
315    Sorry if you are keeping a PAM tree in CVS. CVS is a pain for
316    directories, but this directory was actually not referenced by
317    anything so the disruption should be light.]
318 * updates to pam_tally from Tim
319 * multiple updates from Stephen Langasek to pam_unix
320 * pam_filter had some trouble compiling (bug report from Sridhar)
321 * pam_wheel now attempts to identify the wheel group for the local
322   system instead of blindly assuming it is gid=0. In the case that
323   there is no "wheel" group, we default to assuming gid=0 is what was
324   meant - former behavior. (courtesy of Sridhar)
325 * NIS+ changes to pam_unix module from Dmitry O Panov
326 * hopefully, a fix for redefinition of LOG_AUTHPRIV (bug report Luke
327   Kenneth Casson Leighton)
328 * fix for minor typo in pam_wheel documentation (Jacek Kopecky)
329 * slightly more explanation of the [x=y] pam.conf syntax in the sys
330   admin guide.
331
332 0.66: Mon Dec 28 20:22:23 PST 1998 <morgan@linux.kernel.org>
333
334 * Started using cvs to keep track of changes to Linux-PAM.  This will
335   likely break some of the automated building stuff (RPMs etc..).
336 * security bug fix to pam_unix and pam_tally from Andrey.
337 * modules make file is now more automatic.  It should be possible to
338   unpack an external module in the modules directory and have it automatically
339   added to the build process.  Also added a modules/download-all script
340   that will make such downloading easier.  I'm happy to receive patches to
341   this file, informing the distribution of places from which to enrich itself.
342 * removed pam_system_log stuff.  Thought about it long and hard: a
343   bad idea.  If libc cannot guarantee a thread safe syslog, it needs
344   to be fixed and compatibility with other PAM libraries was
345   unnecessarily strained.
346 * SAG documentation changes: Seth Chaiklin
347 * rhosts: problems with NIS lookup failures with the root-uid check.
348   As a work-around, I've partially eliminated the need for the lookup
349   by supplying two new arguments: no_uid_check, superuser=<username>.
350   As a general rule this is more pluggable, since this module might be
351   used as an authentication scheme for a network service that does not
352   need root privilege...
353 * authenticate retval -> setcred for pam_pwdb (likeauth arg).
354 * pam_pwdb event driven support
355 * non openlog pam_listfile logging
356 * BUGFIX: close filedescriptor in pam_group and pam_time (Emmanuel Galanos)
357 * Chris Adams' mailhash change for pam_mail module
358 * fixed malloc failure check in pam_handlers.c (follow up to comment
359   by Brad M. Garcia).
360 * update to _pam_compat.h (Brad M. Garcia)
361 * support static modules in libpam again (Brad M. Garcia)
362 * libpam/pam_misc.c for egcs to grok the code (Brad M. Garcia)
363 * added a solaris-2.5.1 defs file (revived by Derrick J Brashear)
364 * pam_listfile logs failed attempts
365 * added a comment (Michael K Johnson pointed it out) about sgml2latex
366   having a new syntax.  I'll make it the change real when I upgrade...
367 * a little more text to the RFC, spelling fix from William J Buffam.
368 * minor changes to pam_securetty to accommodate event driven support.
369
370 0.65: Sun Apr  5 22:29:09 PDT 1998 <morgan@linux.kernel.org>
371
372 * added event driven programming extensions to libpam
373  - added PAM_INCOMPLETE handling to libpam/pam_dispatch.c
374  - added PAM_CONV_AGAIN which is a new conversation response that
375    should be mapped to PAM_INCOMPLETE by the module.
376  - ensured that the pam_get_user() function can resume
377  - changes to pam_strerror to accommodate above return codes
378  - clean up _pam_former_state at pam_end()
379  - ensured that former state is correctly initialized
380  - added resumption tests to pam_authenticate(), pam_chauthtok()
381  - added PAM_FAIL_DELAY item for pausing on failure
382
383 * improved _pam_macros.h so that macros can be used as single commands
384   (Andrey)
385
386 * reimplemented logging to avoid bad interactions with libc.  Added
387   new functions, pam_[,v]system_log() to libpam's API.  A programmer
388   can check for this function's availablility by checking if
389   HAVE_PAM_SYSTEM_LOG is #defined.
390
391 * removed the reduce conflict from pam_conv1 creation -- I can sleep
392   again now. :^]
393
394 * made building of static and dynamic libpam separate.  This is
395   towards making it possible to build both under Solaris (for Derrick)
396
397 * made USE_CRACKLIB a condition in unix module (Luke Kenneth Casson Leighton)
398
399 * automated (quiet) config installation (Andrey)
400
401 0.64: Thu Feb 19 23:30:24 PST 1998 Andrew Morgan <morgan@linux.kernel.org>
402
403 * miscellaneous patches for building under Solaris (Derrick J Brashear)
404
405 * removed STATIC support from a number of module Makefiles.  Notably,
406   these modules are those that use libpwdb and caused difficulties
407   satisfying the build process. (Please submit patches to fix this...;)
408
409 * reomved the union for binary packet conversations from
410   (_pam_types.h).  This is now completely implemented in libpam_client.
411
412 * Andrey's patch for working environment variable handling in
413   sh_secret module.
414
415 * made the libpam_misc conversation function a bit more flexible with
416   respect to binary conversations.
417
418 * added top level define (DEBUG_REL) for compiling in the form of
419   a debugging release.  I use this on a Red Hat 4.2 system with little
420   chance of crashing the system as a whole.  (Andrey has another
421   implementation of this -- with a spec file to match..)
422
423 0.63: Wed Jan 28 22:55:30 PST 1998 Andrew Morgan <morgan@linux.kernel.org>
424
425 * added libpam_client "convention" library.  This makes explicit the
426   use of PAM_BINARY_PROMPT.  It is a first cut, so don't take it too
427   seriously yet.  Comments/suggestions for improvements are very
428   welcome.  Note, this library does not compile by default.  It will
429   be enabled when it is judged stable.  The library comes with two
430   module/agent pairs and can be used with ssh using a patch available
431   from my pre-release directory [where you got this file.]
432
433 * backward compatibility patch for libpam/pam_handlers.c (PAM_IGNORE
434   was working with neither "requistie" nor "required") and a DEBUG'ing
435   compile time bug with pam_dispatch.c (Savochkin Andrey Vladimirovich)
436
437 * minor Makefile change from (Savochkin Andrey Vladimirovich)
438
439 * added pam_afsauth, pam_afspass, pam_restrict, and pam_syslog hooks
440   (Derrick J Brashear)
441
442 * pam_access use of uname(2) problematic (security problem
443   highlighted by Olaf Kirch).
444
445 * pam_listfile went a bit crazy reading group membersips (problem
446   highlighted by Olaf Kirch and patched independently by Cristian
447   Gafton and Savochkin Andrey Vladimirovich)
448
449 * compatibility hooks for solaris and hpux (Derrick J Brashear)
450
451 * 64 bit Linux/alpha bug fixed in pam_rhosts (Andrew D. Isaacson)
452
453 0.62: Wed Jan 14 14:10:55 PST 1998   Andrew Morgan <morgan@linux.kernel.org>
454
455 * Derrick J Brashear's patches: adds the HP stuff missed in the first
456   patch; adds SunOS support; adds support for the Solaris native ld
457   instead of requiring gnu ld.
458
459 * last line of .rhosts file need not contain a newline. (Bug reported by
460   Thompson Freeman.)
461
462 0.61: Thu Jan  8 22:57:44 PST 1998  Andrew Morgan <morgan@linux.kernel.org>
463
464 * complete rewrite of the "control flag" logic.  Formerly, we were
465   limited to four flags: requisite, required, sufficient, optional.
466   We can now use these keywords _and_ a great deal more besides.
467   The extra logic was inspired by Vipin Samar, a preliminary patch was
468   written by Andy Berkheimer, but I "had some ideas of my own" and
469   that's what I've actually included.  The basic idea is to allow the
470   admin to custom build a control flag with a series of token=value
471   pairs inside square brackets.  Eg., '[default=die success=ok]' which
472   is pretty close to a synonym for 'requisite'.  I'll try to document it
473   better in the sys-admin guide but I'm pretty sure it is a change for
474   the better....  If what is in the sys-admin guide is not good enough
475   for you, just take a look at the source for libpam ;^)
476
477 0.59: Thu Jan  8 22:27:22 PST 1998 Andrew Morgan <morgan@linux.kernel.org>
478
479 * better handling of empty lines in .rhosts file.  (Formerly, we asked
480   the nameserver about them!) Fix from Hugh Daschbach.
481
482 * _broke_some_binary_compatibility_ with previous versions to become
483   compliant with X/Open's XSSO spec.  Specifically, this has been
484   by changing the prototype for pam_strerror().
485
486 * altered the convention for the conversation mechanism to agree
487   with that of Sun.  (number of responses 'now=' number of messages
488   with help from Cristian for finding a bug.. Cristian also found a
489   nasty speradic segfault bug -- Thanks!)
490
491 * added NIS+ support to pam_unix_*
492
493 * fixed a "regular file checking" problem with the ~/.rhosts sanity
494   check.  Added "privategroup" option to permit group write permission
495   on the ~/.rhosts file in the case that the group owner has the same
496   name as the authenticating user.  :*) "promiscuous" and "suppress"
497   were not usable!
498
499 * added glibc compatibility to pam_rhosts_auth (protected __USE_MISC
500   with #ifndef since my libc already defines it!).
501
502 * Security fix from Savochkin Andrey Vladimirovich with suggested
503   modification from Olaf Seibert.
504
505 * preC contains mostly code clean-ups and a number of changes to
506   _pam_macros.
507
508 0.58: whenever
509
510 * pam_getenvlist() has a more robust definition (XSSO) than was previously
511   thought.  It would seem that we no longer need pam_misc_copy_env()
512   which was there to provide the robustness that pam_getenvlist()
513   lacked before...
514
515   Accordingly, I have REMOVED the prototype from libpam_misc. (The
516   function, however, will remain in the library as a wrapper for
517   legacy apps, but will likely be removed from libpam_misc-1.0.) PLEASE
518   FIX YOUR APPS *BEFORE* WE GET THERE!
519
520 * Alexy Nogin reported garbage output from pam_env in the case of
521   a non-existent environment variable.
522
523 * 'fixed' pwdb compilation for pam_wheel.  Not very cleanly
524   done.. Mmmm. Should really clean up the entire source tree...
525
526 * added prototypes for mapping functions
527
528                         <**WARNING**>
529
530   various constants have had there names changed.  Numerical values have
531   been retained but be aware some source old modules/applications will
532   need to be fixed before recompilation.
533
534                         </**WARNING**>
535
536 * appended documentation to README for pam_rhosts module (Nicolai
537   Langfeldt).
538
539 * verified X/Open compatibility of header files - note, where we differ
540   it is at the level of compilation warnings and the use of 'const char *'
541   instead of 'char *'.  Previously, Sun(X/open) have revised their spec
542   to be more 'const'-ervative in the light of comments from Linux-PAM
543   development.
544
545 * Ooops! PAM_AUTHTOKEN_REQD should have been PAM_NEW_AUTHTOK_REQD.
546
547         changed: pam_pwdb(pam_unix_acct) (also bug fix for
548         _shadow_acct_mgmt_exp() return value), pam_stress,
549         libpam/pam_dispatch, blank, xsh.
550
551 * New: PAM_AUTHTOK_EXPIRED - password has expired.
552
553 * Ooops! PAM_CRED_ESTABLISH (etc.) should have been PAM_ESTABLISH_CRED
554   etc... (changed - this may break some people's modules - PLEASE TAKE
555   NOTE!)
556         changed: pam_group, pam_mail, blank, xsh; module and appl
557         docs, pam_setcred manual page.
558
559 * renamed internal _pam_handle structure to be pam_handle as per XSSO.
560
561 * added PAM_RADIO_TYPE  (for multiple choice input method).  Also
562   added PAM_BINARY_{MSG,PROMPT} (for interaction out of sight of user
563   - this could be used for RSA type authentication but is currently
564   just there for experimental purposes).  The _BINARY_ types are now
565   usable with hooks in the libpam_misc conversation function. Still
566   have to add PAM_RADIO_TYPE.
567
568 * added pam_access module (Alexei Nogin)
569
570 * added documentation for pam_lastlog.  Also modified the module to
571   not (by default) print "welcome to your new account" when it cannot
572   find a utmp entry for the user (you can turn this on with the
573   "never" argument).
574
575 * small correction to the pam_fail_delay manual page.  Either the appl or
576   the modules header file will prototype this function.
577
578 * added "bigcrypt" (DEC's C2) algorithm(0) to pam_pwdb. (Andy Phillips)
579
580 * *BSD tweaking for various #include's etc. (pam_lastlog, pam_rhosts,
581   pam_wheel, libpam/pam_handlers). (Michael Smith)
582
583 * added configuration directory $SCONFIGED for module specific
584   configuration files.
585
586 * added two new "linked" man pages (pam.conf(8) and pam.d(8))
587
588 * included a reasonable default for /etc/pam.conf (which can be
589   translated to /etc/pam.d/* files with the pam_conv1 binary)
590
591 * fixed the names of the new configuration files in
592    conf/pam_conv1/pam_conv.y
593
594 * fixed make check.
595
596 * pam_lastlog fixed to handle UID in virgin part of /var/log/lastlog
597   (bug report from Ronald Wahl).
598
599 * grammar fix in pam_cracklib
600
601 * segfault avoided in pam_pwdb (getting user). Updating of passwords
602   that are directed to a "new" database are more robust now (bug noted
603   by Michael K. Johnson).  Added "unix" module argument for migrating
604   passwords from another database to /etc/passwd. (documentation
605   updated).  Removed "bad username []" warning for empty passwords -
606   on again if you supply the 'debug' module argument.
607
608 * ctrl-D respected in conversation function (libpam_misc)
609
610 * Removed -DPAM_FAIL_DELAY_ON from top-level Makefile. Nothing in
611   the distribution uses it.  I guess this change happened a while
612   back, basically I'm trying to make the module parts of the
613   distribution "source compatible" with the RFC definition of PAM.
614   This implementation of PAM is a superset of that definition. I have
615   added the following symbols to the Linux-PAM header files:
616
617         PAM_DATA_SILENT (see _pam_types.h)
618         HAVE_PAM_FAIL_DELAY (see _pam_types.h)
619         PAM_DATA_REPLACE (see _pam_modules.h)
620
621   Any module (or application) that wants to utilize these features,
622   should check (#ifdef) for these tokens before using the associated
623   functionality.  (Credit to Michael K. Johnson for pointing out my
624   earlier omission: not documenting this change :*)
625
626 * first stab at making modules more independent of full library
627   source.  Modules converted:
628         pam_deny
629         pam_permit
630         pam_lastlog
631         pam_pwdb
632
633 * pam_env.c: #include <errno.h> added to ease GNU libc use. (Michael
634   K. Johnson)
635
636 * pam_unix_passwd fixes to shadow aging code (Eliot Frank)
637
638 * added README for pam_tally
639
640 0.57: Fri Apr  4 23:00:45 PST 1997  Andrew Morgan <morgan@parc.power.net>
641
642 * added "nodelay" argument to pam_pwdb.  This can be used to turn off
643   the call to pam_fail_delay that takes effect when the user fails to
644   authenticate themself.
645
646 * added "suppress" argument to pam_rhosts_auth module. This will stop
647   printing the "rlogin failure message" when the user does not have a
648   .rhosts file.
649
650 * Extra fixes for FAKEROOT in Makefiles (Savochkin Andrey
651   Vladimirovich)
652
653 * pam_tally added to tree courtesy of Tim Baverstock
654
655 * pam_rhosts_auth was failing to read NFS mounted .rhosts
656   files. (Fixed by Peter Allgeyer). Refixed and further enhanced
657   (netgroups) by Nicolai Langfeldt. [Credit also to G.Wilford for some
658   changes that were not actually included..]
659
660 * optional (#ifdef PAM_READ_BOTH_CONFS) support for parsing of pam.d/
661   AND pam.conf files (Elliot Lee).
662
663 * Added (and signed) Cristian's PGP key. (I've never met him, but I am
664   convinced the key belongs to the guy that is making the PAM rpms and
665   also producing libpwdb. Please note, I will not be signing anyone
666   else's key without a personal introduction..)
667
668 * fixed erroneous syslog warning in pam_listfile (Savochkin Andrey
669   Vladimirovich, whole file reformatted by Cristian)
670
671 * modified pam_securetty to return PAM_IGNORE in the case that the user's
672   name is not known to the system (was previously, PAM_USER_UNKNOWN). The
673   Rationale is that pam_securetty's sole purpose is to prevent superuser
674   login anywhere other than at the console. It is not its concern that the
675   user is unknown - only that they are _not_ root. Returning
676   PAM_IGNORE, however, insures that the pam_securetty can never be used to
677   "authenticate" a non-existent user. (Cristian Gafton with bug report from
678   Roger Hu)
679
680 * Modified pam_nologin to display the no-login message when the user
681   is not known. The return value in this case is still PAM_USER_UNKNOWN.
682   (Bug report from Cristian Gafton)
683
684 * Added NEED_LCKPWD for pam_unix/ This is used to define the locking
685   functions and should only be turned on if you don't have them in
686   your libc.
687
688 * tidied up pam_lastlog and pam_pwdb: removed function that was never used.
689
690 * Note for package maintainers: I have added $(FAKEROOT) to the list of
691   environment variables.  This should help greatly when you build PAM
692   in a subdirectory.  I've gone through the tree and tried to make
693   everything compatible with it.
694
695 * added pam_env (courtesy of Dave Kinchlea)
696
697 * removed pam_passwd+ from the tree.  It has not been maintained in a
698   long time and running a shell script was basically insecure. I've
699   indicated where you can pick up the source if you want it.
700
701 * #define HAVE_PAM_FAIL_DELAY . Applications can conditionally compile
702   with this if they want to see if the facility is available. It is
703   now always available. (corresponding compilation cleanups..)
704
705 * _pam_sanitize() added to pam_misc. It purges the PAM_AUTHTOK and
706   PAM_OLDAUTHTOK items. (calls replaced in pam_auth and pam_password)
707
708 * pam_rhosts now knows about the '+' entry. Since I think this is a
709   dangerous thing, I have required that the sysadmin supply the
710   "promiscuous" flag for it in the corresponding configuration file
711   before it will work.
712
713 * FULL_LINUX_PAM_SOURCE_TREE exported from the top level make file.
714   If you want to build a module, you can test for this to determine if
715   it should take its directions from above or supply default locations
716   for installation. Etc.
717
718 0.56: Sat Feb 15 12:21:01 PST 1997 <morgan@parc.power.net>
719
720 * pam_handlers.c can now interpret the pam.d/ service config tree:
721         - if /etc/pam.d/ exists /etc/pam.conf is IGNORED
722           (otherwise /etc/pam.conf is treated as before)
723         - given /etc/pam.d/
724           . config files are named (in lower case) by service-name
725           . config files have same syntax as /etc/pam.conf except       
726             that the "service-name" field is not present. (there
727             are thus three manditory fields (and arguments are
728             optional):
729
730                 module-type  control-flag  module-path  optional-args...
731
732             )
733
734 * included conf/pam_conv1 for converting pam.conf to a pam.d/ version
735   1.0 directory tree. This program reads a pam.conf file on the
736   standard input stream and creates ./pam.d/ (in the local directory)
737   and fills it with ./pam.d/"service-name" files.
738
739         *> Note: It will fail if ./pam.d/ already exists.
740
741   PLEASE REPORT ANY BUGS WITH THIS CONVERSION PROGRAM... It currently
742   cannot retain comments from the old conf file, so take care to do this
743   by hand. Also, please email me with the fix that makes the
744   shift/reduce conflict go away...
745
746 * Added default module path to libpam for modules (see pam_handlers.c)
747   it makes use of Makfile defined symbol: DEFAULT_MODULE_PATH which is
748   inhereted from the defs/* variable $(SECUREDIR). Removed module
749   paths from the sample pam.conf file as they are no longer needed.
750
751 * pam_pwdb can now verify read protected passwords when it is not run
752   by root.  This is via a helper binary that is setuid root.
753
754 * pam_permit now prompts for a username if it is not already determined
755
756 * pam_rhosts now honors "debug" and no longer hardwire's "root" as the
757   superuser's name.
758
759 * pam_securetty now honors the "debug" flag
760
761 * trouble parsing extra spaces fixed in pam_time and pam_group
762
763 * added Michael K. Johnson's PGP key to the pgp.keys.asc list
764
765 * pam_end->env not being free()'d: fixed
766
767 * manuals relocated to section 3
768
769 * fixed bug in pam_mail.c, and enhanced to recognize '~' as a prefix
770   to indicate the $HOME of the user (courtesy David
771   Kinchlea). *Changed* from a "session" module to an "auth"
772   module. It cannot be used to authenticate a user, but it can be used
773   in setting credentials.
774
775 * fixed a stupid bug in pam_warn.. Only PAM_SERVICE was being read :*(
776
777 * pam_radius rewritten to exclusively make use of libpwdb. (minor fix
778   to Makefile for cleaning up - AGM)
779
780 * pam_limits extended to limit the total number of logins on a system
781   at any given time.
782
783 * libpam and libpam_misc use $(MAJOR_REL) and $(MINOR_REL) to set their
784   version numbers [defined in top level makefile]
785
786 * bugfix in sed command in defs/redhat.defs (AGM's fault)
787
788 * The following was related to a possibility of buffer overruns in
789   the syslogging code: removed fixed length array from syslogging
790   function in the following modules [capitalized the log identifier
791   so the sysadmin can "know" these are fixed on the local system],
792
793         pam_ftp, pam_stress, pam_rootok, pam_securetty,
794         pam_listfile, pam_shells, pam_warn, pam_lastlog
795   and
796         pam_unix_passwd (where it was definitely _not_ exploitable)
797
798 0.55: Sat Jan  4 14:43:02 PST 1997, Andrew Morgan <morgan@parc.power.net>
799
800 * added "requisite" control_flag to /etc/pam.conf syntax. [See
801   Sys. Admin. Guide for explanation] changes to pam_handlers.c
802
803 * completely new handling of garbled pam.conf lines. The modus
804   operandi now is to assume that any errors in the line are minor.
805   Errors of this sort should *most definitely* lead to the module
806   failing, however, just ignoring the line (as was the case
807   previously) can lead to gaping security holes(! Not foreseen by the
808   RFC). The "motivation" for the RFC's comments about ignoring garbled
809   lines is present in spirit in the new code: basically a garbled line
810   is treated like an instance of the pam_deny.so module.
811   changes to pam_handlers.c and pam_dispatch.c .
812
813 * patched libpam, to (a) call _pam_init_handlers from pam_start() and
814   (b) to log a text error if there are no modules defined for a given
815   service when a call to a module is requested. [pam_start() and
816   pam_dispatch() were changed].
817
818 * patched pam_securetty to deal with "/dev/" prefix on PAM_TTY item.
819
820 * reorganized the modules/Makefile to include *ALL* modules. It is now
821   the responsibility of the modules themselves to test whether they can
822   be compiled locally or not.
823
824 * modified pam_group to add to the getgroups() list rather than overwrite
825   it. [In the case of "HAVE_LIBPWDB" we use the pwdb_..() calls to
826   translate the group names.]. Module now pays attention to
827   PAM_CRED_.. flag(!)
828
829 * identified and removed bugs in field reading code of pam_time and
830   (thus) pam_group.
831
832 * Cristian's patches to pam_listfile module, corresponding change to
833   documentation.
834
835 * I've discovered &ero; for sgml!
836   Added pam_time documentation to the admin guide.
837
838 * added manual pages: pam.8, pam_start.2(=pam_end.2),
839   pam_authenticate.2, pam_setcred.2, pam_strerror.2,
840   pam_open_session.2(=pam_close_session.2) and pam_chauthtok.2 .
841
842 * added new modules:
843
844         - pam_mail (tells the user if they have any new mail
845           and sets their MAIL env variable)
846         - pam_lastlog (reports on the last time this user called
847           this module)
848
849 * new module hooks provided.
850
851 * added a timeout feature to the conversation function in
852   libpam_misc. Documented it in the application developers' guide.
853
854 * fixed bug in pam_misc_paste_env() function..
855
856 * slight modifications to wheel and rhosts writeup.
857
858 * more security issues added to module and application guides.
859
860 --
861 Things present but not mentioned in previous release (sorry)
862
863 * pam_pwdb module now resets the "last_change" entry before updating a
864   password.
865 --
866
867 Sat Nov 30 19:30:20 PST 1996, Andrew Morgan <morgan@parc.power.net>
868
869 * added environment handling to libpam. involved change to _pam_types.h
870   also added supplementary functions to libpam_misc
871
872 * added pam_radius - Cristian
873
874 * slight speed up for pam_rhosts
875
876 * significantly enhanced sys-admin documentation (8 p -> 41 p in
877   PostScript). Added to other documentation too.  Mostly the changes
878   in the other docs concern the new PAM-environment support, there is
879   also some coverage of libpam_misc in the App. Developers' guide.
880
881 * Cristian's patches to pam_limits and pam_pwdb. Fixing bugs. (MORE added)
882   
883 * adopted Cristian's _pam_macros.h file to help with common macros and
884   debugging stuff, gone through tree tidying up debugging lines to use
885   this [not complete].
886
887         - for consistency replaced DROP() with _pam_drop()
888
889 * commented memory debugging in top level makefile
890
891 * added the following modules
892
893     - pam_warn  log information to syslog(3) about service application
894     - pam_ftp   if user is 'ftp' then set PAM_RUSER/PAM_RHOST with password
895     (comment about nologin added to last release's notes)
896
897 * modified the pam_listfile module. It now declares a meaningful static
898   structure name.
899
900 Sun Nov 10 13:26:39 PST 1996, Andrew Morgan <morgan@parc.power.net>
901
902                 **PLEASE *RE*AMEND YOUR PERSONAL LINKS**
903
904   ------->  http://parc.power.net/morgan/Linux-PAM/index.html  <-------
905
906                 **PLEASE *RE*AMEND YOUR PERSONAL LINKS**
907
908 A brief summary of what has changed:
909
910 * many modules have been modified to accomodate fixing the pam_get_user()
911   change. Please take note if you have a module in this distribution.
912
913 * pam_unix is now the pam_unix that Red Hat has been using and which
914   should be fairly well debugged.
915
916    - I've added some #ifdef's to make it compile for me, and also
917      updated it with respect to the libpam-0.53, so have a look at the
918      .../modules/pam_unix/Makefile to enable cracklib and shadow features
919
920         ** BECAUSE OF THIS, I cannot guarantee this code works as it **
921         ** did for Red Hat. Please test and report any problems.     **
922
923 * the pam_unix of .52 (renamed to pam_pwdb) has been enhanced and made
924   more flexible with by implementing it with respect to the new
925   "Password Database Library" see
926
927         http://parc.power.net/morgan/libpwdb/index.html
928
929   modules included in this release that require this library to
930   function are the following:
931
932         - pam_pwdb (ne pam_unix-0.52 + some enhancements)
933         - pam_wheel
934         - pam_limits
935         - pam_nologin
936
937 * Added some optional code for memory debugging. In order to support
938   this you have to enable MEMORY_DEBUG in the top level makefile and
939   also #define MEMORY_DEBUG in your applications when they are compiled.
940   The extra code resides in libpam (compiled if MEMORY_DEBUG is defined)
941   and the macros for malloc etc. are to be found at the end of
942   _pam_types.h
943
944 * used above code to locate two memory leaks in pam_unix module and two
945   in libpam (pam_handlers.h)
946
947 * pam_get_user() now sets the PAM_USER item. After reading the Sun
948   manual page again, it was clear that it should do this. Various
949   modules have been assuming this and now I have modified most of them
950   to account for this change. Additionally, pam_get_user() is now
951   located in the module include file; modules are supposed to be the
952   ones that use it(!) [Note, this is explicitly contrary to the Sun
953   manual page, but in the spirit of the Linux distribution to date.]
954
955 * replaced -D"LINUX" with -D"LINUX_PAM" as this is more explicit and less
956   likely to be confused with -D"linux".
957   Also, modified the libpam #include files to behave more like the Sun
958   ones #ifndef LINUX_PAM.
959
960 * removed <bf/ .. / from documentation titles. This was not giving
961   politically correct html..
962  
963 ----- My vvvvvvvvvvvvvvvvvvv was a long time ago ;*] -----
964
965 Wed Sep  4 23:57:19 PDT 1996 (Andrew Morgan <morgan@physics.ucla.edu>
966
967 0. Before I begin, Linux-PAM has a new primary distribution site (kindly
968 donated by Power Net Inc., Los Angeles)
969
970                 **PLEASE AMMEND YOUR PERSONAL LINKS**
971
972       ------->  http://www.power.net/morgan/Linux-PAM  <-------
973
974                 **PLEASE AMMEND YOUR PERSONAL LINKS**
975
976 1. I'm hoping to make the next release a bug-fix release... So please find
977    all the bugs(! ;^)
978
979 2. here are the changes for .52:
980
981 * minor changes to module documentation [Incidently, it is now
982   available on-line from the WWW page above]. More changes to follow in
983   the next two releases. PLEASE EMAIL me or the list if there is
984   anything that isn't clear!
985
986 * completely changed the unix module. Now a single module for all four
987   management groups (this meant that I could define all functions as
988   static that were not part of the pam_sm_... scheme. AGM)
989
990   - Shadow support added
991 PASSWD  - Elliot's account management included, and enhanced by Cristian Gafton.
992   - MD5 password support added by Cristian Gafton.
993   - maxtries for authentication now enforced.
994   - Password changing function in pam_unix now works!
995     Although obviously, I'm not going to *guarantee* it ;^) .
996   - stole Marek's locking code from the Red Hat unix module.
997     [ If you like you can #ifdef it in or out ... ]
998
999     You can configure the module more from its Makefile in
1000     0.52/modules/pam_unix/
1001
1002     If you are nervous that it will destroy your /etc/passwd or shadow
1003     files then EDIT the 0.52/modules/pam_unix/pam_unix_pass.-c file.
1004     Here is the warning comment from this file...
1005
1006 -------------8<-----------------
1007 /*                           <WARNING>
1008  *
1009  * Uncomment the following #define if you are paranoid, and do not
1010  * want to risk losing your /etc/passwd or shadow files.
1011  * It works for me (AGM) but there are no guarantees.
1012  *
1013  *                          </WARNING>
1014  */
1015 /* #define TMP__FILE */
1016 ------------->8-----------------
1017
1018   *** If anyone has any trouble, please *say*. Your problem will be
1019       fixed in the next release. Also please feel free to scour the
1020       code for race conditions etc... 
1021
1022 [* The above change requires that you purge your /usr/lib/security
1023    directory of the old pam_unix_XXX.so modules: they will NOT be deleted
1024    with a 'make remove'.]
1025
1026 * the prototype for the cleanup function supplied to pam_set_data used
1027   to return "int". According to Sun it should be "void". CHANGED.
1028
1029 * added some definitions for the 'error_status' mask values that are
1030   passed to the cleanup function associated with each
1031   module-data-item. These numbers were needed to keep up with changing
1032   a data item (see for example the code in pam_unix/support.-c that
1033   manages the maximum number of retries so far). Will see what Sun says
1034   (current indications are positive); this may be undone before 1.0 is
1035   released.  Here are the definitions (from pam_modules.h).
1036
1037 #define PAM_DATA_SILENT    0x40000000     /* used to suppress messages... */
1038 #define PAM_DATA_REPLACE   0x20000000     /* used when replacing a data item */
1039
1040 * Changed the .../conf/pam.conf file. It now points to the new
1041   pam_unix module for 'su' and 'passwd' [can get these as SimpleApps --
1042   I use them for testing. A more extensive selection of applications is
1043   available from Red Hat...]
1044
1045 * corrected a bug in pam_dispatch. Basically, the problem was that if
1046   all the modules were "sufficient" then the return value for this
1047   function was never set. The net effect was that _pam_dispatch_aux
1048   returned success when all the sufficient modules failed. :^( I think
1049   this is the correct fix to a problem that the Red Hat folks had
1050   found...
1051
1052 sopwith* Removed advisory locking from libpam (thanks for the POSIX patch
1053   goes to Josh Wilmes's, my apologies for not using it in the
1054   end.). Advisory locking did not seem sufficiently secure for libpam.
1055   Thanks to Werner Almesberger for identifying the corresponding "denial
1056   of service attack". :*(
1057
1058 * related to fix, have introduced a lock file /var/lock/subsys/PAM
1059   that can be used to indicate the system should pay attention to
1060   advisory locking on /etc/pam.conf file. To implement this you need to
1061   define PAM_LOCKING though. (see .52/libpam)
1062
1063 * modified pam_fail_delay() function. Couldn't find the "not working"
1064   problem indicated by Michael, but modified it to do pseudo-random
1065   delays based on the values indicated by pam_fail_delay() -- the
1066   function "that may eventually go away"... Although Sun is warming to
1067   the idea.
1068
1069 * new modules include:
1070
1071         pam_shells    - authentication for users with a shell listed in
1072                         /etc/shells. Erik Troan <ewt@redhat.com>
1073
1074         pam_listfile  - authentication based on the contents of files.
1075                         Set to be more general than the above in the
1076                         future. UNTESTED. Elliot Lee <@redhat.com>
1077                         [Note, this module compiles with a non-trivial
1078                         warning: AGM]
1079
1080 Thu Aug  8 22:32:15 PDT 1996 (Andrew Morgan <morgan@physics.ucla.edu>)
1081
1082 * modified makefiles to take more of their installation instructions
1083   from the top level makefile. Desired for integration into the Debian
1084   distribution, and generally a good idea.
1085
1086 * fixed memory arithmetic in pam_handlers
1087   -- still need to track down why failure to load modules can lead to
1088   authentication succeding..
1089
1090 * added tags for new modules (smartcards from Alex -- just a promise
1091   at this stage) and a new module from Elliot Lee; pam_securetty
1092
1093 * I have not had time to smooth out the wrinkles with it, but Alex's
1094   pam_unix modifications are provided in pam_unix-alex (in the modules
1095   directory) they will not be compiled by 'make all' and I can't even
1096   say if they do compile... I will try to look at them for .52 but, in
1097   the mean time please feel free to study/fix/discuss what is there.
1098
1099 * pam_rhosts module. Removed code for manually setting the ruser
1100   etc. This was not very secure.
1101
1102 * [remade .ps docs to be in letter format -- my printer complains
1103   about a4]
1104
1105 Sunday July, 7 12:45:00 PST 1996 (Andrew Morgan <morgan@physics.ucla.edu>)
1106
1107 * No longer accompanying the Linux-PAM release with apps installed.
1108   [Will provide what was here in a separate package.. (soon)
1109 lib   Also see http://www.redhat.com/pam for some more (in .rpm form...)]
1110
1111 * renamed libmisc to libpam_misc. It is currently configured to only compile
1112   the static library. For some strange reason (perhaps someone can
1113   investigate) my Linux 2.0.0 kernel with RedHat 3.0.3 system
1114   segfaults when I compile it to be a dynamic library. The segfault
1115   seems to be inside the call to the ** dl_XXX ** function...!?
1116
1117   There is a simple flag in the libpam_misc/Makefile to turn on dynamic
1118   compiles.
1119
1120 * Added a little unofficial code for delay support in libpam (will probably
1121   disappear later..) There is some documentation for it in the pam_modules
1122   doc now. That will obviously go too.
1123
1124 * rewritten pam_time to use *logic* to specify the stringing together of
1125   users/times/terminals etc.. (what was there before was superficially
1126   logical but basically un-predictable!)
1127
1128 * added pam_group. Its syntax is almost identical to pam_time but it
1129   has another field added; a list of groups to make the user a member
1130   of if they pass the previous tests. It seems to not co-exist too well
1131   with the groups in the /etc/group but I hope to have that fixed by
1132   the next release...
1133
1134 * minor re-formatting of pam_modules documentation
1135
1136 * removed ...// since it wasn't being used and didn't look like it
1137   would be!
1138
1139 GCCSunday 23 22:35:00 PST 1996   (Andrew Morgan <morgan@physics.ucla.edu>)
1140
1141 * The major change is the addition of a new module: pam_time for
1142   restricting access on terminals at given times for indicated users
1143   it comes with its own configuration file /etc/security/time.conf
1144   and the sample file simply restricts 'you' from satisfying the blank
1145   application if they try to use blank from any tty*
1146
1147 * Small changes include
1148 - altered pam.conf to demonstrate above new module (try typing username: you)
1149 - very minor changes to the docs (pam_appl and pam_modules)
1150
1151 Saturday June 2 01:40:00 PST 1996  (Andrew Morgan <morgan@physics.ucla.edu>)
1152
1153 *** PLEASE READ THE README, it has changed ***
1154
1155 * NOTE, 'su' exhibits a "system error", when static linking is
1156   used. This is because the pam_unix_... module currently only has
1157   partial static linking support. This is likely to change on Monday
1158   June 3, when Alex makes his latest version availible. I will include
1159   the updated module in next release.
1160
1161 changes for .42:
1162
1163 * modified the way in which libpam/pam_modules.h defines prototypes for
1164   the pam_sm_ functions. Now the module must declare which functions it
1165   is to provide *before* the #include <security/pam_modules.h> line.
1166   (for contrasting examples, see the pam_deny and pam_rootok modules)
1167   This removed the ugly hack of defining functions that are never called
1168   to overcome  warnings... This seems much tidier.
1169 insterted* updated the TODO list. (changed mailing list address)
1170 * updated README in .../modules to reflect modifications to static
1171   compliation protocol
1172 * modified the pam_modules documentation to describe this.
1173 * corrected last argument of pam_get_item( ... ) in
1174   pam_appl/modules.sgml, to "const void **".
1175 * altered GNU GPL's in the documentation, and various other parts of
1176   the distribution. *Please check* that any code you are responsible for
1177   is corrected.
1178 * Added ./Copyright (please check that it is acceptable)
1179 * updated ./README to make current and indicate the new mailing list
1180   address
1181 * have completely rewritten pam_filter. It now runs modular filter
1182   executables (stored in /usr/sbin/pam_filter/) This should make it
1183   trivial for others to write their own filters.. If you want yours
1184   included in the distribution please email the list/me.
1185 * changes to libpam; there was a silly bug with multiple arguments on a
1186   pam.conf line that was broken with a '\<LF>'.
1187 * 'su' rearranged code (to make better use of PAM)
1188   *Also* now uses POSIX signals--this should help the Alpha port.
1189 * 'passwd' now uses getlogin() to determine who's passwords to change.
1190
1191 Sunday May 26 9:00:00 PST 1996 (Andrew Morgan <morgan@physics.ucla.edu>)
1192
1193 * fixed module makefiles to create needed dynamic/static subdirectories
1194
1195 Saturday May 25 20:30:27.8 PST 1996 (Andrew Morgan <morgan@physics.ucla.edu>)
1196
1197 * LOTS has changed regarding how the modules/libpam are built.
1198 *  Michael's mostly complete changes for static support--see below
1199   (Andrew got a little carried away and automated the static linking
1200   of modules---bugs are likely mine ;( )
1201 * Thanks mostly to Michael, libpam now compiles without a single warning :^]
1202 * made static modules/library optional.
1203 CFLAGS* added 'make sterile' to top level makefile. This does extraclean and remove
1204 * added Michael and Joseph to documentation credits (and a subsection for
1205   future documentation of static module support in pam_modules.sgml)
1206 * libpam; many changes to makefiles and also automated the inclusion of
1207   static module objects in pam_static.c
1208 * modified modules for automated static/dynamic support. Added static & 
1209   dynamic subdirectories, as instructed by Michael
1210 * removed an annoying syslog message from pam_filter: "parent exited.."
1211 * updated todo list (anyone know anything about svgalib/X? we probably should
1212   have some support for these...)
1213
1214 Friday May 24 16:30:15 EDT 1996 (Michael K. Johnson <johnsonm@redhat.com>)
1215
1216 * Added first (incomplete) cut at static support.
1217   This includes:
1218    . changes in libpam, including a new file, pam_static.c
1219    . changes to modules including exporting struct of function pointers
1220    . static and dynamic linking can be combined
1221    . right now, the only working combinations are just dynamic
1222      linking and dynamic libpam.so with static modules linked
1223      into libpam.so.  That's on the list of things to fix...
1224    . modules are built differently depending on whether they
1225      are static or dynamic.  Therefore, there are two directories
1226      under each module directory, one for static, and one for
1227      dynamic modules.
1228 * Fixed random brokenness in the Makefiles.  [ foo -nt bar ] is
1229   rather redundant in a makefile, for instance.  Also, passing
1230    on the command line is broken because it cannot be
1231   overridden in any way (even adding important parts) in lower-level
1232   makefiles.
1233 * Unfortunately, fixing some of the brokenness meant that I used
1234   GNU-specific stuff.  However, I *think* that there was GNU-specific
1235   stuff already.  And I think that we should just use the GNU
1236   extensions, because any platform that GNU make doesn't port to
1237   easily will be hard to port to anyway.  It also won't be likely
1238 passwd  to handle autoconf, which was Ted's suggestion for getting
1239   around limitations in standard make...
1240   For now, I suggest that we just use some simple GNU-specific
1241   extensions.
1242
1243 Monday May 20 22:00:00 PST 1996 (Andrew Morgan <morgan@physics.ucla.edu>)
1244
1245 * added some text to pam_modules.sgml
1246 * corrected Marek's name in all documentation
1247 * made pam_stress conform to chauthtok conventions -- ie can now request
1248   old password before proceeding.
1249 * included Alex's latest unix module
1250 * included Al's + password strength checking module
1251 * included pam_rootok module
1252 * fixed too many bugs in libpam.. all subtly related to the argument lists
1253   or use of syslog. Added more debugging lines here too.
1254 * fixed the pam.conf file
1255 * deleted pam_test module. It is pretty old and basically superceeded
1256   by pam_stress
1257
1258 Friday May 9 1:00:00 PST 1996 (Andrew Morgan <morgan@physics.ucla.edu>)
1259
1260 * updated documentaion, added Al Longyear to credits and corrected the
1261   spelling of Jeff's name(!). Most changes to pam.sgml (even added a figure!)
1262 * new module pam_rhosts_auth (from Al Longyear)
1263 * new apps rlogind and ftpd (a patch) from Al.
1264 * modified 'passwd' to not call pam_authenticate (note, none of the
1265   modules respect this convention yet!)
1266 * fixed bug in libpam that caused trouble if the last line of a
1267   pam.conf file ends with a module name and no newline character
1268 * also made more compatable with documentation, in that bad lines in
1269   pam.conf are now ignored rather than causing libpam to return an
1270   error to the app.
1271 * libpam now overwrites the AUTHTOKs when returning from
1272   pam_authenticate and pam_chauthtok calls (as per Sun/RFC too)
1273 * libpam is now installed as libpam.so.XXX in a way that ldconfig can
1274   handle!
1275
1276
1277 Wednesday May 1 22:00:00 PST 1996 (Andrew Morgan <morgan@physics.ucla.edu>)
1278
1279 * removed .../test directory, use .../examples from now on.
1280 * added .../apps directory for fully functional applications
1281   - the apps directory contains directories that actually contain the apps.
1282     the idea is to make application compilation conditional on the presence
1283     of the directory. Note, there are entries in the Makefile for
1284     'login' and 'ftpd' that are ready for installation... Email me if
1285     you want to reserve a directory name for an application you are
1286     working on...
1287 * similar changes to .../modules makefile [entries for pam_skey and
1288   pam_kerberos created---awaiting the directories.] Email me if you
1289   want to register another module...
1290 * minor changes to docs.. Not really worth reprinting them quite yet!
1291   [save the trees]
1292 * added misc_conv to libmisc. it is a generic conversation function
1293   for text based applications. [would be nice to see someone create
1294   an Xlib and/or svgalib version]
1295 * fixed ctrl-z/c bug with pam_filter module [try xsh with the default
1296   pam.conf file]
1297 * added 'required' argument to 'pam_stress' module.
1298 * added a TODO list... other suggestions to the list please.
1299
1300 Saturday April 7 00:00:00 PST 1996 ( Andrew Morgan <morgan@physics.ucla.edu> )
1301
1302 * Alex and Marek please note I have altered _pam_auth_unix a little, to
1303   make it get the passwords with the "proper method" (and also fixed it
1304   to not have as many compiler warnings)
1305 * updated the conf/pam.conf file
1306 * added new example application examples/xsh.c (like blank but invokes
1307   /bin/sh)
1308 * Marc's patches for examples/blank.c (and AGM's too)
1309 * fixed stacking of modules in libpam/pam_handlers.c
1310 * fixed RESETing in libpam/pam_item.c
1311 * added new module modules/pam_filter/ to demonstrate the possibility
1312   of inserting an arbitrary filter between the terminal and the
1313   application that could do customized logging etc... (see use of
1314   bin/xsh as defined in conf/pam.conf)
1315
1316
1317 Saturday March 16 19:00:00 PST 1996 ( Andrew Morgan <morgan@physics.ucla.edu> )
1318
1319 These notes are for 0.3 I don't think I've left anything important
1320 out, but I will use emacs 'C-x v a' next time! (Thanks Jeff)
1321
1322         * not much has changed with the functionality of the Linux-PAM lib
1323           .../libpam
1324                 - pam_password calls module twice with different arguments
1325                 - added const to some of the function arguments
1326                 - added PAM_MAX_MES_ to <security/_pam_types.h>
1327                 - was a lot over zealous about purging old passwords...
1328                   I have removed much of this from source to make it
1329                   more compatible with SUN.
1330                 - moved some PAM_... tokens to pam_modules.h from _pam_types.h
1331                   (no-one should notice)
1332
1333         * added three modules: pam_permit pam_deny pam_stress
1334           no prizes for guessing what the first two do. The third is
1335           a reasonably complete (functional) module. Is intended for testing
1336           applications with.
1337
1338         * fixed a few pieces of examples/blank.c so that it works (with
1339           pam_stress)
1340
1341         * ammended the documentation. Looking better, but suggestions/comments
1342           very welcome!
1343
1344 Sunday March 10 10:50:00 PST 1996 ( Andrew Morgan <morgan@physics.ucla.edu> )
1345
1346 These notes are for Linux-PAM release 0.21.  They cover what's changed
1347 since I relased 0.2.
1348
1349         * am now using RCS
1350         * substantially changed ./README
1351         * fixed bug reading \\\n in pam.conf file
1352         * small changes to documentation
1353         * added `blank' application to ./examples (could be viewed as
1354           a `Linux-PAM aware' application template.)
1355         * oops. now including pam_passwd.o and pam_session.o in pamlib.so
1356         * compute md5 checksums for all the source when making a release
1357             - added `make check' and `make RCScheck' to compute md5 checksums
1358         * create a second tar file with all the RCS files in.
1359         * removed the .html and .txt docs, supplying sgml sources instead.
1360             - see README for info on where to get .ps files
1361
1362 Thursday March 6 0:44:?? PST 1996 ( Andrew Morgan <morgan@physics.ucla.edu> )
1363
1364 These notes are for Linux-PAM release 0.2.  They cover what's changed
1365 since Marc Ewing relased 0.1.
1366
1367 **** Please note. All of the directories in this release have been modified
1368 **** slightly to conform to the new pamlib. A couple of new directories have
1369 **** been added. As well as some documentation. If some of your code
1370 **** was in the previous release. Feel free to update it, but please
1371 **** try to conform to the new headers and Makefiles.
1372
1373 * Andrew Morgan (morgan@physics.ucla.edu) is making this release
1374  availible, Marc has been busy...!
1375
1376 * Marc's pam-0.1/lib has been (quietly) enhanced and integrated into
1377  Alex Yurie's collected tree of library and module code
1378  (linux-pam.prop.1.tar.gz). Most of the changes are to do with error
1379  checking. Some more robustness in the reading of the pam.conf file
1380  and the addition of the pam_get_user() function.
1381
1382 * The pam_*.h files have been reorganized to logically enforce the
1383  separation of modules from applications. [Don't panic! Apart from
1384  changing references of the form
1385
1386         #include "pam_appl.h"
1387
1388  to
1389
1390         #include <security/pam_appl.h>
1391
1392  The reorganization should be backwardly compatable (ie. a module
1393  written for SUN will be as compatable as it was before with the
1394  previous version ;)~ ]
1395
1396  (All of the source in this tree now conforms to this scheme...)
1397
1398  The new reorganization means that modules can be compiled with a
1399  single header, <security/pam_modules.h>, and applications with
1400  <security/pam_appl.h>.
1401
1402 * I have tried to remove all the compiler warnings from the updated
1403  "pamlib/*.c" files. On my system, (with a slightly modified <dlfcn.h>
1404  email me if it interests you..) there are only two warnings that
1405  remain: they are that ansi does not permit void --> fn ptr
1406  assignment. K&Rv2 doesn't mention this....? As a matter of principle,
1407  if anyone knows how to get rid of that warning... please
1408  tell. Thanks! "-pedantic"
1409
1410 * you can "make all" as a plain user, but
1411
1412 * to "make install" you must be root. The include files are placed in
1413  /usr/include/security. The libpam.so library is installed in /usr/lib
1414  and the modules in /usr/lib/security. The two test binaries
1415  are installed in the Linux-PAM-0.2/bin directory and a chance is given to
1416  replace your /etc/pam.conf file with the one in Linux-PAM-0.2/conf.
1417
1418 * I have included some documentation (pretty preliminary at the
1419 moment) which I have been working on in .../doc .
1420
1421 I have had a little trouble with the modules, but atleast there are no
1422 segfaults! Please try it out and discuss your results... I actually
1423 hope it all works for you. But, Email any bugs/suggestions to the
1424 Linux-PAM list: linux-pam@mit.edu .....
1425
1426 Regards,
1427
1428 Andrew Morgan
1429 (morgan@physics.ucla.edu)
1430
1431
1432 Sat Feb 17 17:30:24 EST 1996 (Alexander O. Yuriev alex@bach.cis.temple.edu)
1433
1434         * conf directory created with example of pam_conf
1435         * stable code from pam_unix is added to modules/pam_unix
1436         * test/test.c now requests username and password and attempts
1437           to perform authentication
1438