aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-01-31cmake: Update cmake defaultsAndreas Schneider3-33/+7
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2020-01-31cmake: Require at least cmake 3.5.0Andreas Schneider5-33/+16
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2020-01-31README: Rename to a markdown fileAndreas Schneider2-4/+4
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2020-01-31doc: Document PAM_WRAPPER_DISABLE_DEEPBINDAndreas Schneider2-5/+22
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2019-11-15pwrap: Fix pso_copy to work with libpam.so.0.84.2Andreas Schneider1-4/+27
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2019-11-15pwrap: Use a define in pso_copy()Andreas Schneider1-3/+5
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2019-11-15pwrap: Improve loggingAndreas Schneider1-14/+33
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2019-11-15cmake: Add checks for getprogname() and getexecname()Andreas Schneider2-0/+4
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2019-11-15pwrap: Add support for running with SanitizersAndreas Schneider1-5/+15
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2019-02-28cpack: Do not package pyc filesAndreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2018-09-26Bump version to 1.0.7HEADmasterAndreas Schneider2-3/+9
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
2018-09-20pwrap: Don't do a deep bind if we run with libasanmaster-pam_convAndreas Schneider1-1/+9
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jakub Hrozek <jakub.hrozek@posteo.se>
2018-09-20pam_set_items: Add loggingAndreas Schneider1-1/+99
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jakub Hrozek <jakub.hrozek@posteo.se>
2018-09-20pypamtest: Fix number of responsesAndreas Schneider1-23/+44
The number of responses needs to match the number of provided messages. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jakub Hrozek <jakub.hrozek@posteo.se>
2018-09-20pwrap: Add PAM_TEXT_INFO and PAM_ERROR_MSG to responsesAndreas Schneider1-0/+16
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jakub Hrozek <jakub.hrozek@posteo.se>
2018-09-20libpamtest: Check that message count matches response countAndreas Schneider1-10/+5
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jakub Hrozek <jakub.hrozek@posteo.se>
2018-08-28cmake: Don't keep CMAKE_REQUIRED_LIBRARIES aroundAndreas Schneider1-3/+3
This can cause issues with detecting features. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2018-08-28ctest: Move to new dashboardAndreas Schneider1-3/+3
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2018-08-28cmake: Fix python2 and python3 detectionAndreas Schneider2-30/+50
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2018-08-28pwrap: Improve error messageAndreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2018-08-28pwrap: Don't clean the stale dir twiceAndreas Schneider1-2/+0
This is already done above. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2018-08-28tests: Fix length calulationAndreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2018-08-28Rename COPYING to LICENSEAndreas Schneider2-1/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2018-08-28cpack: Do not package build dirs in source tarballAndreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2018-03-27Bump version to 1.0.6Andreas Schneider2-1/+5
Signed-off-by: Andreas Schneider <asn@samba.org>
2018-03-26pwrap: remove pdir handling from p_copy()Ralph Boehme1-18/+2
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2018-03-26pwrap: Fix overflow checkingRalph Boehme1-1/+95
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2018-03-26pwrap: Avoid strncpy in pwrap_init()Andreas Schneider1-4/+6
CID 47508 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2018-02-27pwrap: Add missing config.h includesAndreas Schneider2-0/+4
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2018-02-27pwrap: Remove trailing whitespacesAndreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2018-02-22Bump version to 1.0.5Andreas Schneider2-3/+9
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2018-02-22pwrap: Use a more unique name for pamdirNikos Mavrogiannopoulos1-24/+34
Parallel builds fail quite predictable when using libpam_wrapper. It seems that the temporary directory used are created sequentially and that caused issues like: PWRAP_ERROR(8157) - pwrap_load_lib_handle: Failed to dlopen library: /tmp/pam.0/lib/libpam.so.0: cannot open shared object file: No such file or directory When a directory was cleaned up, incorrectly. I have not pin-pointed the race condition, but this patch starts from a random letter (using the PID of the process) in the temporary directory name, providing better assurances of uniqueness. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2018-02-13cmake: Build python2 and python3 modules if possibleAndreas Schneider7-29/+95
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2017-11-23cmake: Improve PAM_WRAPPER_LOACATIONAndreas Schneider1-5/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2017-11-23pam_wrapper: Use a constant string format specifier in testUri Simchoni1-6/+6
This fixes a warning about non-constant format specifier. clang 4.0.0 warns against non-constant format specifier since it cannot validate the format against the parameters. Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2017-11-23pam_wrapper: use uintptr_t as base for const-discardingUri Simchoni1-2/+2
Seems like HAVE_INTPTR_T is not available on FreeBSD. Use the uintptr_t-base const discarding to avoid picky compiler warnings (other places in Samba also use uintptr_t). Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2017-11-23pam_wrapper: #ifdef-out unused functionsUri Simchoni1-2/+6
When pam_vsyslog is not available, avoid building functions that are being used to wrap it, in order to avoid picky compiler warnings. Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2017-10-18pypamtest: Fix Python 2.6 compatibilityLumir Balhar1-0/+9
PyErr_NewExceptionWithDoc() isn't available in Python 2.6 so it can be used only in higher versions of Python. Signed-off-by: Lumir Balhar <lbalhar@redhat.com> Reviewed-by: Andrew Bartlet <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2017-05-15Bump version to 1.0.4Andreas Schneider2-1/+5
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Kai Blin <kai@samba.org>
2017-05-15pwrap: Do not leak srcfd on errorAndreas Schneider1-1/+2
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Kai Blin <kai@samba.org>
2017-05-04pam_wrapper: Fix the build without pam_vsyslogVolker Lendecke1-0/+2
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2017-04-06Bump version to 1.0.3Andreas Schneider2-1/+5
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2017-04-06doc: Document PAM_WRAPPER_USE_SYSLOG variableAndreas Schneider2-5/+16
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2017-04-06pwrap: Do not log to syslog by default but use our loggingAndreas Schneider1-4/+40
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2017-04-06pwrap: Do an early return in pwrap_vlog if log level doesn't matchAndreas Schneider1-23/+25
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2017-04-06pwrap: Add pwrap_vlog() functionsAndreas Schneider1-11/+21
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2017-04-06pwrap: Remove useless breakAndreas Schneider1-1/+0
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2017-04-06libpamtest: Do not declare variable in for-loopAndreas Schneider1-1/+3
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2017-04-06pypamtest: Add sanity checks in new_conv_list()Andreas Schneider1-2/+10
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2017-04-06pypamtest: Do not use variable declaration in for-loopAndreas Schneider1-1/+2
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>