<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o = "urn:schemas-microsoft-com:office:office"><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19019">
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT size=2 face=Arial>re: "Why do you say it's
deprecated?"</FONT></DIV>
<DIV><FONT size=2 face=Arial><BR>From the source code,
<EM>..scripts/exec-program-wait </EM></FONT></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
<DIV><FONT size=2 face=Arial></FONT><FONT size=2 face=Arial># Before
version 2.0 of FreeRADIUS, the script could be run from the<BR>#
deprecated attributes 'Exec-Program' and 'Exec-Program-Wait'.<BR>#
However, these attributes are no longer supported and you have to<BR>#
use the module 'rlm_exec' instead.<BR>#<BR># An entry for the module
'rlm_exec' must be added to the file<BR># 'radiusd.conf' with the path
of the script.</FONT></DIV></BLOCKQUOTE>
<DIV dir=ltr><FONT size=2 face=Arial>hence my attempts during my last upgrade to
migrate to the new and improved method that will be used going
forward.</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT> </DIV>
<DIV dir=ltr><FONT size=2 face=Arial>re: "If you can be more specific about what
you're trying to do"</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT> </DIV>
<DIV dir=ltr><FONT size=2 face=Arial>My specific requirement is to port the
logic of multiple entries in the <EM>users</EM> file to the new
method.</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial>The existing entries are like,</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT> </DIV>
<DIV dir=ltr>
<P style="MARGIN: 0cm 0cm 10pt" class=BlockQuote><FONT face=Calibri>DEFAULT
Auth-Type := Accept<o:p></o:p></FONT></SPAN></P>
<P style="MARGIN: 0cm 0cm 10pt" class=BlockQuote><FONT face=Calibri><SPAN
style="mso-spacerun: yes">
</SPAN>Exec-Program-Wait = "/usr/local/sbin/auth -X -U -- %{User-Name}
%{User-Password} %{%{Called-Station-Id}:-Missing} %{%{NAS-IP-Address}:-Missing}
%{%{Calling-Station-Id}:-Missing} %{%{NAS-Port-Type}:-Missing}
%{Vendor-Specific}" ,<o:p></o:p></FONT></SPAN></P>
<P style="MARGIN: 0cm 0cm 10pt" class=BlockQuote><FONT face=Calibri><SPAN
style="mso-spacerun: yes">
</SPAN>Fall-Through = no</FONT></SPAN></P></DIV>
<DIV style="MARGIN-RIGHT: 0px" dir=ltr><FONT size=2
face=Arial></FONT> </DIV>
<DIV style="MARGIN-RIGHT: 0px" dir=ltr><FONT size=2 face=Arial>I'd like to
migrate to the 'new and improved' method before I hit an upgrade where it
becomes non optional. I am not the original (also craig) poster who has a
similar but more immediate requirement using a perl script.</FONT></DIV>
<DIV style="MARGIN-RIGHT: 0px" dir=ltr><FONT size=2
face=Arial></FONT> </DIV>
<DIV style="MARGIN-RIGHT: 0px" dir=ltr><FONT size=2
face=Arial>Thanks,</FONT></DIV>
<DIV style="MARGIN-RIGHT: 0px" dir=ltr><FONT size=2 face=Arial>-the other
craig</FONT></DIV>
<DIV style="MARGIN-RIGHT: 0px" dir=ltr><FONT size=2
face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>----- Original Message ----- </FONT></DIV>
<DIV><FONT size=2 face=Arial>From: "Phil Mayers" <</FONT><A
href="mailto:p.mayers@imperial.ac.uk"><FONT size=2
face=Arial>p.mayers@imperial.ac.uk</FONT></A><FONT size=2
face=Arial>></FONT></DIV>
<DIV><FONT size=2 face=Arial>To: <</FONT><A
href="mailto:freeradius-users@lists.freeradius.org"><FONT size=2
face=Arial>freeradius-users@lists.freeradius.org</FONT></A><FONT size=2
face=Arial>></FONT></DIV>
<DIV><FONT size=2 face=Arial>Sent: Monday, March 21, 2011 12:51 PM</FONT></DIV>
<DIV><FONT size=2 face=Arial>Subject: Re: $75.00 USD Bounty</FONT></DIV>
<DIV><FONT face=Arial><BR><FONT size=2></FONT></FONT></DIV><FONT size=2
face=Arial>> On 21/03/11 15:04, Craig Campbell wrote:<BR>>>
Alan,<BR>>> I've read the documents indicated repeatedly. (And again just
now.)<BR>>><BR>>> I have not yet been able to port the 'deprecated'
method of<BR>>><BR>>> EXEC-PROGRAM-WAIT="/usr/local/bin/auth -A
parameter"<BR>> <BR>> Why do you say it's deprecated?<BR>>
<BR>>><BR>>> to the new method.<BR>>><BR>>> I guess I'm
missing how to bind the program using the new method to the<BR>>> entries
in the users file.<BR>> <BR>> You don't. Calling a script in a "users"
file entry by using the magic <BR>> "Exec-Program-Wait" is different from
defining an exec "module" and <BR>> calling that in the "authorize"
section.<BR>> <BR>> They work differently and serve different
needs.<BR>> <BR>> If you can be more specific about what you're trying to
do and show why <BR>> it isn't working, people might be able to offer
specific advice - but <BR>> it's better to start a different thread, specific
to your question.<BR>> -<BR>> List info/subscribe/unsubscribe? See
</FONT><A href="http://www.freeradius.org/list/users.html"><FONT size=2
face=Arial>http://www.freeradius.org/list/users.html</FONT></A><BR><FONT size=2
face=Arial>> <BR>> __________ Information from ESET Smart Security,
version of virus signature database 5971 (20110321) __________<BR>> <BR>>
The message was checked by ESET Smart Security.<BR>> <BR>> </FONT><A
href="http://www.eset.com"><FONT size=2
face=Arial>http://www.eset.com</FONT></A><BR><FONT size=2 face=Arial>>
<BR>> <BR>></FONT> <BR>
<BR>
__________ Information from ESET Smart Security, version of virus signature database 5971 (20110321) __________<BR>
<BR>
The message was checked by ESET Smart Security.<BR>
<BR>
<A HREF="http://www.eset.com">http://www.eset.com</A><BR>
</BODY></HTML>