AUTHINFO GENERIC

Russ Allbery rra at stanford.edu
Mon Oct 20 21:03:53 UTC 2003


Todd Olson <tco2 at cornell.edu> writes:

> One more question

> At 13:03 -0700 2003/10/17, Russ Allbery wrote:
>> It doesn't.  All of the arguments to AUTHINFO GENERIC are given in the
>> initial command and are then passed to the authenticator.  The
>> authenticator must then return an nnrp.access string.

> How does a 'user name' get estabilished at the server?
> (For example to construct the poster identification)
> By first sending an AUTHINFO USER

The user identity for the rest of nnrpd is determined here:

    snprintf(PERMuser, sizeof(PERMuser), "%s@%s", fields[2], fields[0]);

so in the colon-separated string returned by the generic authenticator,
the first field should be the host and the third should be the username,
and AUTHINFO GENERIC will connect the two with an @ and put that in
PERMuser.

-- 
Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>

    Please send questions to the list rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.


More information about the inn-workers mailing list