Re: Re: Re: from which hook , I can get the usrname that pppd used?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ok, Thanks for your patient. I'm going to write a PPPoE Proxy base on the pppoe-server and pppd, the proxy acts both as "server" and "clent". So it acquire the usrname from the peer which connect to the proxy and establish a connection to the real pppoe-server(or BAS),so I have to acquire this two kinds of user names from pppd. any suggestions?


2008-05-16                   

cyx_mail 



发件人: James Carlson 
发送时间: 2008-05-16  03:16:16 
收件人: cyx 
抄送: linux-ppp 
主题: Re: Re: from which hook , I can get the usrname that pppd used? 
 
cyx writes:
> Thank for your help! username that  I want to get is the one pppd  read from chap-secret or pap-secret, I think they my be store in an global var?
I'm afraid you're still not being specific enough.
pppd can be configured to behave as an authenticator ("server"), an
authenticatee ("client"), both, or neither.
When configured as an authenticator, pppd will acquire a name from the
peer and will validate that identity.  The resulting validated peer
name appears in the peer_authname[] array.
When configured as an authenticatee, the name pppd presents to the
peer for identification is in the our_name[] array.
This is all in the pppd/auth.c module, which is common to all
authentication schemes (including PAP and CHAP).  If you're trying to
write code that integrates with pppd, I *strongly* recommend spending
the time to read through the pppd source code.  The layout of the code
is fairly logical, so it's not hard to read, and there are substantial
and informative comments in many places.
(Note that it's really not proper to talk about "users" here.  PPP is
a layer two technology; there are no "users."  There are only peers.)
-- 
James Carlson         42.703N 71.076W         <carlsonj@xxxxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
__________ NOD32 3090 (20080509) Information __________
This message was checked by NOD32 antivirus system.
http://www.nod32cn.com
?韬{.n?????%??檩??w?{.n???{炳???骅w*jg????????G??⒏⒎?:+v????????????"??????

[Index of Archives]     [Linux Audio Users]     [Linux for Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Fedora Users]

  Powered by Linux