Dag-Erling Smørgrav
05bd3febc0
Gitify.
2021-10-20 15:44:03 +02:00
Dag-Erling Smørgrav
9cd25f7e7d
Switch from $Id$ to $OpenPAM$.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@938 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2017-04-30 21:34:42 +00:00
Dag-Erling Smørgrav
c75883564d
Move OATH development to a branch. OATH will soon disappear entirely
...
from this repository as Cryb takes over.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@907 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2017-01-18 09:39:01 +00:00
Dag-Erling Smørgrav
26fbccde77
Bump dates if required on files modified in 2014 or later.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@890 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2016-01-11 16:22:09 +00:00
Dag-Erling Smørgrav
d040ae3d29
Add a man page for pam_oath(8) which I've had lying around for years.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@885 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2016-01-11 13:45:17 +00:00
Dag-Erling Smørgrav
e89fab019e
Fix NULL check in pam_oath_save_key() error-handling code, which
...
checked the wrong variable.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@875 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2016-01-09 17:22:34 +00:00
Dag-Erling Smørgrav
17c3fff539
For testing purposes, add a pam_return module which can be configured to
...
return any value, either by name (e.g. PAM_AUTH_ERR) or by number, even
if that number is out of range.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@873 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2015-12-01 19:38:01 +00:00
Dag-Erling Smørgrav
ce014fab92
Silence all remaining qual-cast warnings except in the test suite.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@854 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2015-01-27 22:13:03 +00:00
Dag-Erling Smørgrav
ac54af0d69
Add configure options to build as much as possible using the system
...
libpam and / or liboath. Doing so disables building the corresponding
library and its documentation, but still builts the corresponding tools
and modules and runs the unit tests.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@834 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2014-10-28 10:25:58 +00:00
Dag-Erling Smørgrav
385dfb33cb
Use $() instead of @@ in Makefiles.
...
Don't build OATH man pages if --without-oath.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@833 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2014-10-28 09:03:41 +00:00
Dag-Erling Smørgrav
05630b94be
Spell the name of the University of Oslo in English.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@799 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2014-07-10 17:16:48 +00:00
Dag-Erling Smørgrav
59313f56a4
Do not use oath_[ht]otp_match() as predicates - a non-zero return can
...
mean an error occurred. We should probably switch to the standard
Unix idiom of returning 0 for success.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@756 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2014-01-22 15:13:56 +00:00
Dag-Erling Smørgrav
9c592d628c
Note that saving the keyfile updates a TOTP key's lastused parameter.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@753 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2014-01-20 10:48:39 +00:00
Dag-Erling Smørgrav
a03bbedb50
Increase the default synchronization window, and provide options to
...
control it.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@707 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-08-16 13:45:55 +00:00
Dag-Erling Smørgrav
0c4d5add5f
Implement key saving, and change the outcome of failing to save the
...
key from a system error to a service error.
Note that currently, an error saving the key may destroy the original
keyfile. This needs to be adressed.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@705 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-08-16 12:32:26 +00:00
Dag-Erling Smørgrav
d3f359e2df
Major cleanup.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@700 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-08-15 17:17:15 +00:00
Dag-Erling Smørgrav
880bd5c2d4
s/oath_dummy_key/oath_key_dummy/
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@697 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-08-15 16:24:28 +00:00
Dag-Erling Smørgrav
5847a34802
The --with-modules-dir configure option never quite worked, and became
...
even more badly broken when the dynamic loader was rewritten in March.
Reimplement it the way it was always meant to work (but never did):
If --with-modules-dir was specified, modules will be installed in that
directory and the dynamic loader will look for them there. If it was
not specified, modules will be installed in libdir and the dynamic
loader will use the standard search path (/usr/lib:/usr/local/lib). In
both cases, a policy file can still name a module by its full path.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@690 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-08-15 13:22:51 +00:00
Dag-Erling Smørgrav
496bd4632b
- Add module options for specifying what to do if the user has no key
...
or if the key was unreadable or invalid.
- Fix inverted success / failure logic.
The module is now in a (barely) usable state.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@676 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-03-18 19:20:54 +00:00
Dag-Erling Smørgrav
f6205baa20
prop sweep
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@648 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-03-05 17:54:27 +00:00
Dag-Erling Smørgrav
a9a5497d3f
Reorganize:
...
- move libpam into lib/libpam
- move the OATH code into lib/liboath
- move oath.h into include/security
- update all pointers
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@646 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-03-05 17:49:06 +00:00
Dag-Erling Smørgrav
bbcd45ace7
Add code to load a key and obtain and verify a response from the user.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@644 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-03-05 15:25:22 +00:00
Dag-Erling Smørgrav
e39d0abb85
- Add a provisional API for computing the current HOTP or TOTP code.
...
- Add a provisional API for matching a user response.
- Add a provisional API for generating a dummy key. When one of the
matching functions recognizes a dummy key, it will go through the
motions but never report a match.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@643 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-03-05 15:24:00 +00:00
Dag-Erling Smørgrav
2fe7fdd088
Move WITH_PAM_* up from the leaf Makefiles into the parent Makefile.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@642 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-03-05 10:27:29 +00:00
Dag-Erling Smørgrav
a263be7c26
Fix encoder bugs: increment *olen rather than olen, and use the correct
...
mask for base64 (which was copy-pasted from the base32 code)
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@641 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-03-05 09:53:33 +00:00
Dag-Erling Smørgrav
2ec4f668a9
Add prototypes for the functions in oath_key.c.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@638 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-03-03 23:34:50 +00:00
Dag-Erling Smørgrav
92d483a21a
Implement URI encoding.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@628 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-02-28 12:12:53 +00:00
Dag-Erling Smørgrav
16e805fc4c
After decoding a URI, check the result and set default values.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@627 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-02-28 12:11:45 +00:00
Dag-Erling Smørgrav
3d15ee7552
Implement otpauth URI parsing (untested)
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@626 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-02-27 16:19:56 +00:00
Dag-Erling Smørgrav
2546d3cf58
WIP: OATH module
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@623 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-02-25 07:24:51 +00:00
Dag-Erling Smørgrav
4978bcf862
Limit exported symbols to the PAM service functions.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@622 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-02-25 07:23:00 +00:00
Dag-Erling Smørgrav
f70250359e
Use AM_CPPFLAGS instead of INCLUDES.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@620 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2013-02-24 18:51:10 +00:00
Dag-Erling Smørgrav
16844f8456
Update copyright and release notes.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@437 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2011-09-13 12:00:13 +00:00
Dag-Erling Smørgrav
b4871fa6dc
Update copyright dates.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@435 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2010-03-10 11:38:49 +00:00
Dag-Erling Smørgrav
2a4b841f25
-lfoo goes in LIBADD, not LDFLAGS.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@429 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2010-03-09 17:51:29 +00:00
Dag-Erling Smørgrav
1f70254313
Fix double-UTF
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@423 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2009-10-29 17:08:38 +00:00
Dag-Erling Smørgrav
e9776bfa73
Convert everything to UTF-8.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@422 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2009-10-18 22:19:57 +00:00
Dag-Erling Smørgrav
5a523baf2b
Update copyright
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@420 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2009-06-12 19:12:42 +00:00
Dag-Erling Smørgrav
9f0d6d6267
Update copyright, and coincidentially root out the last remaining vestige
...
of iso-8859-1 in favor of utf-8.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@417 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2008-02-14 18:36:22 +00:00
Dag-Erling Smørgrav
ba75190ad0
Convert to correct config.h idiom. We must include it before any other
...
header, as it may define symbols which modify the behaviour of those headers.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@416 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2008-02-14 18:33:24 +00:00
Dag-Erling Smørgrav
fd5e5d917d
Update copyright.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@408 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2007-12-21 11:36:24 +00:00
Dag-Erling Smørgrav
637fafa964
Track namespace changes.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@402 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2007-11-28 12:26:43 +00:00
Dag-Erling Smørgrav
613f93be19
Silence warnings.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@394 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2007-06-03 15:43:18 +00:00
Dag-Erling Smørgrav
ce5921ba4c
Convert $P4$ tags to $Id$.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@320 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2006-02-16 20:33:19 +00:00
Dag-Erling Smørgrav
491c21814b
Return specific error codes for pam_sm_setcred() and pam_sm_chauthtok()
...
instead of the generic PAM_PERM_DENIED.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@310 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2005-06-10 08:19:09 +00:00
Dag-Erling Smørgrav
0721e593ae
Add $P4$ tags to files that didn't already have them.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@309 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2005-06-09 21:35:39 +00:00
Dag-Erling Smørgrav
5de0bf6bae
Autoconfuse.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@251 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-09 01:29:37 +00:00
Dag-Erling Smørgrav
049385996b
Give up trying to keep track of what has changed and what hasn't;
...
just slap a 2003 copyright on everything.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@245 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-01 14:34:11 +00:00
Dag-Erling Smørgrav
82eec0110d
Make this build on glibc systems.
...
Submitted by: Dmitry V. Levin <ldv@altlinux.org>
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@225 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-24 18:33:26 +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