Commit graph

330 commits

Author SHA1 Message Date
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
Dag-Erling Smørgrav
c47feff831 Teach gendoc to parse a simple syntax for inline documentation.
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@62 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-18 19:08:28 +00:00
Dag-Erling Smørgrav
6b7c9e3837 The proper use of PAM_SYMBOL_ERR is to indicate an invalid argument
to pam_[gs]et_item(3).

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@61 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-18 12:26:17 +00:00
Dag-Erling Smørgrav
849893fd10 Log allocation failures.
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@60 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-13 13:21:37 +00:00
Dag-Erling Smørgrav
5758a3eb3b Release documentation for OpenPAM Caliopsis.
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@59 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-13 02:51:17 +00:00
Dag-Erling Smørgrav
c7df899506 Check *authtok - pam_get_item(3) will succeed even if the item is
NULL.

Sponsored by:	DARPA, NAI Labs


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

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@57 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-13 02:17:31 +00:00
Dag-Erling Smørgrav
104cfd8443 Add a missing 'continue' in the code for the PAM_SUCCESS case.
Add more debugging log messages.

Sponsored by:	DARPA, NAI Labs


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

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@55 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-13 02:14:55 +00:00
Dag-Erling Smørgrav
a9a4681bc5 Constify the last argument.
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@54 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-13 02:12:20 +00:00
Dag-Erling Smørgrav
0ebca05841 Log a debug message before calling the service function.
Accept PAM_SUCCESS and PAM_ABORT as valid return codes, even though
the normal code path will not call _openpam_check_error_code() if
the module returns one of them.

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@53 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-13 00:43:57 +00:00
Dag-Erling Smørgrav
f8ad159142 Oops, previous commit would cause sprintf() to overrun the malloc()ed
buffer by exactly one character.  Add some slack.

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@52 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-13 00:41:06 +00:00
Dag-Erling Smørgrav
1840f8c6fe Trim whitespace off the end of the format string, and add exactly
one newline character.

If DEBUG is defined, echo the log message to STDERR.

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@51 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-13 00:39:32 +00:00
Dag-Erling Smørgrav
ee40844c72 Sort the function names in the correct order (which is not the
alphabetical order).

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@50 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-13 00:37:01 +00:00
Dag-Erling Smørgrav
f62e36ce55 Fix an off-by-one bug that would in some circumstances trim off the
last character of a configuration line.

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@49 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-13 00:34:23 +00:00
Dag-Erling Smørgrav
fad3985e61 Fix a showstopping NULL dereference in pam_set_item(3).
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@48 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-12 22:42:52 +00:00
Dag-Erling Smørgrav
b2c0c77714 Packaging script.
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@47 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-09 16:52:37 +00:00
Dag-Erling Smørgrav
1a24ed0d99 Release documentation.
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@46 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-09 16:52:20 +00:00
Dag-Erling Smørgrav
f59fd06457 Regenerate to incorporate wording tweak and release date.
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@45 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-09 16:14:40 +00:00
Dag-Erling Smørgrav
f1d6fc9f30 Wording tweak.
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@44 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-09 16:12:49 +00:00
Dag-Erling Smørgrav
207f71c606 Connect the man pages to the build.
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@43 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-09 15:44:10 +00:00
Dag-Erling Smørgrav
32040ec571 Make C++-safe.
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@42 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-09 15:43:36 +00:00
Dag-Erling Smørgrav
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.

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@41 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-07 12:31:39 +00:00
Dag-Erling Smørgrav
b93fb425c5 Reuse the copyright from the last source file for the summary page.
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@40 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-07 12:30:25 +00:00
Dag-Erling Smørgrav
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.

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@39 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-07 12:22:08 +00:00
Dag-Erling Smørgrav
aada9aaafe Constify.
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@38 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-06 16:03:39 +00:00
Dag-Erling Smørgrav
d5943da7f6 Provide a fallback for platforms that don't support varadic macros.
Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@37 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-06 16:03:18 +00:00
Dag-Erling Smørgrav
c450908f60 PAM_CRED_PRELIM_CHECK is an XSSO typo. The correct name for the
constant is PAM_PRELIM_CHECK.

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@36 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-06 16:02:13 +00:00
Dag-Erling Smørgrav
f8a6c31c31 According to bde, it's OK to omit parentheses when taking the size
of an object rather than a type.

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@35 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-06 13:25:36 +00:00
Dag-Erling Smørgrav
b55243b5c1 Whoa, don't forget to actually resolve symbols once we've located a
dynamic module.

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@34 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-04 23:39:07 +00:00
Dag-Erling Smørgrav
e683738206 Behave more like Solaris when faced with an empty chain, or a chain
that lists modules that don't implement the required functionality.

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@33 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-04 23:36:07 +00:00
Dag-Erling Smørgrav
4166f73f32 Add support for static linking. Also rename a handful of constants
to reduce the chance of every running into a naming conflict.

Sponsored by:	DARPA, NAI Labs


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@32 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-04 23:22:40 +00:00
Dag-Erling Smørgrav
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.

Garçon!  More coffee!


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@31 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-02-04 16:52:17 +00:00