Klas Lindfors
fc9a4255f0
refactor the debug mode
...
add a debug_file option for where to write debug info (default to stdout)
stop compiling with DEBUG_PAM and PAM_DEBUG
make debugging behave the same way on linux-pam and openpam
2016-06-16 09:02:49 +02:00
Klas Lindfors
bda491c413
add tests for empty otp part to check_user_token()
2016-06-13 10:49:06 +02:00
Klas Lindfors
33e7013916
install docbook-xsl instead of docbook-xml for travis
...
seems to help with a2x hangs
2016-06-13 10:45:10 +02:00
Klas Lindfors
b2ea37b284
set -e later for travis and hope for the best
2015-11-13 10:59:29 +01:00
Klas Lindfors
1968a1ea32
add brew update for travis
2015-11-13 10:53:24 +01:00
Klas Lindfors
9c8553f297
setup travis to do multi-os builds
2015-10-08 10:24:07 +02:00
Klas Lindfors
7aa75e0af8
drop the non-portable test test
...
it linked with the module and didn't really do anything, making the test
suite more fragile than necessary
2015-10-08 10:24:07 +02:00
Klas Lindfors
237ed18b9f
use pam_modutil_getpwnam() if it's available
...
also refactor to pass in a passwd struct to the util functions
2015-09-08 09:15:07 +02:00
Klas Lindfors
15cab00173
add a test for a user showing up twice in the file
2015-08-18 14:22:00 +02:00
Alex Feinberg
362ca9cb92
Support comments in authfile
...
Adds support for comments (indicated by lines starting with '#') in
authfiles.
2015-08-10 14:37:02 -07:00
Klas Lindfors
e66ed787d1
export LDAPNOINIT=1 for tests so we don't run with systems ldap config
...
fixes #61
2015-04-07 16:33:52 +02:00
Klas Lindfors
8f61e253d3
more debugging on mocks
2015-04-07 09:21:00 +02:00
Klas Lindfors
0e77cffb67
add some debug logging to ldap and ykval mocks
2015-04-07 08:55:39 +02:00
Klas Lindfors
1aba59cde0
skip the repo token for coveralls
2015-03-10 08:01:03 +01:00
Klas Lindfors
35c8acce6e
simple ldap filter test
2015-03-04 11:12:53 +01:00
Klas Lindfors
58382bf7fc
make sure filter is null terminated and return length including null
2015-03-04 11:12:53 +01:00
Klas Lindfors
686a47accf
drop authfile for ldap_cfg
2015-03-04 10:24:46 +01:00
Klas Lindfors
f579f256c0
Merge commit 'aa87979eb84adb3adef170dac6ff2285ba43cd26' into features/ldap
...
Conflicts:
README
2015-02-16 09:03:45 +01:00
Klas Lindfors
eca150344b
make sure out-of-tree builds work
2015-02-12 14:10:54 +01:00
Klas Lindfors
0b0c8d80aa
strdup() the OTP returned
2015-01-21 08:58:30 +01:00
Klas Lindfors
9cdf8f76cd
update build-and-test
2015-01-20 10:53:47 +01:00
Klas Lindfors
2cfac9e6a2
enable coverage build for travis
2015-01-20 10:48:31 +01:00
Klas Lindfors
de0eed5be4
add a --enable-coverage switch
2015-01-20 10:25:55 +01:00
Klas Lindfors
e7fadcf073
only run the ldap "server" if we're compiling with ldap
2015-01-20 09:21:38 +01:00
Klas Lindfors
4ab78f54b5
add a test for authfile user with two ok public ids
2015-01-20 09:17:45 +01:00
Klas Lindfors
c5489c93c5
add a second successful ldap test
...
with two valid yubiKeyId
2015-01-20 09:15:37 +01:00
Klas Lindfors
c2eec8d69a
use higher ports and put them in constants
2015-01-20 08:56:14 +01:00
Klas Lindfors
e9b34b3924
fixup some warnings in test
2015-01-19 21:17:42 +01:00
Klas Lindfors
5d7e0030fa
add a mocked ldap server and ldap tests
...
relates #44
2015-01-19 21:04:11 +01:00
Klas Lindfors
086bfbb3f7
add a test for wrong otp and small fixup to mock server
2015-01-19 10:37:51 +01:00
Klas Lindfors
9038130e88
drop id from data struct and use index in array
2015-01-19 10:24:30 +01:00
Klas Lindfors
818fe93f3d
pass port correctly
2015-01-19 10:24:13 +01:00
Klas Lindfors
bcfee637af
add test for wrong otp for user
2015-01-19 10:12:55 +01:00
Klas Lindfors
196a872a00
add test for failure-case
2015-01-19 10:05:23 +01:00
Klas Lindfors
95db3d4246
add a second child and mock server
2015-01-19 09:59:43 +01:00
Klas Lindfors
ca7088525f
fix some warnings
2015-01-19 09:59:43 +01:00
Klas Lindfors
7a4d812925
restructure the test some
2015-01-19 09:51:38 +01:00
Klas Lindfors
75fc2b909d
make the recent pam_test more modularised and generic
2015-01-19 09:50:00 +01:00
Klas Lindfors
aae9a9add5
calculate size of cfg array
2015-01-19 09:28:55 +01:00
Klas Lindfors
8366721fd1
test a bit more and switch the mock to perl
2015-01-16 15:24:45 +01:00
Klas Lindfors
286de92cd3
test an OK authentication
...
add a simple http server in bash that validates the OTP
2015-01-16 11:32:29 +01:00
Klas Lindfors
5b17a1931e
add first step of tests calling the actual module
2015-01-16 10:20:10 +01:00
Meno Abels
dae9380ac7
added a better ldap handling, and to allow query active directory
2014-11-20 23:15:39 +01:00
Klas Lindfors
0b092d4d06
add test for check_user_token()
2014-08-27 11:31:39 +02:00
Klas Lindfors
ba2775619f
make argv const to get rid of warning
2014-08-27 11:00:49 +02:00
Klas Lindfors
666d717b1d
use constants
2014-08-27 10:45:26 +02:00
Klas Lindfors
85ef438041
close the tmpfile when done..
2014-08-27 10:35:38 +02:00
Klas Lindfors
d6e26978dc
remove some warnings from the new test.
2014-08-27 10:33:43 +02:00
Klas Lindfors
1159b1f39e
add stdlib.h
2014-08-27 10:22:29 +02:00
Klas Lindfors
d1c4eb7749
some tests of loading chalresp state
2014-08-27 10:19:15 +02:00