Commit graph

330 commits

Author SHA1 Message Date
Dag-Erling Smørgrav
1e53b5bf95 When closing a literal section, reset $inliteral, not $inlist.
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@131 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-17 23:48:53 +00:00
Dag-Erling Smørgrav
c51f824179 Set rsp to NULL before calling the conversation function, so we can
later detect if it hasn't been touched.

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@130 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-17 07:26:16 +00:00
Dag-Erling Smørgrav
ad8d33ef88 Add a null conversation function.
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@129 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-17 06:46:51 +00:00
Dag-Erling Smørgrav
eabc266fb3 Fix braino in the gcc version of the openpam_log() macro.
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@128 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-16 23:29:40 +00:00
Dag-Erling Smørgrav
2d7706551f Additional debugging messages.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@127 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-15 08:30:42 +00:00
Dag-Erling Smørgrav
1673fb83d0 Typo on page 73.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@126 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-15 08:29:23 +00:00
Dag-Erling Smørgrav
eeab6a40c4 Don't copy log messages to stderr, even #ifdef DEBUG.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@125 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-15 08:28:43 +00:00
Dag-Erling Smørgrav
b055d19eda Print a newline after an error or info message.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@124 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-15 03:26:55 +00:00
Dag-Erling Smørgrav
dc52aa4375 Document change 9736, I'm rerolling Cinenaria.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@123 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-15 02:34:19 +00:00
Dag-Erling Smørgrav
2dc37c7bb2 Fix highly embarassing typo. This makes a good argument for using
verbose variable names.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@122 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-15 02:31:56 +00:00
Dag-Erling Smørgrav
78265f5fc9 Release documentation for OpenPAM Cineraria.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@121 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-14 20:25:33 +00:00
Dag-Erling Smørgrav
22986240c0 Bump version & release.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@120 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-14 20:25:15 +00:00
Dag-Erling Smørgrav
c7a79e22d3 Regenerate.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@119 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-14 20:24:37 +00:00
Dag-Erling Smørgrav
31fa053253 Stuff the tarball in /tmp.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@118 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-14 20:24:13 +00:00
Dag-Erling Smørgrav
fbb6b90656 Note typo on page 40.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@117 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-14 20:23:20 +00:00
Dag-Erling Smørgrav
2b15d8097d New files.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@116 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-14 20:22:58 +00:00
Dag-Erling Smørgrav
61c8a26c60 More checks & documentation, and fix some markup nits.
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@115 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-14 20:22:20 +00:00
Dag-Erling Smørgrav
4872da15d4 Add version macros.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@114 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-14 19:40:11 +00:00
Dag-Erling Smørgrav
71b9434c2f Fix typo in openpam_log macro.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@113 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-13 00:12:46 +00:00
Dag-Erling Smørgrav
2b0fbefd4a Move the policy-loading code into a separate file.
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@112 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-12 20:27:47 +00:00
Dag-Erling Smørgrav
3f41e83845 Adopt the same preprocessor tricks that Linux-PAM uses for modules.
This reduces the amount of changes needed to adopt modules written
for Linux-PAM.

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@111 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-12 20:16:08 +00:00
Dag-Erling Smørgrav
bfaad8a294 Forgot CREDITS.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@110 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-08 14:36:37 +00:00
Dag-Erling Smørgrav
af47d93bdc Last-minute addition to "known issues".
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@109 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-08 14:25:12 +00:00
Dag-Erling Smørgrav
330a2ae4a4 Release documentation for OpenPAM Cinchona.
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@108 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-08 14:19:12 +00:00
Dag-Erling Smørgrav
edac1d2d07 Regenerate.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@107 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-08 14:04:56 +00:00
Dag-Erling Smørgrav
56aafe38c0 Add openpam_{borrow,restore}_cred() (for temporarily switching to
user credentials) and openpam_free_data() (generic cleanup function
for pam_set_data() consumers)

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@106 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-08 13:42:13 +00:00
Dag-Erling Smørgrav
ff571b036c If PAM_OLDAUTHTOK is set, we're asked for PAM_AUTHTOK, and we have
to prompt the user, prompt her twice and compare the responses.

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@105 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-06 21:23:26 +00:00
Dag-Erling Smørgrav
b2b11d5483 Fix bugs in portability code; libpam now builds on NetBSD 1.5.2.
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@104 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-06 19:02:06 +00:00
Dag-Erling Smørgrav
b9591f18fd More errata.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@103 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-06 17:43:38 +00:00
Dag-Erling Smørgrav
c7010177aa Check flags carefully, and add documentation.
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@102 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-06 17:41:37 +00:00
Dag-Erling Smørgrav
c9f74afc91 Plug memory leak, reduce differences between these very similar
functions, and {add,tweak} documentation.

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@101 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-06 17:17:44 +00:00
Dag-Erling Smørgrav
1eafe40ac3 Change pam_get_authtok()'s prototype so the caller can specify
what token it wants.  Also introduce PAM_OLDAUTHTOK_PROMPT.

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@100 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-06 17:05:21 +00:00
Dag-Erling Smørgrav
6a52d30938 Allocate the correct amount of memory for the environment list
(forgot to multiply by sizeof(char *)).

