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