Commit Graph

  • c9f74afc91 Plug memory leak, reduce differences between these very similar functions, and {add,tweak} documentation. Dag-Erling Smørgrav 2002-04-06 17:17:44 +0000
  • 1eafe40ac3 Change pam_get_authtok()'s prototype so the caller can specify what token it wants. Also introduce PAM_OLDAUTHTOK_PROMPT. Dag-Erling Smørgrav 2002-04-06 17:05:21 +0000
  • 6a52d30938 Allocate the correct amount of memory for the environment list (forgot to multiply by sizeof(char *)). Dag-Erling Smørgrav 2002-04-02 22:47:12 +0000
  • 8113558d3a Fix braino that arose from confusion between data and dp. This unbreaks the pam_ldap module. Dag-Erling Smørgrav 2002-04-01 14:13:56 +0000
  • 6e48c6e7f5 Blah, fix formatting bug in previous revision. Dag-Erling Smørgrav 2002-03-14 21:46:58 +0000
  • de650b3211 Release documentation for OpenPAM Centaury. Dag-Erling Smørgrav 2002-03-14 21:23:06 +0000
  • 87b5599651 Suppress debug logs unless DEBUG is defined. Dag-Erling Smørgrav 2002-03-14 20:54:16 +0000
  • 70efc25d1c Fix a number of bugs in the module cache: Dag-Erling Smørgrav 2002-03-07 20:22:38 +0000
  • 8c639c01ef s/Technologies/Technology/ in copyright, and regenerate docs. Dag-Erling Smørgrav 2002-03-07 18:12:45 +0000
  • f2bc37d0d6 s/PAM_REINITIALISE_CRED/PAM_REINITIALIZE_CRED/ Dag-Erling Smørgrav 2002-03-07 13:09:46 +0000
  • 321d3cfb35 Add missing #include <string.h> Dag-Erling Smørgrav 2002-03-07 12:57:35 +0000
  • 0ea89457b5 Release documentation for OpenPAM Celandine. Dag-Erling Smørgrav 2002-03-05 14:38:25 +0000
  • b89f077385 Regenerate. Dag-Erling Smørgrav 2002-03-05 14:37:41 +0000
  • 676eb4cd21 Correct markup nit. Dag-Erling Smørgrav 2002-03-05 14:37:04 +0000
  • b61ca53417 Move most of the dynamic loader code into a separate file, and add support for module versioning. OpenPAM will prefer a PAM module with the same version number as the library itself to one with no version number at all. Dag-Erling Smørgrav 2002-03-05 14:20:26 +0000
  • 6f75ed6572 $Id$ -> $P4$ + regenerate man pages. Dag-Erling Smørgrav 2002-02-26 04:05:19 +0000
  • 7a936aa997 I was a little quick when I originally wrote this: the code only supported setting new options. Add support for unsetting options and changing the value of existing options. Dag-Erling Smørgrav 2002-02-25 17:37:00 +0000
  • bad941d5b0 Use $Id$ here, not $FreeBSD$. Dag-Erling Smørgrav 2002-02-24 01:45:06 +0000
  • 6f078f6f97 Clear PAM_AUTHTOK after running the service modules. Dag-Erling Smørgrav 2002-02-23 18:07:30 +0000
  • 8ea571eeba - pam_sm_chauthtok() can return PAM_TRY_AGAIN. - "sufficient" should not terminate the chain if the PAM_PRELIM_CHECK flag is set. Dag-Erling Smørgrav 2002-02-23 18:06:45 +0000
  • ffabf53a8c Document PAM_TRY_AGAIN as a valid return value (cf. XSSO pp. 72-73) Dag-Erling Smørgrav 2002-02-23 18:03:53 +0000
  • 424a6c3bd7 Release documentation for OpenPAM Cantaloupe. Dag-Erling Smørgrav 2002-02-22 22:37:42 +0000
  • 2901b1dc78 Distribute more files. Dag-Erling Smørgrav 2002-02-22 22:36:53 +0000
  • f6c2f6b5e4 Regenerate. Dag-Erling Smørgrav 2002-02-22 22:30:54 +0000
  • 274583fefd Whitespace nit. Dag-Erling Smørgrav 2002-02-22 22:04:30 +0000
  • 2d71f7049b Respect echo_pass, try_first_pass, use_first_pass options. Dag-Erling Smørgrav 2002-02-22 22:04:11 +0000
  • 5c3fadae16 Add openpam_get_option() and openpam_set_option(). Dag-Erling Smørgrav 2002-02-22 21:33:49 +0000
  • a05b905e44 Don't claim a function conforms to XSSO when it doesn't. Dag-Erling Smørgrav 2002-02-22 21:22:30 +0000
  • 4b5df4ce1a Mask signals while prompting the user (except for SIGINT and SIGTSTP), and add timeout functionality (defaults to off). Dag-Erling Smørgrav 2002-02-22 20:35:00 +0000
  • 3fab86788d Oops, don't build openpam_static() unless OPENPAM_STATIC_MODULES is defined. Dag-Erling Smørgrav 2002-02-20 15:35:17 +0000
  • 8c45582bf1 Move the linker set stuff into a separate file, and rename the linker set for cosmetic reasons. Dag-Erling Smørgrav 2002-02-20 15:33:11 +0000
  • 242138f031 Move PAM_NUM_ITEMS from openpam_impl.h to pam_constants.h so it doesn't go stale again. Dag-Erling Smørgrav 2002-02-20 15:26:40 +0000
  • 3d506282e3 Allow the PAM_AUTHTOK_PROMPT item to override the prompt specified by the module. Dag-Erling Smørgrav 2002-02-20 15:22:09 +0000
  • 246b7f5d29 Terminate the environment list, and log the number of variables. Dag-Erling Smørgrav 2002-02-20 00:22:14 +0000
  • b6536adc2e Include gendoc.pl in the distribution. Dag-Erling Smørgrav 2002-02-18 19:36:09 +0000
  • 0e70f18f32 List new man pages, and add a target that regenerates the pages. Dag-Erling Smørgrav 2002-02-18 19:35:19 +0000
  • a3962c7edf Regenerate, now with actual content. Dag-Erling Smørgrav 2002-02-18 19:34:54 +0000
  • 645c7270fc Add in-line documentation. Some functions still lack descriptions. Dag-Erling Smørgrav 2002-02-18 19:31:10 +0000
  • c47feff831 Teach gendoc to parse a simple syntax for inline documentation. Dag-Erling Smørgrav 2002-02-18 19:08:28 +0000
  • 6b7c9e3837 The proper use of PAM_SYMBOL_ERR is to indicate an invalid argument to pam_[gs]et_item(3). Dag-Erling Smørgrav 2002-02-18 12:26:17 +0000
  • 849893fd10 Log allocation failures. Dag-Erling Smørgrav 2002-02-13 13:21:37 +0000
  • 5758a3eb3b Release documentation for OpenPAM Caliopsis. Dag-Erling Smørgrav 2002-02-13 02:51:17 +0000
  • c7df899506 Check *authtok - pam_get_item(3) will succeed even if the item is NULL. Dag-Erling Smørgrav 2002-02-13 02:19:05 +0000
  • 105c3d4de7 pam_get_item(3) expects a const void **, not a const void *. Also check that the pam_conv structure it returns is not NULL. Dag-Erling Smørgrav 2002-02-13 02:17:31 +0000
  • 104cfd8443 Add a missing 'continue' in the code for the PAM_SUCCESS case. Add more debugging log messages. Dag-Erling Smørgrav 2002-02-13 02:16:03 +0000
  • 39a1582d7e Initialize tmp to NULL so that items can be cleared as intended. Don't forget to fill the pam_conv structure after allocating it. Dag-Erling Smørgrav 2002-02-13 02:14:55 +0000
  • a9a4681bc5 Constify the last argument. Dag-Erling Smørgrav 2002-02-13 02:12:20 +0000
  • 0ebca05841 Log a debug message before calling the service function. Dag-Erling Smørgrav 2002-02-13 00:43:57 +0000
  • f8ad159142 Oops, previous commit would cause sprintf() to overrun the malloc()ed buffer by exactly one character. Add some slack. Dag-Erling Smørgrav 2002-02-13 00:41:06 +0000
  • 1840f8c6fe Trim whitespace off the end of the format string, and add exactly one newline character. Dag-Erling Smørgrav 2002-02-13 00:39:32 +0000
  • ee40844c72 Sort the function names in the correct order (which is not the alphabetical order). Dag-Erling Smørgrav 2002-02-13 00:37:01 +0000
  • f62e36ce55 Fix an off-by-one bug that would in some circumstances trim off the last character of a configuration line. Dag-Erling Smørgrav 2002-02-13 00:34:23 +0000
  • fad3985e61 Fix a showstopping NULL dereference in pam_set_item(3). Dag-Erling Smørgrav 2002-02-12 22:42:52 +0000
  • b2c0c77714 Packaging script. Dag-Erling Smørgrav 2002-02-09 16:52:37 +0000
  • 1a24ed0d99 Release documentation. Dag-Erling Smørgrav 2002-02-09 16:52:20 +0000
  • f59fd06457 Regenerate to incorporate wording tweak and release date. Dag-Erling Smørgrav 2002-02-09 16:14:40 +0000
  • f1d6fc9f30 Wording tweak. Dag-Erling Smørgrav 2002-02-09 16:12:49 +0000
  • 207f71c606 Connect the man pages to the build. Dag-Erling Smørgrav 2002-02-09 15:44:10 +0000
  • 32040ec571 Make C++-safe. Dag-Erling Smørgrav 2002-02-09 15:43:36 +0000
  • 709fbe9015 Regenerate man pages for functions that have changed, and add man pages for new functions. The man pages have been backdated to minimize diffs. Dag-Erling Smørgrav 2002-02-07 12:31:39 +0000
  • b93fb425c5 Reuse the copyright from the last source file for the summary page. Dag-Erling Smørgrav 2002-02-07 12:30:25 +0000
  • a139b62d54 Introduce pam_v{info,error,prompt}(). Move OpenPAM API extensions into <security/openpam.h> to avoid namespace pollution for apps or modules that do not use them. Dag-Erling Smørgrav 2002-02-07 12:22:08 +0000
  • aada9aaafe Constify. Dag-Erling Smørgrav 2002-02-06 16:03:39 +0000
  • d5943da7f6 Provide a fallback for platforms that don't support varadic macros. Dag-Erling Smørgrav 2002-02-06 16:03:18 +0000
  • c450908f60 PAM_CRED_PRELIM_CHECK is an XSSO typo. The correct name for the constant is PAM_PRELIM_CHECK. Dag-Erling Smørgrav 2002-02-06 16:02:13 +0000
  • f8a6c31c31 According to bde, it's OK to omit parentheses when taking the size of an object rather than a type. Dag-Erling Smørgrav 2002-02-06 13:25:36 +0000
  • b55243b5c1 Whoa, don't forget to actually resolve symbols once we've located a dynamic module. Dag-Erling Smørgrav 2002-02-04 23:39:07 +0000
  • e683738206 Behave more like Solaris when faced with an empty chain, or a chain that lists modules that don't implement the required functionality. Dag-Erling Smørgrav 2002-02-04 23:36:07 +0000
  • 4166f73f32 Add support for static linking. Also rename a handful of constants to reduce the chance of every running into a naming conflict. Dag-Erling Smørgrav 2002-02-04 23:22:40 +0000
  • c5802864c3 I suck. This time, test before committing. I apologize for the acute embarassment you must all feel for knowing me. I shall perform Seppuku at sundown to atone for my crimes. Dag-Erling Smørgrav 2002-02-04 16:52:17 +0000
  • 045b2435f2 Pfffuit, I really ought to be more careful before I commit machine- generated files. Fix a couple of mdoc blunders. Dag-Erling Smørgrav 2002-02-04 16:42:31 +0000
  • a84262fbf9 libpam, not libfetch Dag-Erling Smørgrav 2002-02-04 16:36:07 +0000
  • 15339e69e4 The dangers of cut'n'paste... Dag-Erling Smørgrav 2002-02-04 16:35:32 +0000
  • 6bb82f9ffb Man page stubs. Dag-Erling Smørgrav 2002-02-04 16:22:10 +0000
  • 5455407b97 Perl script I used to generate man page stubs. Dag-Erling Smørgrav 2002-02-04 16:21:36 +0000
  • 2e2a611647 Store options, and pass them to modules. Dag-Erling Smørgrav 2002-02-04 15:00:16 +0000
  • 073edc1836 Circumvent constness issues. OpenPAM is now WARNS4-clean. Dag-Erling Smørgrav 2002-02-04 14:53:46 +0000
  • 560591adc6 Remove trailing commas from enum lists. Dag-Erling Smørgrav 2002-02-04 14:01:26 +0000
  • 93f3359d7a Add the file I forgot in #6131. Dag-Erling Smørgrav 2002-02-02 18:38:02 +0000
  • 292bd9156a Move linker-related code out into a separate file so it'll be easier to restructure it later on. Dag-Erling Smørgrav 2002-02-02 18:37:08 +0000
  • 46638aa621 Add a flag to struct pam_handle that openpam_dispatch() uses to detect and prevent indirect recursion. Fail immediately if the requested chain is empty. If a module couldn't be loaded, or doesn't provide the requested service, treat it as a normal failure instead of terminating the chain. (Solaris actually ignores this condition!) Dag-Erling Smørgrav 2002-02-02 18:22:20 +0000
  • 99d01aea5e Use 'sizeof(foo)' instead of 'sizeof foo' even where it's not required. Although style(9) doesn't say anything about it, this seems to be the preferred form. Dag-Erling Smørgrav 2002-02-02 18:04:31 +0000
  • a980e1d3da Clear module data. Clear environment. Use pam_set_item() rather than free() to clear items so they get properly clobbered. Dag-Erling Smørgrav 2002-02-02 17:58:58 +0000
  • 298b19ac93 Clobber items before freeing them. Dag-Erling Smørgrav 2002-02-02 17:47:36 +0000
  • 2a23af0e82 Whitespace cleanup + keyword expansion sweep. Dag-Erling Smørgrav 2002-02-01 22:20:07 +0000
  • 4c413f4604 Add a sample application. Dag-Erling Smørgrav 2002-02-01 22:09:36 +0000
  • e106ecde0b Add two sample modules. Dag-Erling Smørgrav 2002-02-01 21:52:02 +0000
  • 236a7d8507 Rename openpam_log() to _openpam_log(), add an argument for the function name, and wrap it in a macro called openpam_log(). Dag-Erling Smørgrav 2002-02-01 21:35:31 +0000
  • 8c50f570da It turns out dlerror() already includes the module's full path in the error message. Avoid logging it twice. Dag-Erling Smørgrav 2002-02-01 21:33:58 +0000
  • ed8e188f27 Belatedly add openpam_findenv.c to the Makefile, and add a missing #include that I hadn't spotted since it wasn't getting compiled. Dag-Erling Smørgrav 2002-02-01 21:19:32 +0000
  • d57c2aa6ec Rename openpam.h to openpam_impl.h to avoid confusion with <security/openpam.h>. Dag-Erling Smørgrav 2002-02-01 20:49:12 +0000
  • fbb6651eb0 Add openpam_ttyconv(), a simple tty-based conversation function. Prototype it in the new <security/openpam.h> header. Move the prototype for openpam_log() there too (as well as the log level constants) so modules and applications can use it if they want to. Have lib/openpam.h include <security/openpam.h>. Dag-Erling Smørgrav 2002-02-01 20:41:47 +0000
  • 42b796c71c Add non-standard extensions: pam_error(3), pam_get_authtok(3), pam_info(3), pam_prompt(3). Dag-Erling Smørgrav 2002-02-01 20:36:30 +0000
  • 51805b83a7 Add two more errata. Dag-Erling Smørgrav 2002-02-01 20:24:14 +0000
  • 6896492a66 Change "invalid" to "unexpected", since we don't actually croak from this error. Dag-Erling Smørgrav 2002-02-01 20:18:49 +0000
  • 192f4cbfc4 Implement pam_get_user(3). Dag-Erling Smørgrav 2002-02-01 20:15:51 +0000
  • e31097d63e On second thought, make that PAM_AUTHTOK_PROMPT. Dag-Erling Smørgrav 2002-02-01 20:05:20 +0000
  • c6c0a2864f Add non-standard PAM_PASSWD_PROMPT constant to mirror PAM_USER_PROMPT. Dag-Erling Smørgrav 2002-02-01 19:43:56 +0000
  • 9b64962713 Convert preprocessor constants to anonymous enums. Dag-Erling Smørgrav 2002-02-01 18:26:05 +0000
  • 5d027b0909 Import OpenPAM. Dag-Erling Smørgrav 2002-02-01 17:16:12 +0000