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