Dag-Erling Smørgrav
df6d850a38
Roll OpenPAM Dianthus.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@213 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-02 16:59:28 +00:00
Dag-Erling Smørgrav
8b01e58103
Change the contact address to des@freebsd.org.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@212 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-02 16:57:28 +00:00
Dag-Erling Smørgrav
309a306cfd
Constify the return value from pam_getenv(3). This violates XSSO,
...
but I consider that a bug in the spec.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@211 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-01 23:10:49 +00:00
Dag-Erling Smørgrav
ef2e6d8690
If compiled with -DDEBUG, enable debugging right before calling a
...
module which has the "debug" option, and disable it upon return.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@210 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-01 18:20:03 +00:00
Dag-Erling Smørgrav
8dcae81fe3
Add a global variable controlling the output of debugging messages.
...
This allows modules etc. to emit PAM_LOG_DEBUG messages independently
of whether libpam was compiled with -DDEBUG.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@209 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-01 18:18:06 +00:00
Dag-Erling Smørgrav
a57c4713cf
Avoid dereferencing an unitialized dl handle. Also, add a cast to
...
avoid a warning about assigning void * to a function pointer.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@208 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-01 18:13:09 +00:00
Dag-Erling Smørgrav
13e7ee3988
Some compilers (gcc at least) promote the integer literal 0x80000000
...
to long, while enums are required to fit in an int. To avoid the
warning this causes, use (-0x7fffffff - 1) instead of 0x80000000.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@207 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-01 18:11:15 +00:00
Dag-Erling Smørgrav
01c7951719
Variable initialization issues.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@206 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-01 17:57:17 +00:00
Dag-Erling Smørgrav
c85f7eef5b
Avoid a NULL pointer dereference if PAM_CONV is non-NULL but its
...
conv member is NULL.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@205 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-02-16 12:09:51 +00:00
Dag-Erling Smørgrav
80c9bf5c74
Apparently, nobody ever uses pam_getenv(3), because nobody has ever
...
complained that it didn't work. Make it return a pointer to the
actual value of the requested environment variable.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@204 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-02-08 21:13:00 +00:00
Dag-Erling Smørgrav
b34ff41a8c
Nothing beats being an idiot! Avoid passing expressions with side
...
effects as arguments to macros. Also impose some sort of consistency
in the naming of variables that hold error codes.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@203 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-02-08 16:41:53 +00:00
Dag-Erling Smørgrav
ace4e1987e
If the saved effective uid is the same as the current effective uid,
...
just destroy the saved credentials and return.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@202 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-02-07 16:07:07 +00:00
Dag-Erling Smørgrav
4ad428dc12
If a set of saved credentials already exists when we are called, log
...
a debugging message and fail.
If the effective uid is non-zero but identical to the target uid,
save the current credentials and return without doing anything else.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@201 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-02-07 16:04:39 +00:00
Dag-Erling Smørgrav
a657d3746c
More debugging macros: ENTERI() (item type), ENTERN() (int),
...
ENTERS() (string). Rename RETURNI() to RETURNN() for consistency.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@200 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-02-02 13:10:00 +00:00
Dag-Erling Smørgrav
0dcf0274b0
#include <stddef.h> is sufficient to define size_t, and is far more
...
portable (and less polluting) than #include <sys/types.h>.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@199 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-01-23 22:29:40 +00:00
Dag-Erling Smørgrav
26767ae03c
#include <sys/types.h> (for size_t) against my better judgement.
...
Solaris does it too, so at least I'm not the odd one out.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@198 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-01-22 17:44:40 +00:00
Dag-Erling Smørgrav
8315910546
Release OpenPAM Daffodil.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@197 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-01-06 10:15:01 +00:00
Dag-Erling Smørgrav
bd2bbf2542
Credit Juli Mallett for her many contributions.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@196 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-01-06 10:03:35 +00:00
Dag-Erling Smørgrav
a14b5e1ca6
Document dependency on <sys/types.h> (for size_t)
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@195 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-01-06 10:02:34 +00:00
Dag-Erling Smørgrav
8423c93aa2
On second thought, use RETURNS() since environment variables are
...
strings.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@194 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-01-03 03:49:21 +00:00
Dag-Erling Smørgrav
022f6ea6fd
Use RETURNP() rather than RETURNC().
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@193 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-01-03 03:47:06 +00:00
Dag-Erling Smørgrav
e8818402d5
Have prompt() return NULL if EOF occurred on stdin, instead of acting
...
as if the user had just pressed enter.
Obtained from: TrustedBSD
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@192 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-01-03 03:34:13 +00:00
Dag-Erling Smørgrav
82a6d21d8c
Fix a typo in the active version of RETURNC(), and a cosmetic nit
...
in the active version of RETURNI().
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@191 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-01-03 03:30:52 +00:00
Dag-Erling Smørgrav
1a5f406a0b
Credit Mikko Työläjärvi for his patch (see change 23072)
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@190 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-01-03 03:21:32 +00:00
Dag-Erling Smørgrav
fa370a5bde
Fix typo in debugging macro.
...
Submitted by: Mikko Tyolajarvi <mbsd@pacbell.net>
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@189 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-01-03 03:17:16 +00:00
Dag-Erling Smørgrav
e2a27bd9bf
OpenPAM Cyclamen is ready to roll.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@188 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-12-12 17:16:58 +00:00
Dag-Erling Smørgrav
20a7a7ae90
Instrument entry and exit points.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@187 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-12-12 17:06:29 +00:00
Dag-Erling Smørgrav
bf8598063a
Record which primitive is currently executing before calling the
...
service module. Use that information to generate a much better
error message when indirect recursion is detected.
Instrument openpam_dispatch()'s entry and exit points.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@186 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-12-12 17:04:04 +00:00
Dag-Erling Smørgrav
b0ba976453
Declare _pam_func_name and _pam_err_name.
...
Add a member to the pam_handle structure indicating which primitive
is currently executing.
Add a ton of debugging macros.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@185 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-12-12 17:01:39 +00:00
Dag-Erling Smørgrav
2fb80ca71d
Add an array containing the API names for the PAM primitives.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@184 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-12-12 16:59:21 +00:00
Dag-Erling Smørgrav
7b3ff93221
Add an array of symbolic names for the PAM error codes.
...
Fix a minor style nit.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@183 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-12-12 16:58:28 +00:00
Dag-Erling Smørgrav
9435ecd893
Add a counter to the error code enumeration.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@182 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-12-12 16:56:34 +00:00
Dag-Erling Smørgrav
fabb43b6cb
Bring up to date, this file hasn't been updated in nearly eight months.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@181 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-12-04 16:18:06 +00:00
Dag-Erling Smørgrav
09bf18148f
Prepare for the next release (Cyclamen).
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@180 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-12-04 16:16:55 +00:00
Dag-Erling Smørgrav
c015dbc7fc
Credit eric@ for his assistance with MacOS.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@179 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-12-04 16:16:32 +00:00
Dag-Erling Smørgrav
3305c019d0
The pam_dummy module is dead.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@178 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-12-04 15:45:13 +00:00
Dag-Erling Smørgrav
0ae2ede32c
Remove the pam_dummy module; it serves no discernible purpose.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@177 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-12-04 15:43:26 +00:00
Dag-Erling Smørgrav
eb35533c55
Whitespace nit.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@176 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-12-04 15:20:54 +00:00
Dag-Erling Smørgrav
e9c79d25f0
Make the log level default to PAM_LOG_ERROR.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@175 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-12-04 15:15:03 +00:00
Dag-Erling Smørgrav
1d796b814b
Support /usr/local/etc/pam.conf, for completeness' sake.
...
Sponsored by: DARPA, NAI Labs
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@174 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-10-28 13:39:45 +00:00
Dag-Erling Smørgrav
6d0c37d0e4
Grammar nit + reorder entries.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@173 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-10-28 13:37:44 +00:00
Dag-Erling Smørgrav
20ac9e3ad0
#include <security/pam_appl.h> to get a prototype for pam_get_user().
...
Sponsored by: DARPA, NAI Labs
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@172 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-10-28 13:26:18 +00:00
Dag-Erling Smørgrav
53aca9c132
Build all man pages when rolling a release.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@171 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-10-28 12:27:52 +00:00
Dag-Erling Smørgrav
fa4be69c1b
Write message to stdout, not stderr.
...
Submitted by: jmallett
Sponsored by: Rachel Hestilow <rachel@jerkcity.com>
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@170 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-10-22 19:00:14 +00:00
Dag-Erling Smørgrav
25a8125b1c
Formatting nit.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@169 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-06-30 23:59:44 +00:00
Dag-Erling Smørgrav
a5d90305a3
Bite the bullet and move PAM_{,OLD}AUTHTOK_PROMPT to make room for
...
PAM_REPOSITORY, which is defined to 10 in Solaris 9.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@168 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-06-30 23:35:29 +00:00
Dag-Erling Smørgrav
0f34cab008
Don't forget the sample pam_unix module.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@167 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-06-30 23:34:53 +00:00
Dag-Erling Smørgrav
866532baee
Release checklist.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@166 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-06-30 23:20:58 +00:00
Dag-Erling Smørgrav
a40e1b6ed2
OpenPAM Citronella.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@165 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-06-30 23:20:26 +00:00
Dag-Erling Smørgrav
913c1aaf47
Add the PAM_REPOSITORY item (from Solaris 9).
...
Sponsored by: DARPA, NAI Labs
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@164 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2002-06-30 23:11:38 +00:00