All,

i seem to have a problem getting qpopper to work using PAM radius_auth

radius authentication works, the users are actually authenticated ok.
but, qpopper insists to check wether these users actually exist on the
system (which they do not)
and then it fails.

my question is the following:
what does it take to make qpopper authenticate non local users ?
are there patches available already ? (i wasn't able to find any)
i have seen other people reportthe same problem, but none seemed to have
found a solution.

now, i have been looking through the source, and managed to comment out
the part where this verification is done in popper/pop_pass.c
unfortunately, my programming skills are not good enough to do it
properly :)

<snip>
popper/pop_pass.c:    // pwp = &p->pw;
popper/pop_pass.c:    // if ( pwp->pw_name == NULL ) {
popper/pop_pass.c:    //     DEBUG_LOG1 ( p, "User %.128s not known by
system",
popper/pop_pass.c:    //                  p->user );
popper/pop_pass.c:    //     sleep ( SLEEP_SECONDS );
popper/pop_pass.c:    //     return ( pop_msg ( p, POP_FAILURE, HERE,
ERRMSG_PW, p->user ) );
popper/pop_pass.c:    // }
</snip>

i also commented out the first check in popper/genpath.c

<snip>
popper/genpath.c:    // if ( pw == NULL || pw->pw_name == NULL ) {
popper/genpath.c:    //    pop_log ( p, POP_PRIORITY, HERE, "Bogus
passwd struct" );
popper/genpath.c:    //    return -1; /*bogus login name*/
popper/genpath.c:    // }
</snip>

but this still doesn't seem to be enough.

info from the debug log:
<snip>
Jan 29 15:14:52.750 2003 [6954] Qpopper ready for input from jurgen at
tiamat.bsp.kpn.be [193.74.210.155] [popper.c:320]
Jan 29 15:14:52.750 2003 
Jan 29 15:14:58.463 2003 [6954] Received: "pass xxxxxxxxx"
[pop_get_command.c:96]
Jan 29 15:14:58.463 2003 
Jan 29 15:14:58.464 2003 [6954] pam_start (service name pop3) returned
0; gp_errcode=0 [pop_pass.c:471]
Jan 29 15:14:58.464 2003 
Jan 29 15:14:58.464 2003 [6954] PAM_qpopper_conv: num_msg=1
[pop_pass.c:407]
Jan 29 15:14:58.464 2003 
Jan 29 15:14:58.464 2003 [6954] PAM_qpopper_conv: msg_style[0]=1
[pop_pass.c:415]
Jan 29 15:14:58.464 2003 
Jan 29 15:14:58.490 2003 [6954] pam_authenticate returned 0;
gp_errcode=0 [pop_pass.c:493]
Jan 29 15:14:58.490 2003 
Jan 29 15:14:58.490 2003 [6954] pam_setcred returned 0 [pop_pass.c:512]
Jan 29 15:14:58.490 2003 
Jan 29 15:14:58.490 2003 [6954] pam_set_item returned 0 [pop_pass.c:522]
Jan 29 15:14:58.490 2003 
Jan 29 15:14:58.490 2003 [6954] pam_set_item returned 0 [pop_pass.c:530]
Jan 29 15:14:58.490 2003 
Jan 29 15:14:58.490 2003 [6954] ...built: (51) '/mail/box/'
[genpath.c:165]
Jan 29 15:14:58.490 2003


ps: i applied the mysql/maildir patch, so i could use maildir format.
which works, and doesn't seem to be related to the PAM/radius
authentication problem.

pps: if i omitted any information which is needed to answer me, just say
so, and i'll include it.


best regards,
Jurgen.

Reply via email to