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
Dag-Erling Smørgrav
ffabf53a8c
Document PAM_TRY_AGAIN as a valid return value (cf. XSSO pp. 72-73)
...
Sponsored by: DARPA, NAI Labs
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@80 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-23 18:03:53 +00:00
Dag-Erling Smørgrav
424a6c3bd7
Release documentation for OpenPAM Cantaloupe.
...
Sponsored by: DARPA, NAI Labs
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@79 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-22 22:37:42 +00:00
Dag-Erling Smørgrav
2901b1dc78
Distribute more files.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@78 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-22 22:36:53 +00:00
Dag-Erling Smørgrav
f6c2f6b5e4
Regenerate.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@77 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-22 22:30:54 +00:00
Dag-Erling Smørgrav
274583fefd
Whitespace nit.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@76 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-22 22:04:30 +00:00
Dag-Erling Smørgrav
2d71f7049b
Respect echo_pass, try_first_pass, use_first_pass options.
...
Sponsored by: DARPA, NAI Labs
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@75 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-22 22:04:11 +00:00
Dag-Erling Smørgrav
5c3fadae16
Add openpam_get_option() and openpam_set_option().
...
Sponsored by: DARPA, NAI Labs
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@74 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-22 21:33:49 +00:00
Dag-Erling Smørgrav
a05b905e44
Don't claim a function conforms to XSSO when it doesn't.
...
Sponsored by: DARPA, NAI Labs
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@73 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-22 21:22:30 +00:00
Dag-Erling Smørgrav
4b5df4ce1a
Mask signals while prompting the user (except for SIGINT and SIGTSTP),
...
and add timeout functionality (defaults to off).
Sponsored by: DARPA, NAI Labs
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@72 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-22 20:35:00 +00:00
Dag-Erling Smørgrav
3fab86788d
Oops, don't build openpam_static() unless OPENPAM_STATIC_MODULES is
...
defined.
Sponsored by: DARPA, NAI Labs
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@71 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-20 15:35:17 +00:00
Dag-Erling Smørgrav
8c45582bf1
Move the linker set stuff into a separate file, and rename the
...
linker set for cosmetic reasons.
Sponsored by: DARPA, NAI Labs
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@70 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-20 15:33:11 +00:00
Dag-Erling Smørgrav
242138f031
Move PAM_NUM_ITEMS from openpam_impl.h to pam_constants.h so it
...
doesn't go stale again.
Sponsored by: DARPA, NAI Labs
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@69 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-20 15:26:40 +00:00
Dag-Erling Smørgrav
3d506282e3
Allow the PAM_AUTHTOK_PROMPT item to override the prompt specified by
...
the module.
Sponsored by: DARPA, NAI Labs
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@68 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-20 15:22:09 +00:00
Dag-Erling Smørgrav
246b7f5d29
Terminate the environment list, and log the number of variables.
...
Sponsored by: DARPA, NAI Labs
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@67 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-20 00:22:14 +00:00
Dag-Erling Smørgrav
b6536adc2e
Include gendoc.pl in the distribution.
...
Sponsored by: DARPA, NAI Labs
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@66 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-18 19:36:09 +00:00
Dag-Erling Smørgrav
0e70f18f32
List new man pages, and add a target that regenerates the pages.
...
Sponsored by: DARPA, NAI Labs
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@65 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-18 19:35:19 +00:00
Dag-Erling Smørgrav
a3962c7edf
Regenerate, now with actual content.
...
Sponsored by: DARPA, NAI Labs
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@64 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-18 19:34:54 +00:00
Dag-Erling Smørgrav
645c7270fc
Add in-line documentation. Some functions still lack descriptions.
...
Sponsored by: DARPA, NAI Labs
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@63 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-18 19:31:10 +00:00