Klas Lindfors
26cc397ba5
no need for a temp pointer when writing output of filter_result_len()
2015-03-04 09:51:55 +01:00
Klas Lindfors
336351188b
drop password parameter for authorized_user_token_ldap()
2015-03-04 09:27:21 +01:00
Klas Lindfors
5709a4479a
drop the ldap_bind_no_anonymous feature
...
Sending the users password out in another direction is scary and
requires more thought. Ideally this should be solved by using ldap
GSSAPI or similar instead of sending a cleartext password over the
network.
2015-03-04 09:14:53 +01:00
Klas Lindfors
0d3a4f4f75
consider all success as valid session
2015-03-04 09:14:14 +01:00
Klas Lindfors
f6e1ec9483
don't throw const away in cast
2015-03-04 09:11:09 +01:00
Klas Lindfors
311958093d
client_id is supposed to be unsigned
2015-03-04 08:59:55 +01:00
Klas Lindfors
6c121c8da3
make sure rc is initialized before using
2015-03-04 08:50:08 +01:00
Klas Lindfors
663fa9a8a4
don't use c++ style comments
2015-03-04 08:47:11 +01:00
Klas Lindfors
3819b40430
don't use c++ style comments
2015-03-04 08:46:52 +01:00
Klas Lindfors
4faddc54f4
conform to other code
2015-03-04 08:45:03 +01:00
Klas Lindfors
8dc05e338e
reference github with https, not git@
...
fixes #54
2015-02-20 22:34:53 +01:00
Klas Lindfors
6cd0f0c1b3
simplify filter_result_len()
...
and fixup warnings
2015-02-16 14:29:21 +01:00
Klas Lindfors
878c62dd56
drop extra options for bind dn and password
2015-02-16 10:10:53 +01:00
Klas Lindfors
f579f256c0
Merge commit 'aa87979eb84adb3adef170dac6ff2285ba43cd26' into features/ldap
...
Conflicts:
README
2015-02-16 09:03:45 +01:00
Klas Lindfors
3b3a96efc2
add ykclient_global_init() and ykclient_global_done() calls
2015-02-16 08:19:59 +01:00
Klas Lindfors
4b8b24d189
ignore
2015-02-16 08:13:17 +01:00
Klas Lindfors
ebb024f340
add debug print with version
2015-02-13 12:33:43 +01:00
Klas Lindfors
f6bc5a5098
bump versions after release
2015-02-12 14:24:33 +01:00
Klas Lindfors
f5363a207b
NEWS for 2.18
2015-02-12 14:13:48 +01:00
Klas Lindfors
eca150344b
make sure out-of-tree builds work
2015-02-12 14:10:54 +01:00
Klas Lindfors
ec730d7cb4
add -V for version to ykpamcfg and exit earlier
...
also error on any part of iterations being non-numeric
2015-02-12 13:38:57 +01:00
Klas Lindfors
7075afcae9
fix format specifiers
2015-01-29 12:54:43 +01:00
Klas Lindfors
7066011eef
add --enable-cppcheck
2015-01-29 12:54:02 +01:00
Klas Lindfors
36e10a7ca7
fixup check for pam_modutil_drop_priv()
...
this was broken in 68d3f5879e
fixes #50
2015-01-21 10:12:46 +01:00
Klas Lindfors
b02ab9902a
free more unfreed memory in the pam_response structure
2015-01-21 09:57:02 +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
bee24b3672
add notice about tests requiring perl and Net::LDAP::Server
2015-01-20 09:19:53 +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
50f645c2c6
add more travis config
2015-01-19 21:39:12 +01:00
Klas Lindfors
e9b34b3924
fixup some warnings in test
2015-01-19 21:17:42 +01:00
Klas Lindfors
f6cddabd6f
add EXTRA_DIST for tests/aux
2015-01-19 21:04:12 +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