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]

 



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?



2008-05-15 



cyx 



发件人: James Carlson 
发送时间: 2008-05-15  21:56:09 
收件人: cyx_mail 
抄送: linux-ppp 
主题: Re: from which hook , I can get the usrname that pppd used? 
 
cyx_mail writes:
> from which hook , I can get the usrname that pppd used? both chap or pap, is that a same hook?
What "user name" do you want?  Inside of a script, pppd sets a bunch
of environment variables, which are documented in the "SCRIPTS"
section of the man page.  (You've read through the man page, correct?)
If the peer authenticates itself, then PEERNAME will be set.  The
variables ORIG_UID and PPPLOGNAME have the invoking user's UID and
name.  The local 'name' value in use (the our_name[] array) isn't put
into the environment.  Perhaps it could be.
If you're not talking about a script, but are instead talking about a
pppd plugin, then you can just reference the variables you want --
our_name[] or peer_authname[].
It's possible that you may need to provide more details about what
you're attempting to do, what you've already tried to do, and what
doesn't work in order to get more substantial guidance.
-- 
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
More majordomo info at  http://vger.kernel.org/majordomo-info.html
__________ NOD32 3040 (20080419) 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