On Mon, Dec 04, 2000 at 01:32:16PM -0200, Cleiton L. Siqueira wrote:
> I know that, but did you read all the e-mail?
> I'd like to know how I can access the descriptors sent by the qmail-popup!
> What are these descriptors in POP's USER-PASS style?
> And the rest of my doubts are in the first email.
If you get a connection from inetd/tcpserver you have one FD to read
net input and one FD to write output to the net. These are connected
to 0 and 1 (usually stdin and stdout).
qmail-popup reads from "stdin" (i.e. net-in) a sequence of commands:
USER <username>
PASS <password>
or APOP <apop-token>
as defined in rfc1939.
It then exec's "checkpassword" and provides two additional FDs:
2 and 3. It has to do so, to keep 0 and 1 "unchanged" for read/write to the
network.
FD2 ist identical to FD 1 (ie. write to the network).
On FD 3 it passes USER/PASS/APOP info to checkpassword in the form
<user>\0<passwd>\0<apop_token>\0
\Maex
--
SpaceNet AG | http://www.Space.Net/ | Stress is when you wake
Research & Development | mailto:[EMAIL PROTECTED] | up screaming and you
Joseph-Dollinger-Bogen 14 | Tel: +49 (89) 32356-0 | realize you haven't
D-80807 Muenchen | Fax: +49 (89) 32356-299 | fallen asleep yet.