Submitted by:	Takanori Saneto <sanewo@ba2.so-net.ne.jp>


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@99 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-02 22:47:12 +00:00
Dag-Erling Smørgrav
8113558d3a Fix braino that arose from confusion between data and dp. This
unbreaks the pam_ldap module.

Based on a patch by Joe Marcus Clarke <marcus@marcuscom.com>.

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@98 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-04-01 14:13:56 +00:00
Dag-Erling Smørgrav
6e48c6e7f5 Blah, fix formatting bug in previous revision.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@97 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-03-14 21:46:58 +00:00
Dag-Erling Smørgrav
de650b3211 Release documentation for OpenPAM Centaury.
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@96 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-03-14 21:23:06 +00:00
Dag-Erling Smørgrav
87b5599651 Suppress debug logs unless DEBUG is defined.
Sponsored by:	DARPA, NAI Labs.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@95 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-03-14 20:54:16 +00:00
Dag-Erling Smørgrav
70efc25d1c Fix a number of bugs in the module cache:
- Don't log dlopen() failures, since they're rarely interesting;
   instead, log a failure if no module was found at all.

 - When loading  a versioned module, store its logical name in the
   module structure rather than its physical name, since it will be
   looked up by its logical name if it's needed again.

 - Initialize module->next->prev when adding a module to the cache.

 - Set modules to NULL when releasing the last module in the cache.

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@94 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-03-07 20:22:38 +00:00
Dag-Erling Smørgrav
8c639c01ef s/Technologies/Technology/ in copyright, and regenerate docs.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@93 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-03-07 18:12:45 +00:00
Dag-Erling Smørgrav
f2bc37d0d6 s/PAM_REINITIALISE_CRED/PAM_REINITIALIZE_CRED/
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@92 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-03-07 13:09:46 +00:00
Dag-Erling Smørgrav
321d3cfb35 Add missing #include <string.h>
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@91 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-03-07 12:57:35 +00:00
Dag-Erling Smørgrav
0ea89457b5 Release documentation for OpenPAM Celandine.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@90 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-03-05 14:38:25 +00:00
Dag-Erling Smørgrav
b89f077385 Regenerate.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@89 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-03-05 14:37:41 +00:00
Dag-Erling Smørgrav
676eb4cd21 Correct markup nit.
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@88 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-03-05 14:37:04 +00:00
Dag-Erling Smørgrav
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.

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@87 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-03-05 14:20:26 +00:00
Dag-Erling Smørgrav
6f75ed6572 $Id$ -> $P4$ + regenerate man pages.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@86 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-26 04:05:19 +00:00
Dag-Erling Smørgrav
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.

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@85 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-25 17:37:00 +00:00
Dag-Erling Smørgrav
bad941d5b0 Use $Id$ here, not $FreeBSD$.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@84 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-24 01:45:06 +00:00
Dag-Erling Smørgrav
6f078f6f97 Clear PAM_AUTHTOK after running the service modules.
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@82 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-23 18:07:30 +00:00
Dag-Erling Smørgrav
8ea571eeba - pam_sm_chauthtok() can return PAM_TRY_AGAIN.
- "sufficient" should not terminate the chain if the PAM_PRELIM_CHECK
  flag is set.

Sponsored by: DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@81 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-23 18:06:45 +00:00