summaryrefslogtreecommitdiff
path: root/libtac/lib/authen_s.c
AgeCommit message (Collapse)Author
2017-06-15Do not set password for ASCII loginKyeong Yoo
For ASCII login, data field is not used ([1] Section 9.0.2 Inbound ASCII Login). So do not add the user password for the login authentication with type ASCII. [1] https://tools.ietf.org/html/draft-grant-tacacs-02
2016-10-05Merge pull request #65 from pprindeville/simplify-md5-operationsPaweł Krawczyk
Various cryptography improvements
2016-10-04Make TACDEBUG and TACSYSLOG into varargs macrosPhilip Prindeville
Also, correct the -DTACDEBUG_AT_RUNTIME scenario so that TACDEBUG() binds correct when used in an if-body with an else following it, e.g.: if (test) TACDEBUG(LOG_DEBUG, "test is true"); else return; would previously have ended up as expanding to: if (test) if (tac_debug_enable) logmsg(LOG_DEBUG, "test is true"); else return; with the indent redone to reflect the nesting correctly. This now expands (correctly) to: if (test) do { if (tac_debug_enable) logmsg(LOG_DEBUG, "test is true"); } while (0); else return;
2016-10-04Modularize computing CHAP digestPhilip Prindeville
It's easier to read, debug, and maintain that way. Also, avoid unnecessary marshalling while we're at it, since MD5Update() can be called iteratively, which obviates having to gather the data to be digested into a contiguous buffer.
2016-10-04No need to pass in payload length when the header already includes itPhilip Prindeville
Why make copies of the payload length to pass as parameters when it's already present in the header?
2016-09-30Fix build breakage when compiling without openssl-develPhilip Prindeville
Fix the prototyping in lib/md5.h. Accommodate the function name differences between lib/md5.h and the equivalent functions in openssl/md5.h. Accommodate replacement of MD5_LEN with MD5_LBLOCK (note that MD5_CBLOCK and MD5_DIGEST_LEN aren't referenced) and use this consistently.
2016-07-23source formattingPaweł Krawczyk
2016-07-23Fix warningsPaweł Krawczyk
Fix various declaration inconsistencies that were throwing compiler warnings
2016-05-03port to OpenSSL MD5Paweł Krawczyk
2016-03-25Password change support for TACACS+Ben Schumacher
Allow pam_tacplus to do challenge/response authentication for TAC backends that force password change during authentication flow. Also add support for password change via 'passwd' by implementing pam_sm_chauthtok. Amongst other things, this requires explicitly managing the sequence number for compatability with some versions of Cisco ACS.
2015-06-20tac_login is a static array so it's never NULLPaweł Krawczyk
2013-03-29removed double xcalloc() function; do not leak memory for these small ↵Walter de Jong
buffers; added safe xstrcpy()
2012-09-16Rearrange header file include for libtacJeroen Nijhof
2012-09-08Bumped version to 1.3.8 and renamed rem_addr to r_addrJeroen Nijhof
2012-06-12Handle attributes which contains no valueJeroen Nijhof
2012-03-18Changed e-mail and improved accountingJeroen Nijhof
2011-08-19Finally got rid of all goto illness!Jeroen
2011-08-19Major contribution by Darren BeslerJeroen
2010-12-22Initial commitJeroen Nijhof