1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
--- src/auth.c 21 May 2007 15:19:41 -0000 1.49
+++ src/auth.c 12 Jun 2007 18:54:15 -0000
@@ -449,12 +449,12 @@
*/
m = pr_module_get("mod_auth_pam.c");
if (m) {
- pr_trace_msg(trace_channel, 4,
- "using module 'mod_auth_pam.c' to authenticate user '%s'", name);
-
mr = dispatch_auth(cmd, "auth", &m);
if (MODRET_ISHANDLED(mr)) {
+ pr_trace_msg(trace_channel, 4,
+ "module 'mod_auth_pam.c' used for authenticating user '%s'", name);
+
res = MODRET_HASDATA(mr) ? PR_AUTH_RFC2228_OK : PR_AUTH_OK;
if (cmd->tmp_pool) {
@@ -512,12 +512,12 @@
*/
m = pr_module_get("mod_auth_pam.c");
if (m) {
- pr_trace_msg(trace_channel, 4,
- "using module 'mod_auth_pam.c' to authenticate user '%s'", name);
-
- mr = dispatch_auth(cmd, "auth", &m);
+ mr = dispatch_auth(cmd, "check", &m);
if (MODRET_ISHANDLED(mr)) {
+ pr_trace_msg(trace_channel, 4,
+ "module 'mod_auth_pam.c' used for authenticating user '%s'", name);
+
res = MODRET_HASDATA(mr) ? PR_AUTH_RFC2228_OK : PR_AUTH_OK;
if (cmd->tmp_pool) {
|