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