From 5a229650244d029c70cb20ffad887954b6e29fba Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 30 Sep 2015 18:08:25 +0200 Subject: added debup output --- mod_auth_custom/mod_auth_custom.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mod_auth_custom/mod_auth_custom.lua') diff --git a/mod_auth_custom/mod_auth_custom.lua b/mod_auth_custom/mod_auth_custom.lua index 315b630..2c05f74 100644 --- a/mod_auth_custom/mod_auth_custom.lua +++ b/mod_auth_custom/mod_auth_custom.lua @@ -21,10 +21,13 @@ function test_password(username, password) local responses = {} for i,m in ipairs(t) do if m[1] == pam.PAM_PROMPT_ECHO_OFF then + print("sending password"); responses[i] = {password, 0}; elseif m[1] == pam.PAM_PROMPT_ECHO_ON then + print("sending username"); responses[i] = {username, 0}; else + print("sending empty response"); responses[i] = {"", 0}; end end -- cgit v1.2.3