c9f74afc91Plug memory leak, reduce differences between these very similar functions, and {add,tweak} documentation.
Dag-Erling Smørgrav
2002-04-06 17:17:44 +0000
1eafe40ac3Change 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
6a52d30938Allocate 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
8113558d3aFix 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
b61ca53417Move 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
7a936aa997I 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
bad941d5b0Use $Id$ here, not $FreeBSD$.
Dag-Erling Smørgrav
2002-02-24 01:45:06 +0000
6f078f6f97Clear 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
ffabf53a8cDocument PAM_TRY_AGAIN as a valid return value (cf. XSSO pp. 72-73)
Dag-Erling Smørgrav
2002-02-23 18:03:53 +0000
424a6c3bd7Release documentation for OpenPAM Cantaloupe.
Dag-Erling Smørgrav
2002-02-22 22:37:42 +0000
2901b1dc78Distribute more files.
Dag-Erling Smørgrav
2002-02-22 22:36:53 +0000
5c3fadae16Add openpam_get_option() and openpam_set_option().
Dag-Erling Smørgrav
2002-02-22 21:33:49 +0000
a05b905e44Don't claim a function conforms to XSSO when it doesn't.
Dag-Erling Smørgrav
2002-02-22 21:22:30 +0000
4b5df4ce1aMask 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
8c45582bf1Move 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
242138f031Move 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
3d506282e3Allow the PAM_AUTHTOK_PROMPT item to override the prompt specified by the module.
Dag-Erling Smørgrav
2002-02-20 15:22:09 +0000
246b7f5d29Terminate the environment list, and log the number of variables.
Dag-Erling Smørgrav
2002-02-20 00:22:14 +0000
b6536adc2eInclude gendoc.pl in the distribution.
Dag-Erling Smørgrav
2002-02-18 19:36:09 +0000
0e70f18f32List new man pages, and add a target that regenerates the pages.
Dag-Erling Smørgrav
2002-02-18 19:35:19 +0000
a3962c7edfRegenerate, now with actual content.
Dag-Erling Smørgrav
2002-02-18 19:34:54 +0000
645c7270fcAdd in-line documentation. Some functions still lack descriptions.
Dag-Erling Smørgrav
2002-02-18 19:31:10 +0000
c47feff831Teach gendoc to parse a simple syntax for inline documentation.
Dag-Erling Smørgrav
2002-02-18 19:08:28 +0000
6b7c9e3837The 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
5758a3eb3bRelease documentation for OpenPAM Caliopsis.
Dag-Erling Smørgrav
2002-02-13 02:51:17 +0000
c7df899506Check *authtok - pam_get_item(3) will succeed even if the item is NULL.
Dag-Erling Smørgrav
2002-02-13 02:19:05 +0000
105c3d4de7pam_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
104cfd8443Add 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
39a1582d7eInitialize 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
a9a4681bc5Constify the last argument.
Dag-Erling Smørgrav
2002-02-13 02:12:20 +0000
0ebca05841Log a debug message before calling the service function.
Dag-Erling Smørgrav
2002-02-13 00:43:57 +0000
f8ad159142Oops, 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
1840f8c6feTrim 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
ee40844c72Sort the function names in the correct order (which is not the alphabetical order).
Dag-Erling Smørgrav
2002-02-13 00:37:01 +0000
f62e36ce55Fix 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
fad3985e61Fix a showstopping NULL dereference in pam_set_item(3).
Dag-Erling Smørgrav
2002-02-12 22:42:52 +0000
709fbe9015Regenerate 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
b93fb425c5Reuse the copyright from the last source file for the summary page.
Dag-Erling Smørgrav
2002-02-07 12:30:25 +0000
a139b62d54Introduce 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
d5943da7f6Provide a fallback for platforms that don't support varadic macros.
Dag-Erling Smørgrav
2002-02-06 16:03:18 +0000
c450908f60PAM_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
f8a6c31c31According 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
b55243b5c1Whoa, 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
e683738206Behave 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
4166f73f32Add 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
c5802864c3I 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
045b2435f2Pfffuit, 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
a84262fbf9libpam, not libfetch
Dag-Erling Smørgrav
2002-02-04 16:36:07 +0000
15339e69e4The dangers of cut'n'paste...
Dag-Erling Smørgrav
2002-02-04 16:35:32 +0000
93f3359d7aAdd the file I forgot in #6131.
Dag-Erling Smørgrav
2002-02-02 18:38:02 +0000
292bd9156aMove 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
46638aa621Add 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
99d01aea5eUse '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
a980e1d3daClear 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
298b19ac93Clobber items before freeing them.
Dag-Erling Smørgrav
2002-02-02 17:47:36 +0000
4c413f4604Add a sample application.
Dag-Erling Smørgrav
2002-02-01 22:09:36 +0000
e106ecde0bAdd two sample modules.
Dag-Erling Smørgrav
2002-02-01 21:52:02 +0000
236a7d8507Rename 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
8c50f570daIt 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
ed8e188f27Belatedly 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
d57c2aa6ecRename openpam.h to openpam_impl.h to avoid confusion with <security/openpam.h>.
Dag-Erling Smørgrav
2002-02-01 20:49:12 +0000
fbb6651eb0Add 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