Only in pam_url.mod/examples: myauth.php Only in pam_url.mod/examples: pluto.pam Binary files pam_url/.git/index and pam_url.mod/.git/index differ diff -U3 -r pam_url/.git/logs/HEAD pam_url.mod/.git/logs/HEAD --- pam_url/.git/logs/HEAD 2022-01-23 04:17:48.987770720 +0100 +++ pam_url.mod/.git/logs/HEAD 2022-01-22 08:33:42.799835617 +0100 @@ -1 +1 @@ -0000000000000000000000000000000000000000 58e33bfaed3064ddc93f352b8272d42c17a20313 root 1642907868 +0100 clone: from https://github.com/mricon/pam_url +0000000000000000000000000000000000000000 58e33bfaed3064ddc93f352b8272d42c17a20313 root 1642836822 +0100 clone: from https://github.com/mricon/pam_url diff -U3 -r pam_url/.git/logs/refs/heads/master pam_url.mod/.git/logs/refs/heads/master --- pam_url/.git/logs/refs/heads/master 2022-01-23 04:17:48.987770720 +0100 +++ pam_url.mod/.git/logs/refs/heads/master 2022-01-22 08:33:42.799835617 +0100 @@ -1 +1 @@ -0000000000000000000000000000000000000000 58e33bfaed3064ddc93f352b8272d42c17a20313 root 1642907868 +0100 clone: from https://github.com/mricon/pam_url +0000000000000000000000000000000000000000 58e33bfaed3064ddc93f352b8272d42c17a20313 root 1642836822 +0100 clone: from https://github.com/mricon/pam_url diff -U3 -r pam_url/.git/logs/refs/remotes/origin/HEAD pam_url.mod/.git/logs/refs/remotes/origin/HEAD --- pam_url/.git/logs/refs/remotes/origin/HEAD 2022-01-23 04:17:48.987770720 +0100 +++ pam_url.mod/.git/logs/refs/remotes/origin/HEAD 2022-01-22 08:33:42.799835617 +0100 @@ -1 +1 @@ -0000000000000000000000000000000000000000 58e33bfaed3064ddc93f352b8272d42c17a20313 root 1642907868 +0100 clone: from https://github.com/mricon/pam_url +0000000000000000000000000000000000000000 58e33bfaed3064ddc93f352b8272d42c17a20313 root 1642836822 +0100 clone: from https://github.com/mricon/pam_url diff -U3 -r pam_url/INSTALL pam_url.mod/INSTALL --- pam_url/INSTALL 2022-01-23 04:17:48.995770636 +0100 +++ pam_url.mod/INSTALL 2022-01-23 04:28:03.689252966 +0100 @@ -1,3 +1,4 @@ + To install pam_url type: $ make clean all $ su -c "make install" diff -U3 -r pam_url/Makefile pam_url.mod/Makefile --- pam_url/Makefile 2022-01-23 04:17:48.995770636 +0100 +++ pam_url.mod/Makefile 2022-01-23 04:13:43.094375557 +0100 @@ -34,7 +34,7 @@ install: install -D -m 755 ${obj} ${DESTDIR}/${pamlib}/${obj} - install -D -m 644 examples/pam_url.conf ${DESTDIR}/etc/pam_url.conf + test -s ${DESTDIR}/etc/pam_url.conf || install -D -m 644 examples/pam_url.conf ${DESTDIR}/etc/pam_url.conf uninstall: rm -f ${DESTDIR}/${pamlib}/${obj} Only in pam_url.mod: pam_url_account.o diff -U3 -r pam_url/pam_url_authenticate.c pam_url.mod/pam_url_authenticate.c --- pam_url/pam_url_authenticate.c 2022-01-23 04:17:48.995770636 +0100 +++ pam_url.mod/pam_url_authenticate.c 2022-01-23 04:34:05.545407119 +0100 @@ -2,6 +2,8 @@ #include "pam_url.h" +extern char *recvbuf; + PAM_EXTERN int pam_sm_setcred(pam_handle_t *pamh, int flags, int argc, const char **argv) { // by now, a dummy return PAM_SUCCESS; @@ -53,8 +55,11 @@ if( PAM_SUCCESS != check_rc(opts) ) { + char *debugmsg = NULL; + asprintf(&debugmsg, "Wrong Return Code: opts.ret_code=%s, recvbuf=%s", opts.ret_code, recvbuf); ret++; - debug(pamh, "Wrong Return Code."); + debug(pamh, debugmsg); + free(debugmsg); } cleanup(&opts); Only in pam_url.mod: pam_url_authenticate.o diff -U3 -r pam_url/pam_url.c pam_url.mod/pam_url.c --- pam_url/pam_url.c 2022-01-23 04:17:48.995770636 +0100 +++ pam_url.mod/pam_url.c 2022-01-23 04:17:04.916237596 +0100 @@ -21,7 +21,10 @@ int prompt_len = 0; if(config_lookup_string(&config, "pam_url.settings.prompt", &prompt) == CONFIG_FALSE) - prompt = DEF_PROMPT; + // if there is no password prompt in the config file, assume passwordless auth + // (like when using a service with certs) -- mtodorov, 20220123 + return PAM_SUCCESS; + // prompt = DEF_PROMPT; pam_prompt(pamh, PAM_PROMPT_ECHO_OFF, &p, "%s", prompt); diff -U3 -r pam_url/pam_url.h pam_url.mod/pam_url.h --- pam_url/pam_url.h 2022-01-23 04:17:48.995770636 +0100 +++ pam_url.mod/pam_url.h 2022-01-22 08:34:25.531383191 +0100 @@ -29,7 +29,7 @@ #endif #include -#ifndef __CURL_CURL_H +#ifndef CURLINC_CURL_H #error libcurl headers not found on this system. Giving up. #endif Only in pam_url.mod: pam_url.o Only in pam_url.mod: pam_url_password.o Only in pam_url.mod: pam_url_session.o Only in pam_url.mod: pam_url.so