4 -----------------------------
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 - document PAM_INCOMPLETE changes
13 - verify that the PAM_INCOMPLETE interface is sensible. Can we
14 catch errors? should we permit item changing etc., between
15 pam_authenticate re-invocations?
16 - verify that the PAM_INCOMPLETE interface works (auth seems ok..)
17 - add PAM_INCOMPLETE support to modules (partially added to pam_pwdb)
19 - auth and acct support in pam_cracklib, "yes, I know the password
20 you just typed was valid, I just don't think it was very strong..."
22 ====================================================================
24 If you have found a bug in Linux-PAM (including a documentation bug,
25 or a new feature request and/or patch), please consider filing such a
26 bug report - outstanding bugs are listed here:
28 http://sourceforge.net/tracker/?atid=106663&group_id=6663&func=browse
30 (to file another bug see the 'submit bug' button on that page).
32 ====================================================================
34 0.81: please submit patches for this section with actual code/doc
36 * pam_umask: New module for setting umask from GECOS field, /etc/login.defs
37 or /etc/default/login (kukuk)
38 * configure/pam_strerror: Remove old ugly-hack option for pam_strerror
39 interface change (kukuk)
40 * configure.in: Fix AC_DEFINE usage for autoheader (kukuk)
41 * configure.in/_pam_aconf.h.in: Remove feature.h inclusion (kukuk)
42 * defs: Remove obsolete directory/content (kukuk)
43 * Rename _pam_aconf.h.in to config.h (kukuk)
44 * pam_unix: Don't ignore pam_get_item return value (kukuk)
45 * pam_userdb: Fix regression - crash when crypt param not specified (t8m)
46 * libpam: Remove pam_authenticate_secondary stub (kukuk)
47 * Use autoconf/automake/libtool (kukuk)
48 * pam_securetty: Be fail-close on user lookups, always log failures,
49 not just with "debug" (Solar Designer)
51 * Add translations for cs, de, es, fr, hu, it, ja, nb, pa, pt_BR,
53 * pam_limits: Apply ALT Linux/Owl patch
54 * pam_motd: Apply ALT Linux/Owl patch
55 * libpam: Cache pam_get_user() failures
56 * libpam: Add pam_prompt,pam_vprompt,pam_error,pam_verror,pam_info
57 and pam_vinfo functions for use by modules as extension (kukuk).
58 * pam_cracklib: Make path to cracklib dicts an option (kukuk).
59 * libpam: Add pam_syslog function for unified syslog messages from
61 * pam_tally, pam_time, pam_userdb: use pam_syslog and pam_prompt (ldv)
62 * pam_issue: major cleanup (ldv)
63 * pam_echo: New PAM module for message output (kukuk)
64 * pam_limits: Fix regression from RLIMIT_NICE support (wrong limit
65 values for other limits are applied) patch by Anton Guda
66 * pam_unix: Always honor nis flag on password change (by Aaron Hope)
67 * libpam: Moved functions from pammodutil to libpam (t8m)
68 * pam_lastlog: Cleanup, fix broken logic in pam_parse,
69 modify wtmp by default, nowtmp option switches that off (ldv)
71 0.80: Wed Jul 13 13:23:20 CEST 2005
72 * pam_tally: test for NULL data before dereferencing them (t8m)
73 * pam_unix: fix regression introduced in 0.78 - both NIS and local password
74 should be changed if possible (t8m)
75 * misc_conv: flush input first then print the prompt - fixes problem
76 with expect scripts (t8m)
77 * pam_unix: nis option shouldn't clear the shadow option (t8m)
78 * cleanups and minor bugfixes by Steve Grubb (t8m)
79 * pam_private.h: set PAM_DEFAULT_PROMPT to "login: " (kukuk)
80 * pam_mkhomedir: Create parent directories if they do not already
81 exist (Bug 600351 - kukuk)
82 * pam_mkhomedir: Set owner/permissions of home directory after we
83 created all files (Bug 1032922 - kukuk)
84 * pam_rhosts: Get rid of static buffer for path (kukuk)
85 * pam_selinux/pam_unix/pam_rootok: Add SELinux support based on
86 patch from Red Hat (kukuk)
87 * pam_limits: Correct support of unlimited limits, use correct type
88 for rlimit value (Bug 945449 - kukuk, t8m)
89 * pam_xauth: Unset the XAUTHORITY variable when requesting user is
90 root and target user is not (t8m)
91 * pam_access: Add listsep option to set list element separator by
93 * pam_limits: Don't reset process priority if none is specified in
94 the config file (Novell #81690 - kukuk)
95 * Fix all occurrence of dereferencing type-punned pointer will break
96 strict-aliasing rules warnings (kukuk)
97 * pam_limits: Support new limits in linux 2.6.12 (t8m)
98 * pam_mkhomedir: change mode datatype (toady)
99 * pam_limits: Don't lowercase login names (kukuk)
101 0.79: Thu Mar 31 16:48:45 CEST 2005
102 * pam_tally: added audit option (toady)
103 * pam_unix: don't log user unknown failure when he can be properly
104 authenticated by another module (t8m)
105 * configure: don't abort if no cracklib dictinaries were found, but
106 warn user that pam_cracklib will not be built (kukuk)
107 * modules/pam_unix/support.c: Fix return value if user aborts while
108 changes the password (Bug 872945 - kukuk)
109 * modules/pam_unix/support.c: Fix return value for an unknown user
111 * pam_limits: support for new Linux kernel 2.6 limits (from toby cabot
113 * pam_tally: major rewrite of the module (t8m)
114 * libpam: don't return PAM_IGNORE for OK or JUMP actions if using
115 cached chain (Bug 629251 - t8m)
116 * pam_nologin: don't overwrite return value with return from
118 * libpam: Add more checks for broken PAM configuration files to
119 avoid seg.faults (kukuk)
120 * pam_shells: correct README
121 * libpam: Fix debug code (kukuk)
122 * pam_limits: Fix order of LIMITS_DEF_* priorities (kukuk)
123 * pam_xauth: preserve DISPLAY variable (Novell #66885 - kukuk)
124 * libpam: Add prelude ids (http://www.prelude-ids.org) support,
125 as experimental. (toady)
126 * configure: Add the directory where new versions of cracklib is
127 installed (from Jim Gifford - toady)
128 * libpamc: Use standard u_intX_t types instead of __uX (kukuk)
130 0.78: Do Nov 18 14:48:36 CET 2004
132 * pam_unix: change the order of trying password changes - local first,
134 * pam_wheel: add option only_root to make it affect authentication
136 * pam_unix: test return values on renaming files and report error to
138 * pam_unix: forced password change shouldn't trump account expiration
139 * pam_unix: remove the use of openlog (from debian - toady)
140 * pam_unix: NIS cleanup (patch from Philippe Troin)
141 * pam_access: you can now authenticate an explicit user on an explicit
142 tty (from debian - toady)
143 * pam_limits, pam_rhosts, pam_unix: fixed hurd portability issues
144 (patch from Igor Khavkine)
145 * pam_env: added comments in the configuration file to avoid errors
146 (from debian - toady)
147 * pam_mail: check PAM_NO_ENV to know if we can delete the environment
148 variable (from debian - toady)
149 * pam_filter: s/termio/termios/g (from debian - toady)
150 * pam_mkhomedir: no maxpathlen required (from debian - toady)
151 * pam_limits: applied patch to allow explicit limits for root
152 and remove limits on su. (from debian - toady)
153 * pam_unix: severe denial of service possible with this module since
154 it locked too aggressively. Bug report and testing help from Sascha
155 Loetz. (Bug 664290 - agmorgan)
156 * getlogin was spoofable: "/tmp/" and "/dev/" have the same number of
157 characters, so 'ln /dev/tty /tmp/tty1 ; bash < /tmp/tty1 ; logname'
158 attacks could potentially spoof pam_wheel with the 'trust' module
159 argument into granting access to a luser. Also, pam_unix gave
160 odd error messages in such a situation (logname != uid). This
161 problem was found by David Endler of iDefense.com (Bug 667584 -
163 * added my new DSA public key to the pgp.keys.asc file. Also included
164 a signed copy of my new public key (1024D/D41A6DF2) made with my old
166 * added "include" directive to config file syntax.
167 The whole idea is to create few "systemwide" pam configs and include
168 parts of them in application pam configs.
169 (patch by "Dmitry V. Levin" <ldv@altlinux.org>) (Bug 812567 - baggins).
170 * doc/modules/pam_mkhomedir.sgml: Remove wrong debug options
172 * pam_unix: Call password checking helper whenever the password field
173 contains only one character (Bug 1027903 - kukuk)
174 * libpam/pam_start.c: All service names should be files below /etc/pam.d
175 and nothing else. Forbid paths. (Bug 1027912 - kukuk)
176 * pam_cracklib: Fix error in distance algorithm in the 0.9 pam_cracklib
177 module (Bug 1010142 - toady)
178 * pam_userdb: applied patch from Paul Walmsley <paul@booyaka.com>
179 it now indicates whether encrypted or plaintext passwords are stored
180 in the database needed for pam_userdb (BerliOS - toady)
181 * pam_group: The module should also ignore PAM_REINITIALIZE_CRED to
182 avoid spurious errors (from Linux distributors - kukuk)
183 * pam_cracklib: Clear the entire options structure (from Linux
184 distributors - kukuk)
185 * pam_issue: We write a NUL to prompt_tmp[tot_size] later, so make sure
186 that the destination is part of the allocated block, make do_prompt
187 static (from Linux distributors - kukuk)
188 * ldconfig: Only run full ldconfig, if we don't install into a FAKEROOT
189 environment, else let ldconfig only create the symlinks correct
190 (from Linux distributors - kukuk)
191 * pam_unix/pam_pwdb: Use SIG_DFL instead of SIG_IGN for SIGCHLD
192 (from Linux distributors - kukuk)
193 * Add most of Steve Grubb's resource leak and other fixes (from
194 Linux distributors - kukuk)
195 * doc/Makefile: Don't include .cvsignore files in tar ball (kukuk)
196 * libpam_misc/misc_conv.c: Differentiate between Ctrl-D and
197 <Return> (Bug 1032604 - kukuk)
198 * Make.Rules.in: Add targets for installing man pages for modules
199 (from Linux distributors - kukuk)
200 * Add pam_xauth module (Bug 436440 - kukuk)
201 * Add pam_localuser module (Bug 436444 - kukuk)
202 * Add pam_succeed_if module (from Linux distributors - kukuk)
203 * configure.in: Fix check for libcrypt (Bug 417704 - kukuk)
204 * Add the "broken_shadow" argument to pam_unix, for ignoring errors
205 reading shadow information (from Linux distributors - kukuk)
206 * Add patches to make PAM modules reentrant (Bug 440107 - kukuk)
207 * Merge patches from Red Hat (Bug 477000 and other - kukuk)
208 * Fix pam_rhosts option parsing (Bug 922648 - kukuk)
209 * Add $ISA support in config files (from Red Hat - kukuk)
211 0.77: Mon Sep 23 10:25:42 PDT 2002
213 * documentation support for pdf files was not quite right -
214 installation was messed up.
215 * pam_wheel was too aggressive to grant access (in the case of the
216 'deny' option you want to pay attention to 'trust'). Fix from
217 Nalin (Bugs 476951, 476953 - agmorgan)
218 * account management support for: pam_shells, pam_listfile, pam_wheel
219 and pam_securetty (+ static module fix for pam_nologin). Patch from
220 redhat through Harald Welte (Bug 436435 - agmorgan).
221 * pam_wheel feature from Nalin - can use the module to provide wheel
222 access to non-root accounts. Also from Nalin, a bugfix related to
223 the primary group of the applicant is the 'wheel' group. (Bugs
224 476980, 476941 - agmorgan)
225 * pam_unix and pam_pwdb: by default turn off the SIGCHLD handler while
226 running the helper binary (patch from Nalin) added the "noreap"
227 module argument to both of these modules to turn off this new
228 default. Bugfix found by Silvan Minghetti for former module and
229 521314 checkin. (Bugs 476963, 521314 - agmorgan).
230 * updated CHANGELOG and configure.in for 0.77 work.
232 0.76: Mon Jul 8 21:44:59 PDT 2002
234 * pam_unix: fix for legacy crypt() support when the password entered
235 was long. (Bug 521314 - agmorgan).
236 * pam_access no longer include gethostname() prototype complaint from
237 David Lee (Bug 415423 - agmorgan).
238 * make pam_nologin more secure by default, added two new module
239 arguments etc. - acting on suggestion from Nico (Bug 419307 -
241 * link in libpam to libpam_misc - since the latter uses functions in
242 the former it makes some sort of sense to do this (although, in the
243 static library case, I remain to be convinced). (Bug 565470 -
245 * absorbed some of the proposed darwin (OS X) changes from Luke Howard
246 (of PADL software) - hopefully will get the rest (see Rob Braun's
247 534205) by 0.77 (Bug 491466 - agmorgan).
248 * README fix for pam_unix from Nalin (Bug 476971 - agmorgan).
249 * add support for building pdf files from the documentation - request
250 from 'lolive' (Bug 471377 - agmorgan).
251 * documented the equivalent '[..]' expressions for "required"
252 etc. Request from Ross Patterson (Bug 529078 - agmorgan).
253 * '[...]' parsing: document it and also fix it to support '\]' escape
254 sequence. Feature request from Russell Kliese (Bug 517064 -
256 * pam_rootok: compilation warning noted by Tony den Haan wrt no
257 prototype for strcmp() (Bug 557322 - agmorgan).
258 * documentation: (a few of mine in passing) and app documentation
259 suggestions regarding PAM environment variables and module
260 documentation changes regarding the conversation function from Jenn
261 Vesperman (Bug 527821, 527965 - agmorgan)
262 * documentation: pam_time.sgml typo fixed, pam_motd exists now,
263 correct Red Hat comment about config files (Bugs 554274, 554261,
265 * pam_limits: added '%' domain for maxlogins limiting, now '*' and @group
266 have the old meaning (every) and '%' the new one (all)
267 (Bug 533664 - baggins)
268 * pam_limits: put not so interesting log messages under debug arg
269 (Bug 533668 - baggins)
270 * pam_access: added the 'fieldsep=' argument (Bug 547051 - agmorgan),
271 made a PAM_RHOST of "" equivalent to NULL (Bug 547521 - agmorgan).
272 * pam_limits: keep well know behaviour of maxlogins default ('*') limit
273 (Bug 533664 - baggins)
274 * pam_unix: more from Nalin log password changes (Bug 517743 - agmorgan)
275 * pam_limits: make it use the priority value specified in config
276 (bug 530428 - baggins)
277 * pam_unix: removed broken code in password update code. Report from
278 Len Lattanzi (Bug 507379 - agmorgan)
279 * pam_mkhomedir: recurse directories. Patch from Nalin (Bug 476981 -
281 * pam_limits can handle negative priority limits now (which can apply
282 to the superuser too) - based on patch from Nalin. Also cleanup the
283 error handling that was very sloppy before. Also, courtesy of Berend
284 De Schouwe get the math right on login counting (Bug 476990, 476987,
286 * documentation: random typo fixes from Nalin and more stuff from me
287 (Bug 476949, Tasks 43507, 17426 - agmorgan)
288 * A Tru64 fix (given other stuff has already resolved this, it
289 actually just a comment actually) from 'Eddie'. (Bug 418450 -
291 * pam_handlers: BSD fix from Dag-Erling Smørgrav and Anton Berezin
292 (Bug 486063 - agmorgan)
293 * added the dynamic/* directory to the distribution. If you go in
294 there after building the rest of the tree, you'll make a pam.so
295 object that can be used by something like a java runtime with
296 dlopen. Its not very well tested - caveat emptor. (Bug 232194 -
298 * somehow pam_unix has started forcing the user prompt to be "login: ".
299 This is entirely inapropriate as it overrides PAM_USER_PROMPT. (Bug
301 * added a static module helper library object includes a few changes
302 to examples/xsh.c for testing purposes (added a simple shell wrapper
303 for running xsh with the sandbox libraries), and also modified the
304 pam_rhosts_auth module to use this new library. (Bug 490938, 409852
306 * pam_unix: fix 'likeauth' to kill off the memory leak once and for all.
307 (Bug 483959 - vorlon)
308 * pam_unix: restore handling of 'likeauth' argument to a known working
309 state; prettify AUTH_RETURN macro; remove redundant argv checks in
310 pam_sm_setcred() (Bugs 483959, 113596 - vorlon)
311 * pam_cracklib: another try at implementing similar() from Harald
312 Welte and Nalin (Bugs 436053, 476957 - agmorgan)
313 * pam_access: default access.conf file contained a type (console
314 instead of LOCAL) fix from Nalin (Bug 476934 - agmorgan)
315 * pam_unix: fixed bizarre memory leak pointed out by Fernando Trias
316 (Bug 483959 - agmorgan)
317 * misc string comparison length checking changes from Nalin. Modules
318 touched, pam_cracklib, pam_listfile, pam_unix, pam_wheel (Bug 476947 -
320 * pam_userdb: require that all of typed password matches that in
321 database report and fix from Vladimir Pastukhov. (Bug 484252 - agmorgan)
322 * pam_malloc: revived malloc debugging code, now tied to
323 --enable-memory-debug and added strdup() support (Bug 485454 - agmorgan)
324 * pam_tally: Nalin's fix for lastlog corruption (Bug 476985 - agmorgan)
325 * pam_rhosts: Nalin adds support for '+hostname', and zdd fix
326 compilation warning. (Bug 476986 - agmorgan)
327 * pam_motd: Nalin fixed compiler warning. (Bug 476938 - agmorgan)
328 * pam_pwdb: Solar Designer pointed out that there was a problem with
329 the compatibility support for md5 password hashing. (Bug 460717,
331 * pam_issue: Nalin found segfaulting problems if the PAM_USER_PROMPT
332 is unset, found some similar problems with assumptions about
333 realloc. (Bug 476983 - agmorgan)
334 * pam_env: 'weichangyang of hotmail' pointed out a wild string with no
335 valid '\0' was leading to problems with sshd and suggested fix (Bug
337 * MANDIR cleanup. It defaults to /usr/share/man, but can be overridden
338 using the --enable-mandir ./configure option, similarly for DOCDIR
339 from Nalin (Bug 476940 - agmorgan)
340 * pam_filter cleanup (including moving the filter directory) Nalin
341 and Harald Welte (Bugs 436057, 476970 - agmorgan)
342 * db3 is now recognized as a libdb candidate (Bug 435764 - agmorgan)
343 * more changes (extracted from redhat version) courtesy of
344 Harald Welte (Bugs pam_limits=436061, pam_lastlog=436060,
345 pam_mkhomedir/pam_env=435991 - agmorgan)
346 * fix for legacy behavior of pam_setcred and pam_close_session in
347 the case that pam_authenticate and pam_open_session hadn't been
348 called - bug report from Seongwan Park. (Bug 468724 - agmorgan)
349 * some BSD updates and fixes from Mark Murray - including a slightly
350 more robust conversation function and some minimization of gcc
351 warnings. (Bugs 449203,463984 - agmorgan)
352 * verified that the setcred stack didn't suffer from the bug I was
353 nervous about, add a new module pam_debug to help me test this.
354 fixed a libpam/pam_dispatch.c instrumentation line that I tripped
355 over when testing. Also restructured pam_warn to help here (Bug
357 * pam_unix/support.c: sample use of reentrant NSS function. Not yet active,
358 because modules do not include _pam_aconf_h! (Bug 440107 - vorlon)
359 * doc/Makefile changes - use $(mandir) [courtesy Harald Welte] (Bug
360 435760) and add some rules to make/delete the draft rfc I've been
361 working on (Task 17426 - agmorgan)
362 * pam_modules.sgml: sourceforge has changed its CVS viewing software
363 (Bug 460491 - agmorgan)
364 * pam_unix_passwd: got rid of an annoying warning (Bug 461089 - agmorgan)
365 * configure.in, _pam_aconf.h.in: set the stage for fully reentrant PAM
366 modules, with some infrastructure to detect getxxbyxx_r() functions
367 (Bug 440107 - vorlon)
368 * pam_unix: removed superfluous use of static variables in md5 and bigcrypt
369 routines, bringing us a step closer to thread-safeness. Eliminated
370 some variable indirection along the way. (Bug 440107 - vorlon)
371 * pam_tally: remove #include of stdlib.h, which isn't needed by anything
372 found in this module. Can be readded if we find a real need for it at
373 a later date. (Bug 436432 - vorlon)
374 * pam_tally: added an #include (was it really needed?) and made the
375 pam_tally app install (with more pretty printing and a corrected
376 Makefile dependency) motivated by a (red hat diff) courtesy of Harald
377 Welte (Bug 436432 - agmorgan)
378 * configure.in changes to help support non-Linux environments courtesy
379 of Scott T. Emery (Bug 422563 - agmorgan)
380 * made a pam_cracklib enhancement to interpret -ve limits in a
381 sensible fashion contributed by Werner Puschitz (Bug 413162 -
383 * another fix for the latest number of rlimits available to pam_limits
384 (Bug 424060 - agmorgan)
385 * removed stale link from pam_pwdb documentation (Bug 433460 - agmorgan)
386 * pam_appl.sgml change - more discussion of choosing a service name
387 (Bug 417512 - agmorgan)
388 * more specific linking requirements for -lndbm for pam_userdb - from
389 David Lee (Bug 417339 - agmorgan)
390 * a large number of small changes to make AIX support better (Bug
392 * $(MAKE) instead of 'make' - from Scott T. Emery (Bug 422144 -
394 * c++ header fixes for pam_misc.h and pam_client.h - from Alexandre
395 Sagala (Bug 420270 - agmorgan)
396 * pam_access fixes - looks out for trailing '.' - from Carlo Marcelo
397 Arenas Belon (Bug 419631 - agmorgan)
398 * don't zero out password strings during pam_unix's password changing
399 function (Bug 419803 - vorlon)
400 * propagate some definitions to the _pam_aconf.h file - from David Lee
401 (Bug 415419 - agmorgan)
402 * solaris GCC OS_CFLAGS change from David Lee (Bug 415412 - agmorgan)
403 * added a comment to this CHANGELOG to explain why most of the bugids
404 used below appear not to be known to sourceforge [try adding 100000
405 to the bugid number.] (Bug 414943 - agmorgan)
406 * bumped version numbers and also added support for SONAME defines
407 that appear not to have survived the great autoconf experiment (Bug
410 0.75: Sat Apr 7 23:10:50 PDT 2001
414 This release contains backwardly incompatible changes to
415 libpam. Prior versions were buggy - see bugfix for Bug 129775.
419 * made 0.75 release (Bug 414665 - agmorgan)
420 * pam_pwdb has been removed from the suggested pam.conf template. I've
421 replaced it with pam_unix. (Bug 227565 - agmorgan)
422 * pam_limits - Richard M. Yumul reported that "<domain> -" didn't
423 work, first fix suggested by Werner Puschitz (Bug 404953 - agmorgan)
424 * Nicolay Pelov suggested a simple fix for freebsd support (Bug 407282
426 * Michel D'HOOGE submitted documentation fixes (Bug 408961 - agmorgan)
427 * fix for module linking directions (Bug 133545 - agmorgan)
428 * fix for glibc-2.2.2 compilation of pam_issue (Bug 133542 - agmorgan)
429 * fix pam_userdb to make and link both .o files it needs - converse()
430 wasn't being linked! (Bug 132880 - agmorgan)
431 * added some sys-admin documentation for the pam_tally module (Bug
433 * added a link to module examples from the module writers doc (Bug
435 * fixed a small security hole (more of a user confusion issue) with
436 the unix and pwdb password helper binaries. The beef is described in
437 the bug report, but no uid change was possible so no-one should
438 think they need to issue a security bulletin over this one! (Bug
440 * pam_lastlog needs to be linked with -lutil, also removed ambiguity
441 from sysadmin guide regarding this module being a 'session' module
442 (Bug 131549 - agmorgan).
443 * pam_cracklib needs to be linked with -lcrypt (old password checking)
444 (Bug 131601 - agmorgan).
445 * fixes for static library builds and also the examples when linked
446 with the debugging build of the libraries. (Bug 131783 - agmorgan)
447 * fixed URL for original RFC to a cached kernel.org file. (Bug 131503
449 * quoted the $CRACKLIB_DICTPATH test in configure.in (Bug 130130 -
451 * improved handling of the setcred/close_session and update chauthtok
452 stack. *Warning* This is a backwardly incompatable change, but 'more
453 sane' than before. (Bug 129775 - agmorgan)
454 * bumped the version number, and added some code to assist in making
455 documentation releases (Bug 129644 - agmorgan).
457 0.74: Sun Jan 21 22:36:08 PST 2001
459 * made 0.74 release (Bug 129642 - agmorgan)
460 * libpam - cleaned up a few non-static functions to be static and added
461 support for libpam to enforce things like pam_[gs]et_data() and
462 AUTHTOK rules for using the API. Also documented pam_[gs]et_item()
463 a little better including return codes (Bugs 129027, 128576 -
465 * pam_access - fixed the non-default config file option (Bug 127561 -
467 * pam.8 manual page clarified with respect to the default location for
468 finding modules, also added some text describing the [...] control
469 syntax. (Bug 127625 - agmorgan)
470 * md5.h ia64 fixes for pam_unix and pam_pwdb (Bug 127700 - agmorgan)
471 * removed requirement for c++ from the configure{.in,} files (Bug
473 * removed subdirectories from man page redirections (124396 - baggins)
474 * per David Lee, fixed non-POSIX shell command in modules/pam_filter/Makefile
475 (Bug 126440 - vorlon)
476 * modify format of pam_unix log messages to include service name
477 (Bug 126423 - vorlon)
478 * prevent pam_unix from logging unknown usernames (Bug 126431 - vorlon)
479 * changed format of pam_unix 'authentication failure' log messages to make
480 them clearer and more consistent (Bug 126036 - vorlon)
481 * improved portability of pam_unix by eliminating Linux-specific utmp
482 defines in PAM_getlogin() (Bug 125704 - vorlon)
483 * removed static variables from pam_tally (Bug 117434 - agmorgan)
484 * added copyright message to pam_access module from original logdaemon
485 sources (Bug 125022 - agmorgan)
486 * configure.in - removed the GCC -Wtraditional flag (Bug 124923 - agmorgan)
487 * pam_mail - use PAM_PATH_MAILDIR as the location of mail spool
488 (Bug 124397 - baggins)
489 * _pam_aconf.h.in, configure.in - added PAM_PATH_MAILDIR set via
490 --with-mailspool=dir option (default is _PAM_MAILDIR if defined
491 in paths.h otherwise /var/spool/mail (Bug 124397 - baggins)
492 * removed unnecessary CVS Log tags from all over the source
493 (Bug 124391 - baggins)
494 * pam_tally - check for PAM_TTY if PAM_RHOST is not set when writing
495 to faillog (Bug 124394 - baggins)
496 * use O_NOFOLLOW if available when opening debug log (Bug 124385 - baggins)
497 * pam_cracklib - removed comments about pam_unix not working with
498 pam_cracklib, added information about use_authtok parameter
499 (Bug 124388 - baggins)
500 * pam_userdb - fixed wrong definition of struct pam_module (was pam_wheel)
501 (Bug 124386 - baggins)
502 * fixed example/Makefile include path (Bug 124187, 127563(?) - agmorgan)
503 * pam_userdb compiles on RH5x. Also removed circular dependency on
504 configure.in. Also bumped revision number to 0.74. (Bug 124136 -
507 0.73: Sat Dec 2 00:04:04 PST 2000
509 * updated documentaion revisions and added 'make release' support
510 to the top level Makefile (Bug 124132 - agmorgan).
511 * documented Qmail support in pam_mail (Bug 109219 - baggins)
512 * add change_uid option to pam_limits, and set real uid only if
513 this option is present (Bug 124062 - baggins)
514 * pam_limits - set real uid to the user for who we set limits.
515 (Bug 123972 - baggins)
516 * removed static variables from pam_limits (thread safe now). (Bug
518 * removed static variable from pam_wheel (module should be thread safe
519 now). (Bug 112906 - agmorgan)
520 * added support for '/' symbols in pam_time and pam_group config files
521 (support for modern terminal devices). Fixed infinite loop problem
522 with '\\[^\n]' in these files. (Bug 116076 - agmorgan)
523 * avoid potential SIGPIPE when writing to helper binaries with (Bug
525 * replaced bogus logic in the pam_cracklib module for determining if
526 the replacement is too similar to the old password (Bug 115055 -
528 * added accessconf=<filename> feature to pam_access - request from
529 Aldrin Martoq and Meelis Roos (Bugs 111927,117240 - agmorgan)
530 * fix for pam_limit module not dealing with all limits Adam J. Richter
531 (Bug 119554 - agmorgan)
532 * comment fix describing fail_delay callback in _pam_types.h (Bug
534 * "likeauth" fix for pam_unix and pam_pwdb which (Bug 113596 - agmorgan)
535 * fix for pam_unix (support.c) to avoid segfault with NULL password
536 (Bug 113238 - vorlon)
537 * fix to pam_unix_passwd: try repeatedly to get a lock on the password
538 file, instead of failing immediately (Bug 108845 - fix vorlon)
539 * fix to pam_shells: logged information was not formatted correctly
540 (extra comma) (Bug 111491 - fix vorlon)
541 * fix for C++ application support (Bug 111645 - fix agmorgan)
542 * fix for typo in pam_client.h (Bug 111648 - fix agmorgan)
543 * removal of -lpam from pam_mkhomedir Makefile (Bug 116380 - fix agmorgan)
544 * autoconf support [Task ID 15788, Bug ID 108297 - agmorgan with help!]
545 - bugfix for libpamc.h include file [Bug ID 117476 - agmorgan]
546 - bugfix for pam_filter.h inclusion [Bug ID 117474 - agmorgan]
548 0.72: Mon Dec 13 22:41:11 PST 1999
550 * patches from Debian (Ben Collins): pam_ftp supports event driven
551 conversations now; pwdb_chkpwd cleanup; pam_warn static compile fix;
552 user_db compiler warnings removed; debian defs file; pam_mail can
553 now be used as a session module
554 * ndbm compilation option for user_db module (fix explained by Richard Khoo)
555 * pam_cracklib bug fix
556 * packaging fixes & build from scratch stuff (Konst Bulatnikov & Frodo
558 * -ldl appended to the libpam.so compilation make rule. (Charles Seeger)
559 * Red Hat security patch for pam_pwdb forwarded by Debian! (Ben
560 Collins. Fix provided by Andrey as it caught the problem earlier in the
562 * heuristic to prevent leaking filedescriptors to an agent. [This needs
563 to be better supported perhaps by an additional libpamc API function?]
564 * pam_userdb segfault fix from (Ben Collins)
565 * PAM draft spec extras added at request of 'sen_ml'
567 0.71: Sun Nov 7 20:21:19 PST 1999
569 * added -lc to linker pass for pam_nologin module (glibc is weird).
570 * various header changes to lower the number of warnings on glibc
571 systems (Dan Yefimov)
572 * merged a bunch of Debian fixes/patches/documentation (Ben Collins)
573 things touched: libpam (minor); doc/modules/pam_unix.sgml; pam_env
574 (plus docs); pam_mkhomedir (new module for new home directories on
575 the fly...); pam_motd (new module); pam_limits (adjust to match
576 docs); pam_issue (new module + doc) [Some of these were also
577 submitted by Thorsten Kukuk]
578 * small hack to lower the number of warnings that pam_client.h was
580 * debian and SuSE apparently can use the pam_ftp module, so
581 removed the obsolete comment about this from the docs. (Thorsten
584 0.70: Fri Oct 8 22:05:30 PDT 1999
586 * bug fix for parsing of value=action tokens in libpam/pam_misc.c was
587 segfaulting (Jan Rekorajski and independently Matthew Melvin)
588 * numerous fixes from Thorsten Kukuk (icluding much needed fixes for
589 bitrot in modules and some documentation) that got included in SuSE 6.2.
590 * reentrancy issues in pam_unix and pam_cracklib resolved (Jan Rekorajski)
591 * added hosts_equiv_rootok module option to pam_rhosts module (Tim Berger)
592 * added comment about 'expose_account' module argument to admin and
593 module writers' docs (request from Michael K Johnson).
594 * myriad of bug fixes for libpamc - library now built by default and
595 works with the biomouse fingerprint scanner agent/module
596 (distributed separately).
598 0.69: Sun Aug 1 20:25:37 PDT 1999
600 * c++ header #ifdef'ing for pam_appl.h (Tuomo Pyhala)
601 * added pam_userdb module (Cristian Gafton)
602 * minor documentation changes
603 * added in revised pam_client library (libpamc). Not installed by
604 default yet, since the example agent/module combo is not very secure.
605 * glibc fixes (Thorsten Kukuk, Adam J. Richter)
607 0.68: Sun Jul 4 23:04:13 PDT 1999
609 * completely new pam_unix module from Jan Rekorajski and Stephen Langasek
610 * Jan Rekorajski pam_mail - support for Maildir format mailboxes
611 * Jan Rekorajski pam_cracklib - support for old password comparison
612 * Jan Rekorajski bug fix for pam_pwdb setcred reusing auth retval
613 * Andrey's pam_tally patch (lstat -> fstat)
614 * Robert Milkowski's additional pam_tally patches to **change format of
615 /var/log/faillog** to one from shadow-utils, add new option "per_user"
616 for pam_tally module, failure time logging, support for fail_line
617 field, and support for fail_locktime field with new option
619 * pam_tally: clean up the tally application too.
620 * Marcin Korzonek added process priority settings to pam_limits (bonus
621 points for adding to documentation!)
622 * Andrey's pam_pwdb patch (cleanup + md5 endian fubar fix)
623 * more binary prompt preparations (make misc conv more compatible with spec)
624 * modified callback hook for fail delay to be more useful with event
625 driven applications (changed function prototype - suspect no one
626 will notice). Documented this in app developer guide.
627 * documentation for pam_access from Tim Berger
628 * syntax fixes for the documentation - a long time since I've built it :*(
629 added some more names to the CREDITS file.
631 0.67: Sat Jun 19 14:01:24 PDT 1999
633 * [dropped libpam_client - libpamc will be in the next release and
634 conforms to the developing spec in doc/specs/draft-morgan-pam.raw.
635 Sorry if you are keeping a PAM tree in CVS. CVS is a pain for
636 directories, but this directory was actually not referenced by
637 anything so the disruption should be light.]
638 * updates to pam_tally from Tim
639 * multiple updates from Stephen Langasek to pam_unix
640 * pam_filter had some trouble compiling (bug report from Sridhar)
641 * pam_wheel now attempts to identify the wheel group for the local
642 system instead of blindly assuming it is gid=0. In the case that
643 there is no "wheel" group, we default to assuming gid=0 is what was
644 meant - former behavior. (courtesy of Sridhar)
645 * NIS+ changes to pam_unix module from Dmitry O Panov
646 * hopefully, a fix for redefinition of LOG_AUTHPRIV (bug report Luke
647 Kenneth Casson Leighton)
648 * fix for minor typo in pam_wheel documentation (Jacek Kopecky)
649 * slightly more explanation of the [x=y] pam.conf syntax in the sys
652 0.66: Mon Dec 28 20:22:23 PST 1998 <morgan@linux.kernel.org>
654 * Started using cvs to keep track of changes to Linux-PAM. This will
655 likely break some of the automated building stuff (RPMs etc..).
656 * security bug fix to pam_unix and pam_tally from Andrey.
657 * modules make file is now more automatic. It should be possible to
658 unpack an external module in the modules directory and have it automatically
659 added to the build process. Also added a modules/download-all script
660 that will make such downloading easier. I'm happy to receive patches to
661 this file, informing the distribution of places from which to enrich itself.
662 * removed pam_system_log stuff. Thought about it long and hard: a
663 bad idea. If libc cannot guarantee a thread safe syslog, it needs
664 to be fixed and compatibility with other PAM libraries was
665 unnecessarily strained.
666 * SAG documentation changes: Seth Chaiklin
667 * rhosts: problems with NIS lookup failures with the root-uid check.
668 As a work-around, I've partially eliminated the need for the lookup
669 by supplying two new arguments: no_uid_check, superuser=<username>.
670 As a general rule this is more pluggable, since this module might be
671 used as an authentication scheme for a network service that does not
672 need root privilege...
673 * authenticate retval -> setcred for pam_pwdb (likeauth arg).
674 * pam_pwdb event driven support
675 * non openlog pam_listfile logging
676 * BUGFIX: close filedescriptor in pam_group and pam_time (Emmanuel Galanos)
677 * Chris Adams' mailhash change for pam_mail module
678 * fixed malloc failure check in pam_handlers.c (follow up to comment
680 * update to _pam_compat.h (Brad M. Garcia)
681 * support static modules in libpam again (Brad M. Garcia)
682 * libpam/pam_misc.c for egcs to grok the code (Brad M. Garcia)
683 * added a solaris-2.5.1 defs file (revived by Derrick J Brashear)
684 * pam_listfile logs failed attempts
685 * added a comment (Michael K Johnson pointed it out) about sgml2latex
686 having a new syntax. I'll make it the change real when I upgrade...
687 * a little more text to the RFC, spelling fix from William J Buffam.
688 * minor changes to pam_securetty to accommodate event driven support.
690 0.65: Sun Apr 5 22:29:09 PDT 1998 <morgan@linux.kernel.org>
692 * added event driven programming extensions to libpam
693 - added PAM_INCOMPLETE handling to libpam/pam_dispatch.c
694 - added PAM_CONV_AGAIN which is a new conversation response that
695 should be mapped to PAM_INCOMPLETE by the module.
696 - ensured that the pam_get_user() function can resume
697 - changes to pam_strerror to accommodate above return codes
698 - clean up _pam_former_state at pam_end()
699 - ensured that former state is correctly initialized
700 - added resumption tests to pam_authenticate(), pam_chauthtok()
701 - added PAM_FAIL_DELAY item for pausing on failure
703 * improved _pam_macros.h so that macros can be used as single commands
706 * reimplemented logging to avoid bad interactions with libc. Added
707 new functions, pam_[,v]system_log() to libpam's API. A programmer
708 can check for this function's availablility by checking if
709 HAVE_PAM_SYSTEM_LOG is #defined.
711 * removed the reduce conflict from pam_conv1 creation -- I can sleep
714 * made building of static and dynamic libpam separate. This is
715 towards making it possible to build both under Solaris (for Derrick)
717 * made USE_CRACKLIB a condition in unix module (Luke Kenneth Casson Leighton)
719 * automated (quiet) config installation (Andrey)
721 0.64: Thu Feb 19 23:30:24 PST 1998 Andrew Morgan <morgan@linux.kernel.org>
723 * miscellaneous patches for building under Solaris (Derrick J Brashear)
725 * removed STATIC support from a number of module Makefiles. Notably,
726 these modules are those that use libpwdb and caused difficulties
727 satisfying the build process. (Please submit patches to fix this...;)
729 * reomved the union for binary packet conversations from
730 (_pam_types.h). This is now completely implemented in libpam_client.
732 * Andrey's patch for working environment variable handling in
735 * made the libpam_misc conversation function a bit more flexible with
736 respect to binary conversations.
738 * added top level define (DEBUG_REL) for compiling in the form of
739 a debugging release. I use this on a Red Hat 4.2 system with little
740 chance of crashing the system as a whole. (Andrey has another
741 implementation of this -- with a spec file to match..)
743 0.63: Wed Jan 28 22:55:30 PST 1998 Andrew Morgan <morgan@linux.kernel.org>
745 * added libpam_client "convention" library. This makes explicit the
746 use of PAM_BINARY_PROMPT. It is a first cut, so don't take it too
747 seriously yet. Comments/suggestions for improvements are very
748 welcome. Note, this library does not compile by default. It will
749 be enabled when it is judged stable. The library comes with two
750 module/agent pairs and can be used with ssh using a patch available
751 from my pre-release directory [where you got this file.]
753 * backward compatibility patch for libpam/pam_handlers.c (PAM_IGNORE
754 was working with neither "requistie" nor "required") and a DEBUG'ing
755 compile time bug with pam_dispatch.c (Savochkin Andrey Vladimirovich)
757 * minor Makefile change from (Savochkin Andrey Vladimirovich)
759 * added pam_afsauth, pam_afspass, pam_restrict, and pam_syslog hooks
762 * pam_access use of uname(2) problematic (security problem
763 highlighted by Olaf Kirch).
765 * pam_listfile went a bit crazy reading group membersips (problem
766 highlighted by Olaf Kirch and patched independently by Cristian
767 Gafton and Savochkin Andrey Vladimirovich)
769 * compatibility hooks for solaris and hpux (Derrick J Brashear)
771 * 64 bit Linux/alpha bug fixed in pam_rhosts (Andrew D. Isaacson)
773 0.62: Wed Jan 14 14:10:55 PST 1998 Andrew Morgan <morgan@linux.kernel.org>
775 * Derrick J Brashear's patches: adds the HP stuff missed in the first
776 patch; adds SunOS support; adds support for the Solaris native ld
777 instead of requiring gnu ld.
779 * last line of .rhosts file need not contain a newline. (Bug reported by
782 0.61: Thu Jan 8 22:57:44 PST 1998 Andrew Morgan <morgan@linux.kernel.org>
784 * complete rewrite of the "control flag" logic. Formerly, we were
785 limited to four flags: requisite, required, sufficient, optional.
786 We can now use these keywords _and_ a great deal more besides.
787 The extra logic was inspired by Vipin Samar, a preliminary patch was
788 written by Andy Berkheimer, but I "had some ideas of my own" and
789 that's what I've actually included. The basic idea is to allow the
790 admin to custom build a control flag with a series of token=value
791 pairs inside square brackets. Eg., '[default=die success=ok]' which
792 is pretty close to a synonym for 'requisite'. I'll try to document it
793 better in the sys-admin guide but I'm pretty sure it is a change for
794 the better.... If what is in the sys-admin guide is not good enough
795 for you, just take a look at the source for libpam ;^)
797 0.59: Thu Jan 8 22:27:22 PST 1998 Andrew Morgan <morgan@linux.kernel.org>
799 * better handling of empty lines in .rhosts file. (Formerly, we asked
800 the nameserver about them!) Fix from Hugh Daschbach.
802 * _broke_some_binary_compatibility_ with previous versions to become
803 compliant with X/Open's XSSO spec. Specifically, this has been
804 by changing the prototype for pam_strerror().
806 * altered the convention for the conversation mechanism to agree
807 with that of Sun. (number of responses 'now=' number of messages
808 with help from Cristian for finding a bug.. Cristian also found a
809 nasty speradic segfault bug -- Thanks!)
811 * added NIS+ support to pam_unix_*
813 * fixed a "regular file checking" problem with the ~/.rhosts sanity
814 check. Added "privategroup" option to permit group write permission
815 on the ~/.rhosts file in the case that the group owner has the same
816 name as the authenticating user. :*) "promiscuous" and "suppress"
819 * added glibc compatibility to pam_rhosts_auth (protected __USE_MISC
820 with #ifndef since my libc already defines it!).
822 * Security fix from Savochkin Andrey Vladimirovich with suggested
823 modification from Olaf Seibert.
825 * preC contains mostly code clean-ups and a number of changes to
830 * pam_getenvlist() has a more robust definition (XSSO) than was previously
831 thought. It would seem that we no longer need pam_misc_copy_env()
832 which was there to provide the robustness that pam_getenvlist()
835 Accordingly, I have REMOVED the prototype from libpam_misc. (The
836 function, however, will remain in the library as a wrapper for
837 legacy apps, but will likely be removed from libpam_misc-1.0.) PLEASE
838 FIX YOUR APPS *BEFORE* WE GET THERE!
840 * Alexy Nogin reported garbage output from pam_env in the case of
841 a non-existent environment variable.
843 * 'fixed' pwdb compilation for pam_wheel. Not very cleanly
844 done.. Mmmm. Should really clean up the entire source tree...
846 * added prototypes for mapping functions
850 various constants have had there names changed. Numerical values have
851 been retained but be aware some source old modules/applications will
852 need to be fixed before recompilation.
856 * appended documentation to README for pam_rhosts module (Nicolai
859 * verified X/Open compatibility of header files - note, where we differ
860 it is at the level of compilation warnings and the use of 'const char *'
861 instead of 'char *'. Previously, Sun(X/open) have revised their spec
862 to be more 'const'-ervative in the light of comments from Linux-PAM
865 * Ooops! PAM_AUTHTOKEN_REQD should have been PAM_NEW_AUTHTOK_REQD.
867 changed: pam_pwdb(pam_unix_acct) (also bug fix for
868 _shadow_acct_mgmt_exp() return value), pam_stress,
869 libpam/pam_dispatch, blank, xsh.
871 * New: PAM_AUTHTOK_EXPIRED - password has expired.
873 * Ooops! PAM_CRED_ESTABLISH (etc.) should have been PAM_ESTABLISH_CRED
874 etc... (changed - this may break some people's modules - PLEASE TAKE
876 changed: pam_group, pam_mail, blank, xsh; module and appl
877 docs, pam_setcred manual page.
879 * renamed internal _pam_handle structure to be pam_handle as per XSSO.
881 * added PAM_RADIO_TYPE (for multiple choice input method). Also
882 added PAM_BINARY_{MSG,PROMPT} (for interaction out of sight of user
883 - this could be used for RSA type authentication but is currently
884 just there for experimental purposes). The _BINARY_ types are now
885 usable with hooks in the libpam_misc conversation function. Still
886 have to add PAM_RADIO_TYPE.
888 * added pam_access module (Alexei Nogin)
890 * added documentation for pam_lastlog. Also modified the module to
891 not (by default) print "welcome to your new account" when it cannot
892 find a utmp entry for the user (you can turn this on with the
895 * small correction to the pam_fail_delay manual page. Either the appl or
896 the modules header file will prototype this function.
898 * added "bigcrypt" (DEC's C2) algorithm(0) to pam_pwdb. (Andy Phillips)
900 * *BSD tweaking for various #include's etc. (pam_lastlog, pam_rhosts,
901 pam_wheel, libpam/pam_handlers). (Michael Smith)
903 * added configuration directory $SCONFIGED for module specific
906 * added two new "linked" man pages (pam.conf(8) and pam.d(8))
908 * included a reasonable default for /etc/pam.conf (which can be
909 translated to /etc/pam.d/* files with the pam_conv1 binary)
911 * fixed the names of the new configuration files in
912 conf/pam_conv1/pam_conv.y
916 * pam_lastlog fixed to handle UID in virgin part of /var/log/lastlog
917 (bug report from Ronald Wahl).
919 * grammar fix in pam_cracklib
921 * segfault avoided in pam_pwdb (getting user). Updating of passwords
922 that are directed to a "new" database are more robust now (bug noted
923 by Michael K. Johnson). Added "unix" module argument for migrating
924 passwords from another database to /etc/passwd. (documentation
925 updated). Removed "bad username []" warning for empty passwords -
926 on again if you supply the 'debug' module argument.
928 * ctrl-D respected in conversation function (libpam_misc)
930 * Removed -DPAM_FAIL_DELAY_ON from top-level Makefile. Nothing in
931 the distribution uses it. I guess this change happened a while
932 back, basically I'm trying to make the module parts of the
933 distribution "source compatible" with the RFC definition of PAM.
934 This implementation of PAM is a superset of that definition. I have
935 added the following symbols to the Linux-PAM header files:
937 PAM_DATA_SILENT (see _pam_types.h)
938 HAVE_PAM_FAIL_DELAY (see _pam_types.h)
939 PAM_DATA_REPLACE (see _pam_modules.h)
941 Any module (or application) that wants to utilize these features,
942 should check (#ifdef) for these tokens before using the associated
943 functionality. (Credit to Michael K. Johnson for pointing out my
944 earlier omission: not documenting this change :*)
946 * first stab at making modules more independent of full library
947 source. Modules converted:
953 * pam_env.c: #include <errno.h> added to ease GNU libc use. (Michael
956 * pam_unix_passwd fixes to shadow aging code (Eliot Frank)
958 * added README for pam_tally
960 0.57: Fri Apr 4 23:00:45 PST 1997 Andrew Morgan <morgan@parc.power.net>
962 * added "nodelay" argument to pam_pwdb. This can be used to turn off
963 the call to pam_fail_delay that takes effect when the user fails to
964 authenticate themself.
966 * added "suppress" argument to pam_rhosts_auth module. This will stop
967 printing the "rlogin failure message" when the user does not have a
970 * Extra fixes for FAKEROOT in Makefiles (Savochkin Andrey
973 * pam_tally added to tree courtesy of Tim Baverstock
975 * pam_rhosts_auth was failing to read NFS mounted .rhosts
976 files. (Fixed by Peter Allgeyer). Refixed and further enhanced
977 (netgroups) by Nicolai Langfeldt. [Credit also to G.Wilford for some
978 changes that were not actually included..]
980 * optional (#ifdef PAM_READ_BOTH_CONFS) support for parsing of pam.d/
981 AND pam.conf files (Elliot Lee).
983 * Added (and signed) Cristian's PGP key. (I've never met him, but I am
984 convinced the key belongs to the guy that is making the PAM rpms and
985 also producing libpwdb. Please note, I will not be signing anyone
986 else's key without a personal introduction..)
988 * fixed erroneous syslog warning in pam_listfile (Savochkin Andrey
989 Vladimirovich, whole file reformatted by Cristian)
991 * modified pam_securetty to return PAM_IGNORE in the case that the user's
992 name is not known to the system (was previously, PAM_USER_UNKNOWN). The
993 Rationale is that pam_securetty's sole purpose is to prevent superuser
994 login anywhere other than at the console. It is not its concern that the
995 user is unknown - only that they are _not_ root. Returning
996 PAM_IGNORE, however, insures that the pam_securetty can never be used to
997 "authenticate" a non-existent user. (Cristian Gafton with bug report from
1000 * Modified pam_nologin to display the no-login message when the user
1001 is not known. The return value in this case is still PAM_USER_UNKNOWN.
1002 (Bug report from Cristian Gafton)
1004 * Added NEED_LCKPWD for pam_unix/ This is used to define the locking
1005 functions and should only be turned on if you don't have them in
1008 * tidied up pam_lastlog and pam_pwdb: removed function that was never used.
1010 * Note for package maintainers: I have added $(FAKEROOT) to the list of
1011 environment variables. This should help greatly when you build PAM
1012 in a subdirectory. I've gone through the tree and tried to make
1013 everything compatible with it.
1015 * added pam_env (courtesy of Dave Kinchlea)
1017 * removed pam_passwd+ from the tree. It has not been maintained in a
1018 long time and running a shell script was basically insecure. I've
1019 indicated where you can pick up the source if you want it.
1021 * #define HAVE_PAM_FAIL_DELAY . Applications can conditionally compile
1022 with this if they want to see if the facility is available. It is
1023 now always available. (corresponding compilation cleanups..)
1025 * _pam_sanitize() added to pam_misc. It purges the PAM_AUTHTOK and
1026 PAM_OLDAUTHTOK items. (calls replaced in pam_auth and pam_password)
1028 * pam_rhosts now knows about the '+' entry. Since I think this is a
1029 dangerous thing, I have required that the sysadmin supply the
1030 "promiscuous" flag for it in the corresponding configuration file
1031 before it will work.
1033 * FULL_LINUX_PAM_SOURCE_TREE exported from the top level make file.
1034 If you want to build a module, you can test for this to determine if
1035 it should take its directions from above or supply default locations
1036 for installation. Etc.
1038 0.56: Sat Feb 15 12:21:01 PST 1997 <morgan@parc.power.net>
1040 * pam_handlers.c can now interpret the pam.d/ service config tree:
1041 - if /etc/pam.d/ exists /etc/pam.conf is IGNORED
1042 (otherwise /etc/pam.conf is treated as before)
1044 . config files are named (in lower case) by service-name
1045 . config files have same syntax as /etc/pam.conf except
1046 that the "service-name" field is not present. (there
1047 are thus three manditory fields (and arguments are
1050 module-type control-flag module-path optional-args...
1054 * included conf/pam_conv1 for converting pam.conf to a pam.d/ version
1055 1.0 directory tree. This program reads a pam.conf file on the
1056 standard input stream and creates ./pam.d/ (in the local directory)
1057 and fills it with ./pam.d/"service-name" files.
1059 *> Note: It will fail if ./pam.d/ already exists.
1061 PLEASE REPORT ANY BUGS WITH THIS CONVERSION PROGRAM... It currently
1062 cannot retain comments from the old conf file, so take care to do this
1063 by hand. Also, please email me with the fix that makes the
1064 shift/reduce conflict go away...
1066 * Added default module path to libpam for modules (see pam_handlers.c)
1067 it makes use of Makfile defined symbol: DEFAULT_MODULE_PATH which is
1068 inhereted from the defs/* variable $(SECUREDIR). Removed module
1069 paths from the sample pam.conf file as they are no longer needed.
1071 * pam_pwdb can now verify read protected passwords when it is not run
1072 by root. This is via a helper binary that is setuid root.
1074 * pam_permit now prompts for a username if it is not already determined
1076 * pam_rhosts now honors "debug" and no longer hardwire's "root" as the
1079 * pam_securetty now honors the "debug" flag
1081 * trouble parsing extra spaces fixed in pam_time and pam_group
1083 * added Michael K. Johnson's PGP key to the pgp.keys.asc list
1085 * pam_end->env not being free()'d: fixed
1087 * manuals relocated to section 3
1089 * fixed bug in pam_mail.c, and enhanced to recognize '~' as a prefix
1090 to indicate the $HOME of the user (courtesy David
1091 Kinchlea). *Changed* from a "session" module to an "auth"
1092 module. It cannot be used to authenticate a user, but it can be used
1093 in setting credentials.
1095 * fixed a stupid bug in pam_warn.. Only PAM_SERVICE was being read :*(
1097 * pam_radius rewritten to exclusively make use of libpwdb. (minor fix
1098 to Makefile for cleaning up - AGM)
1100 * pam_limits extended to limit the total number of logins on a system
1103 * libpam and libpam_misc use $(MAJOR_REL) and $(MINOR_REL) to set their
1104 version numbers [defined in top level makefile]
1106 * bugfix in sed command in defs/redhat.defs (AGM's fault)
1108 * The following was related to a possibility of buffer overruns in
1109 the syslogging code: removed fixed length array from syslogging
1110 function in the following modules [capitalized the log identifier
1111 so the sysadmin can "know" these are fixed on the local system],
1113 pam_ftp, pam_stress, pam_rootok, pam_securetty,
1114 pam_listfile, pam_shells, pam_warn, pam_lastlog
1116 pam_unix_passwd (where it was definitely _not_ exploitable)
1118 0.55: Sat Jan 4 14:43:02 PST 1997, Andrew Morgan <morgan@parc.power.net>
1120 * added "requisite" control_flag to /etc/pam.conf syntax. [See
1121 Sys. Admin. Guide for explanation] changes to pam_handlers.c
1123 * completely new handling of garbled pam.conf lines. The modus
1124 operandi now is to assume that any errors in the line are minor.
1125 Errors of this sort should *most definitely* lead to the module
1126 failing, however, just ignoring the line (as was the case
1127 previously) can lead to gaping security holes(! Not foreseen by the
1128 RFC). The "motivation" for the RFC's comments about ignoring garbled
1129 lines is present in spirit in the new code: basically a garbled line
1130 is treated like an instance of the pam_deny.so module.
1131 changes to pam_handlers.c and pam_dispatch.c .
1133 * patched libpam, to (a) call _pam_init_handlers from pam_start() and
1134 (b) to log a text error if there are no modules defined for a given
1135 service when a call to a module is requested. [pam_start() and
1136 pam_dispatch() were changed].
1138 * patched pam_securetty to deal with "/dev/" prefix on PAM_TTY item.
1140 * reorganized the modules/Makefile to include *ALL* modules. It is now
1141 the responsibility of the modules themselves to test whether they can
1142 be compiled locally or not.
1144 * modified pam_group to add to the getgroups() list rather than overwrite
1145 it. [In the case of "HAVE_LIBPWDB" we use the pwdb_..() calls to
1146 translate the group names.]. Module now pays attention to
1149 * identified and removed bugs in field reading code of pam_time and
1152 * Cristian's patches to pam_listfile module, corresponding change to
1155 * I've discovered &ero; for sgml!
1156 Added pam_time documentation to the admin guide.
1158 * added manual pages: pam.8, pam_start.2(=pam_end.2),
1159 pam_authenticate.2, pam_setcred.2, pam_strerror.2,
1160 pam_open_session.2(=pam_close_session.2) and pam_chauthtok.2 .
1162 * added new modules:
1164 - pam_mail (tells the user if they have any new mail
1165 and sets their MAIL env variable)
1166 - pam_lastlog (reports on the last time this user called
1169 * new module hooks provided.
1171 * added a timeout feature to the conversation function in
1172 libpam_misc. Documented it in the application developers' guide.
1174 * fixed bug in pam_misc_paste_env() function..
1176 * slight modifications to wheel and rhosts writeup.
1178 * more security issues added to module and application guides.
1181 Things present but not mentioned in previous release (sorry)
1183 * pam_pwdb module now resets the "last_change" entry before updating a
1187 Sat Nov 30 19:30:20 PST 1996, Andrew Morgan <morgan@parc.power.net>
1189 * added environment handling to libpam. involved change to _pam_types.h
1190 also added supplementary functions to libpam_misc
1192 * added pam_radius - Cristian
1194 * slight speed up for pam_rhosts
1196 * significantly enhanced sys-admin documentation (8 p -> 41 p in
1197 PostScript). Added to other documentation too. Mostly the changes
1198 in the other docs concern the new PAM-environment support, there is
1199 also some coverage of libpam_misc in the App. Developers' guide.
1201 * Cristian's patches to pam_limits and pam_pwdb. Fixing bugs. (MORE added)
1203 * adopted Cristian's _pam_macros.h file to help with common macros and
1204 debugging stuff, gone through tree tidying up debugging lines to use
1205 this [not complete].
1207 - for consistency replaced DROP() with _pam_drop()
1209 * commented memory debugging in top level makefile
1211 * added the following modules
1213 - pam_warn log information to syslog(3) about service application
1214 - pam_ftp if user is 'ftp' then set PAM_RUSER/PAM_RHOST with password
1215 (comment about nologin added to last release's notes)
1217 * modified the pam_listfile module. It now declares a meaningful static
1220 Sun Nov 10 13:26:39 PST 1996, Andrew Morgan <morgan@parc.power.net>
1222 **PLEASE *RE*AMEND YOUR PERSONAL LINKS**
1224 -------> http://parc.power.net/morgan/Linux-PAM/index.html <-------
1226 **PLEASE *RE*AMEND YOUR PERSONAL LINKS**
1228 A brief summary of what has changed:
1230 * many modules have been modified to accomodate fixing the pam_get_user()
1231 change. Please take note if you have a module in this distribution.
1233 * pam_unix is now the pam_unix that Red Hat has been using and which
1234 should be fairly well debugged.
1236 - I've added some #ifdef's to make it compile for me, and also
1237 updated it with respect to the libpam-0.53, so have a look at the
1238 .../modules/pam_unix/Makefile to enable cracklib and shadow features
1240 ** BECAUSE OF THIS, I cannot guarantee this code works as it **
1241 ** did for Red Hat. Please test and report any problems. **
1243 * the pam_unix of .52 (renamed to pam_pwdb) has been enhanced and made
1244 more flexible with by implementing it with respect to the new
1245 "Password Database Library" see
1247 http://parc.power.net/morgan/libpwdb/index.html
1249 modules included in this release that require this library to
1250 function are the following:
1252 - pam_pwdb (ne pam_unix-0.52 + some enhancements)
1257 * Added some optional code for memory debugging. In order to support
1258 this you have to enable MEMORY_DEBUG in the top level makefile and
1259 also #define MEMORY_DEBUG in your applications when they are compiled.
1260 The extra code resides in libpam (compiled if MEMORY_DEBUG is defined)
1261 and the macros for malloc etc. are to be found at the end of
1264 * used above code to locate two memory leaks in pam_unix module and two
1265 in libpam (pam_handlers.h)
1267 * pam_get_user() now sets the PAM_USER item. After reading the Sun
1268 manual page again, it was clear that it should do this. Various
1269 modules have been assuming this and now I have modified most of them
1270 to account for this change. Additionally, pam_get_user() is now
1271 located in the module include file; modules are supposed to be the
1272 ones that use it(!) [Note, this is explicitly contrary to the Sun
1273 manual page, but in the spirit of the Linux distribution to date.]
1275 * replaced -D"LINUX" with -D"LINUX_PAM" as this is more explicit and less
1276 likely to be confused with -D"linux".
1277 Also, modified the libpam #include files to behave more like the Sun
1278 ones #ifndef LINUX_PAM.
1280 * removed <bf/ .. / from documentation titles. This was not giving
1281 politically correct html..
1283 ----- My vvvvvvvvvvvvvvvvvvv was a long time ago ;*] -----
1285 Wed Sep 4 23:57:19 PDT 1996 (Andrew Morgan <morgan@physics.ucla.edu>
1287 0. Before I begin, Linux-PAM has a new primary distribution site (kindly
1288 donated by Power Net Inc., Los Angeles)
1290 **PLEASE AMMEND YOUR PERSONAL LINKS**
1292 -------> http://www.power.net/morgan/Linux-PAM <-------
1294 **PLEASE AMMEND YOUR PERSONAL LINKS**
1296 1. I'm hoping to make the next release a bug-fix release... So please find
1299 2. here are the changes for .52:
1301 * minor changes to module documentation [Incidently, it is now
1302 available on-line from the WWW page above]. More changes to follow in
1303 the next two releases. PLEASE EMAIL me or the list if there is
1304 anything that isn't clear!
1306 * completely changed the unix module. Now a single module for all four
1307 management groups (this meant that I could define all functions as
1308 static that were not part of the pam_sm_... scheme. AGM)
1310 - Shadow support added
1311 PASSWD - Elliot's account management included, and enhanced by Cristian Gafton.
1312 - MD5 password support added by Cristian Gafton.
1313 - maxtries for authentication now enforced.
1314 - Password changing function in pam_unix now works!
1315 Although obviously, I'm not going to *guarantee* it ;^) .
1316 - stole Marek's locking code from the Red Hat unix module.
1317 [ If you like you can #ifdef it in or out ... ]
1319 You can configure the module more from its Makefile in
1320 0.52/modules/pam_unix/
1322 If you are nervous that it will destroy your /etc/passwd or shadow
1323 files then EDIT the 0.52/modules/pam_unix/pam_unix_pass.-c file.
1324 Here is the warning comment from this file...
1326 -------------8<-----------------
1329 * Uncomment the following #define if you are paranoid, and do not
1330 * want to risk losing your /etc/passwd or shadow files.
1331 * It works for me (AGM) but there are no guarantees.
1335 /* #define TMP__FILE */
1336 ------------->8-----------------
1338 *** If anyone has any trouble, please *say*. Your problem will be
1339 fixed in the next release. Also please feel free to scour the
1340 code for race conditions etc...
1342 [* The above change requires that you purge your /usr/lib/security
1343 directory of the old pam_unix_XXX.so modules: they will NOT be deleted
1344 with a 'make remove'.]
1346 * the prototype for the cleanup function supplied to pam_set_data used
1347 to return "int". According to Sun it should be "void". CHANGED.
1349 * added some definitions for the 'error_status' mask values that are
1350 passed to the cleanup function associated with each
1351 module-data-item. These numbers were needed to keep up with changing
1352 a data item (see for example the code in pam_unix/support.-c that
1353 manages the maximum number of retries so far). Will see what Sun says
1354 (current indications are positive); this may be undone before 1.0 is
1355 released. Here are the definitions (from pam_modules.h).
1357 #define PAM_DATA_SILENT 0x40000000 /* used to suppress messages... */
1358 #define PAM_DATA_REPLACE 0x20000000 /* used when replacing a data item */
1360 * Changed the .../conf/pam.conf file. It now points to the new
1361 pam_unix module for 'su' and 'passwd' [can get these as SimpleApps --
1362 I use them for testing. A more extensive selection of applications is
1363 available from Red Hat...]
1365 * corrected a bug in pam_dispatch. Basically, the problem was that if
1366 all the modules were "sufficient" then the return value for this
1367 function was never set. The net effect was that _pam_dispatch_aux
1368 returned success when all the sufficient modules failed. :^( I think
1369 this is the correct fix to a problem that the Red Hat folks had
1372 sopwith* Removed advisory locking from libpam (thanks for the POSIX patch
1373 goes to Josh Wilmes's, my apologies for not using it in the
1374 end.). Advisory locking did not seem sufficiently secure for libpam.
1375 Thanks to Werner Almesberger for identifying the corresponding "denial
1376 of service attack". :*(
1378 * related to fix, have introduced a lock file /var/lock/subsys/PAM
1379 that can be used to indicate the system should pay attention to
1380 advisory locking on /etc/pam.conf file. To implement this you need to
1381 define PAM_LOCKING though. (see .52/libpam)
1383 * modified pam_fail_delay() function. Couldn't find the "not working"
1384 problem indicated by Michael, but modified it to do pseudo-random
1385 delays based on the values indicated by pam_fail_delay() -- the
1386 function "that may eventually go away"... Although Sun is warming to
1389 * new modules include:
1391 pam_shells - authentication for users with a shell listed in
1392 /etc/shells. Erik Troan <ewt@redhat.com>
1394 pam_listfile - authentication based on the contents of files.
1395 Set to be more general than the above in the
1396 future. UNTESTED. Elliot Lee <@redhat.com>
1397 [Note, this module compiles with a non-trivial
1400 Thu Aug 8 22:32:15 PDT 1996 (Andrew Morgan <morgan@physics.ucla.edu>)
1402 * modified makefiles to take more of their installation instructions
1403 from the top level makefile. Desired for integration into the Debian
1404 distribution, and generally a good idea.
1406 * fixed memory arithmetic in pam_handlers
1407 -- still need to track down why failure to load modules can lead to
1408 authentication succeding..
1410 * added tags for new modules (smartcards from Alex -- just a promise
1411 at this stage) and a new module from Elliot Lee; pam_securetty
1413 * I have not had time to smooth out the wrinkles with it, but Alex's
1414 pam_unix modifications are provided in pam_unix-alex (in the modules
1415 directory) they will not be compiled by 'make all' and I can't even
1416 say if they do compile... I will try to look at them for .52 but, in
1417 the mean time please feel free to study/fix/discuss what is there.
1419 * pam_rhosts module. Removed code for manually setting the ruser
1420 etc. This was not very secure.
1422 * [remade .ps docs to be in letter format -- my printer complains
1425 Sunday July, 7 12:45:00 PST 1996 (Andrew Morgan <morgan@physics.ucla.edu>)
1427 * No longer accompanying the Linux-PAM release with apps installed.
1428 [Will provide what was here in a separate package.. (soon)
1429 lib Also see http://www.redhat.com/pam for some more (in .rpm form...)]
1431 * renamed libmisc to libpam_misc. It is currently configured to only compile
1432 the static library. For some strange reason (perhaps someone can
1433 investigate) my Linux 2.0.0 kernel with RedHat 3.0.3 system
1434 segfaults when I compile it to be a dynamic library. The segfault
1435 seems to be inside the call to the ** dl_XXX ** function...!?
1437 There is a simple flag in the libpam_misc/Makefile to turn on dynamic
1440 * Added a little unofficial code for delay support in libpam (will probably
1441 disappear later..) There is some documentation for it in the pam_modules
1442 doc now. That will obviously go too.
1444 * rewritten pam_time to use *logic* to specify the stringing together of
1445 users/times/terminals etc.. (what was there before was superficially
1446 logical but basically un-predictable!)
1448 * added pam_group. Its syntax is almost identical to pam_time but it
1449 has another field added; a list of groups to make the user a member
1450 of if they pass the previous tests. It seems to not co-exist too well
1451 with the groups in the /etc/group but I hope to have that fixed by
1454 * minor re-formatting of pam_modules documentation
1456 * removed ...// since it wasn't being used and didn't look like it
1459 GCCSunday 23 22:35:00 PST 1996 (Andrew Morgan <morgan@physics.ucla.edu>)
1461 * The major change is the addition of a new module: pam_time for
1462 restricting access on terminals at given times for indicated users
1463 it comes with its own configuration file /etc/security/time.conf
1464 and the sample file simply restricts 'you' from satisfying the blank
1465 application if they try to use blank from any tty*
1467 * Small changes include
1468 - altered pam.conf to demonstrate above new module (try typing username: you)
1469 - very minor changes to the docs (pam_appl and pam_modules)
1471 Saturday June 2 01:40:00 PST 1996 (Andrew Morgan <morgan@physics.ucla.edu>)
1473 *** PLEASE READ THE README, it has changed ***
1475 * NOTE, 'su' exhibits a "system error", when static linking is
1476 used. This is because the pam_unix_... module currently only has
1477 partial static linking support. This is likely to change on Monday
1478 June 3, when Alex makes his latest version availible. I will include
1479 the updated module in next release.
1483 * modified the way in which libpam/pam_modules.h defines prototypes for
1484 the pam_sm_ functions. Now the module must declare which functions it
1485 is to provide *before* the #include <security/pam_modules.h> line.
1486 (for contrasting examples, see the pam_deny and pam_rootok modules)
1487 This removed the ugly hack of defining functions that are never called
1488 to overcome warnings... This seems much tidier.
1489 insterted* updated the TODO list. (changed mailing list address)
1490 * updated README in .../modules to reflect modifications to static
1491 compliation protocol
1492 * modified the pam_modules documentation to describe this.
1493 * corrected last argument of pam_get_item( ... ) in
1494 pam_appl/modules.sgml, to "const void **".
1495 * altered GNU GPL's in the documentation, and various other parts of
1496 the distribution. *Please check* that any code you are responsible for
1498 * Added ./Copyright (please check that it is acceptable)
1499 * updated ./README to make current and indicate the new mailing list
1501 * have completely rewritten pam_filter. It now runs modular filter
1502 executables (stored in /usr/sbin/pam_filter/) This should make it
1503 trivial for others to write their own filters.. If you want yours
1504 included in the distribution please email the list/me.
1505 * changes to libpam; there was a silly bug with multiple arguments on a
1506 pam.conf line that was broken with a '\<LF>'.
1507 * 'su' rearranged code (to make better use of PAM)
1508 *Also* now uses POSIX signals--this should help the Alpha port.
1509 * 'passwd' now uses getlogin() to determine who's passwords to change.
1511 Sunday May 26 9:00:00 PST 1996 (Andrew Morgan <morgan@physics.ucla.edu>)
1513 * fixed module makefiles to create needed dynamic/static subdirectories
1515 Saturday May 25 20:30:27.8 PST 1996 (Andrew Morgan <morgan@physics.ucla.edu>)
1517 * LOTS has changed regarding how the modules/libpam are built.
1518 * Michael's mostly complete changes for static support--see below
1519 (Andrew got a little carried away and automated the static linking
1520 of modules---bugs are likely mine ;( )
1521 * Thanks mostly to Michael, libpam now compiles without a single warning :^]
1522 * made static modules/library optional.
1523 CFLAGS* added 'make sterile' to top level makefile. This does extraclean and remove
1524 * added Michael and Joseph to documentation credits (and a subsection for
1525 future documentation of static module support in pam_modules.sgml)
1526 * libpam; many changes to makefiles and also automated the inclusion of
1527 static module objects in pam_static.c
1528 * modified modules for automated static/dynamic support. Added static &
1529 dynamic subdirectories, as instructed by Michael
1530 * removed an annoying syslog message from pam_filter: "parent exited.."
1531 * updated todo list (anyone know anything about svgalib/X? we probably should
1532 have some support for these...)
1534 Friday May 24 16:30:15 EDT 1996 (Michael K. Johnson <johnsonm@redhat.com>)
1536 * Added first (incomplete) cut at static support.
1538 . changes in libpam, including a new file, pam_static.c
1539 . changes to modules including exporting struct of function pointers
1540 . static and dynamic linking can be combined
1541 . right now, the only working combinations are just dynamic
1542 linking and dynamic libpam.so with static modules linked
1543 into libpam.so. That's on the list of things to fix...
1544 . modules are built differently depending on whether they
1545 are static or dynamic. Therefore, there are two directories
1546 under each module directory, one for static, and one for
1548 * Fixed random brokenness in the Makefiles. [ foo -nt bar ] is
1549 rather redundant in a makefile, for instance. Also, passing
1550 on the command line is broken because it cannot be
1551 overridden in any way (even adding important parts) in lower-level
1553 * Unfortunately, fixing some of the brokenness meant that I used
1554 GNU-specific stuff. However, I *think* that there was GNU-specific
1555 stuff already. And I think that we should just use the GNU
1556 extensions, because any platform that GNU make doesn't port to
1557 easily will be hard to port to anyway. It also won't be likely
1558 passwd to handle autoconf, which was Ted's suggestion for getting
1559 around limitations in standard make...
1560 For now, I suggest that we just use some simple GNU-specific
1563 Monday May 20 22:00:00 PST 1996 (Andrew Morgan <morgan@physics.ucla.edu>)
1565 * added some text to pam_modules.sgml
1566 * corrected Marek's name in all documentation
1567 * made pam_stress conform to chauthtok conventions -- ie can now request
1568 old password before proceeding.
1569 * included Alex's latest unix module
1570 * included Al's + password strength checking module
1571 * included pam_rootok module
1572 * fixed too many bugs in libpam.. all subtly related to the argument lists
1573 or use of syslog. Added more debugging lines here too.
1574 * fixed the pam.conf file
1575 * deleted pam_test module. It is pretty old and basically superceeded
1578 Friday May 9 1:00:00 PST 1996 (Andrew Morgan <morgan@physics.ucla.edu>)
1580 * updated documentaion, added Al Longyear to credits and corrected the
1581 spelling of Jeff's name(!). Most changes to pam.sgml (even added a figure!)
1582 * new module pam_rhosts_auth (from Al Longyear)
1583 * new apps rlogind and ftpd (a patch) from Al.
1584 * modified 'passwd' to not call pam_authenticate (note, none of the
1585 modules respect this convention yet!)
1586 * fixed bug in libpam that caused trouble if the last line of a
1587 pam.conf file ends with a module name and no newline character
1588 * also made more compatable with documentation, in that bad lines in
1589 pam.conf are now ignored rather than causing libpam to return an
1591 * libpam now overwrites the AUTHTOKs when returning from
1592 pam_authenticate and pam_chauthtok calls (as per Sun/RFC too)
1593 * libpam is now installed as libpam.so.XXX in a way that ldconfig can
1597 Wednesday May 1 22:00:00 PST 1996 (Andrew Morgan <morgan@physics.ucla.edu>)
1599 * removed .../test directory, use .../examples from now on.
1600 * added .../apps directory for fully functional applications
1601 - the apps directory contains directories that actually contain the apps.
1602 the idea is to make application compilation conditional on the presence
1603 of the directory. Note, there are entries in the Makefile for
1604 'login' and 'ftpd' that are ready for installation... Email me if
1605 you want to reserve a directory name for an application you are
1607 * similar changes to .../modules makefile [entries for pam_skey and
1608 pam_kerberos created---awaiting the directories.] Email me if you
1609 want to register another module...
1610 * minor changes to docs.. Not really worth reprinting them quite yet!
1612 * added misc_conv to libmisc. it is a generic conversation function
1613 for text based applications. [would be nice to see someone create
1614 an Xlib and/or svgalib version]
1615 * fixed ctrl-z/c bug with pam_filter module [try xsh with the default
1617 * added 'required' argument to 'pam_stress' module.
1618 * added a TODO list... other suggestions to the list please.
1620 Saturday April 7 00:00:00 PST 1996 ( Andrew Morgan <morgan@physics.ucla.edu> )
1622 * Alex and Marek please note I have altered _pam_auth_unix a little, to
1623 make it get the passwords with the "proper method" (and also fixed it
1624 to not have as many compiler warnings)
1625 * updated the conf/pam.conf file
1626 * added new example application examples/xsh.c (like blank but invokes
1628 * Marc's patches for examples/blank.c (and AGM's too)
1629 * fixed stacking of modules in libpam/pam_handlers.c
1630 * fixed RESETing in libpam/pam_item.c
1631 * added new module modules/pam_filter/ to demonstrate the possibility
1632 of inserting an arbitrary filter between the terminal and the
1633 application that could do customized logging etc... (see use of
1634 bin/xsh as defined in conf/pam.conf)
1637 Saturday March 16 19:00:00 PST 1996 ( Andrew Morgan <morgan@physics.ucla.edu> )
1639 These notes are for 0.3 I don't think I've left anything important
1640 out, but I will use emacs 'C-x v a' next time! (Thanks Jeff)
1642 * not much has changed with the functionality of the Linux-PAM lib
1644 - pam_password calls module twice with different arguments
1645 - added const to some of the function arguments
1646 - added PAM_MAX_MES_ to <security/_pam_types.h>
1647 - was a lot over zealous about purging old passwords...
1648 I have removed much of this from source to make it
1649 more compatible with SUN.
1650 - moved some PAM_... tokens to pam_modules.h from _pam_types.h
1651 (no-one should notice)
1653 * added three modules: pam_permit pam_deny pam_stress
1654 no prizes for guessing what the first two do. The third is
1655 a reasonably complete (functional) module. Is intended for testing
1658 * fixed a few pieces of examples/blank.c so that it works (with
1661 * ammended the documentation. Looking better, but suggestions/comments
1664 Sunday March 10 10:50:00 PST 1996 ( Andrew Morgan <morgan@physics.ucla.edu> )
1666 These notes are for Linux-PAM release 0.21. They cover what's changed
1667 since I relased 0.2.
1670 * substantially changed ./README
1671 * fixed bug reading \\\n in pam.conf file
1672 * small changes to documentation
1673 * added `blank' application to ./examples (could be viewed as
1674 a `Linux-PAM aware' application template.)
1675 * oops. now including pam_passwd.o and pam_session.o in pamlib.so
1676 * compute md5 checksums for all the source when making a release
1677 - added `make check' and `make RCScheck' to compute md5 checksums
1678 * create a second tar file with all the RCS files in.
1679 * removed the .html and .txt docs, supplying sgml sources instead.
1680 - see README for info on where to get .ps files
1682 Thursday March 6 0:44:?? PST 1996 ( Andrew Morgan <morgan@physics.ucla.edu> )
1684 These notes are for Linux-PAM release 0.2. They cover what's changed
1685 since Marc Ewing relased 0.1.
1687 **** Please note. All of the directories in this release have been modified
1688 **** slightly to conform to the new pamlib. A couple of new directories have
1689 **** been added. As well as some documentation. If some of your code
1690 **** was in the previous release. Feel free to update it, but please
1691 **** try to conform to the new headers and Makefiles.
1693 * Andrew Morgan (morgan@physics.ucla.edu) is making this release
1694 availible, Marc has been busy...!
1696 * Marc's pam-0.1/lib has been (quietly) enhanced and integrated into
1697 Alex Yurie's collected tree of library and module code
1698 (linux-pam.prop.1.tar.gz). Most of the changes are to do with error
1699 checking. Some more robustness in the reading of the pam.conf file
1700 and the addition of the pam_get_user() function.
1702 * The pam_*.h files have been reorganized to logically enforce the
1703 separation of modules from applications. [Don't panic! Apart from
1704 changing references of the form
1706 #include "pam_appl.h"
1710 #include <security/pam_appl.h>
1712 The reorganization should be backwardly compatable (ie. a module
1713 written for SUN will be as compatable as it was before with the
1714 previous version ;)~ ]
1716 (All of the source in this tree now conforms to this scheme...)
1718 The new reorganization means that modules can be compiled with a
1719 single header, <security/pam_modules.h>, and applications with
1720 <security/pam_appl.h>.
1722 * I have tried to remove all the compiler warnings from the updated
1723 "pamlib/*.c" files. On my system, (with a slightly modified <dlfcn.h>
1724 email me if it interests you..) there are only two warnings that
1725 remain: they are that ansi does not permit void --> fn ptr
1726 assignment. K&Rv2 doesn't mention this....? As a matter of principle,
1727 if anyone knows how to get rid of that warning... please
1728 tell. Thanks! "-pedantic"
1730 * you can "make all" as a plain user, but
1732 * to "make install" you must be root. The include files are placed in
1733 /usr/include/security. The libpam.so library is installed in /usr/lib
1734 and the modules in /usr/lib/security. The two test binaries
1735 are installed in the Linux-PAM-0.2/bin directory and a chance is given to
1736 replace your /etc/pam.conf file with the one in Linux-PAM-0.2/conf.
1738 * I have included some documentation (pretty preliminary at the
1739 moment) which I have been working on in .../doc .
1741 I have had a little trouble with the modules, but atleast there are no
1742 segfaults! Please try it out and discuss your results... I actually
1743 hope it all works for you. But, Email any bugs/suggestions to the
1744 Linux-PAM list: linux-pam@mit.edu .....
1749 (morgan@physics.ucla.edu)
1752 Sat Feb 17 17:30:24 EST 1996 (Alexander O. Yuriev alex@bach.cis.temple.edu)
1754 * conf directory created with example of pam_conf
1755 * stable code from pam_unix is added to modules/pam_unix
1756 * test/test.c now requests username and password and attempts
1757 to perform authentication