<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>changed permission of /etc/raddb/mac_entries</DIV>
<DIV> </DIV>
<DIV>now getting wrong format error.</DIV>
<DIV> </DIV>
<DIV>Wed Apr 22 17:21:27 2009 : Auth: Login OK: [spark] (from client localhost port 0 cli 00:19:D1:4A:53:F8)<BR>Wed Apr 22 17:21:27 2009 : Info: +- entering group post-auth {...}<BR>Wed Apr 22 17:21:27 2009 : Info: [exec]         expand: %u -> spark<BR>Wed Apr 22 17:21:27 2009 : Info: [exec]         expand: %i -> 00:19:D1:4A:53:F8<BR>Wed Apr 22 17:21:27 2009 : Debug: Exec-Program output: Wed Apr 22 17:21:27 2009 : <STRONG>Error: Exec-Program: FAILED to execute /etc/raddb/getmac: Exec format error<BR></STRONG>Wed Apr 22 17:21:27 2009 : Debug: Exec-Program-Wait: plaintext: Wed Apr 22 17:21:27 2009 : Error: Exec-Program: FAILED to execute /etc/raddb/getmac: Exec format error<BR>Wed Apr 22 17:21:27 2009 : Debug: Exec-Program: returned: 1<BR></DIV>
<DIV> </DIV>
<DIV>in my previous version i was using the same format.</DIV>
<DIV> </DIV>
<DIV>+----+----------+-------------------+----+-------------------------+<BR>| id | username | attribute         | op | value                   |<BR>+----+----------+-------------------+----+-------------------------+<BR>|  1 | spark    | Exec-Program-Wait | := | /etc/raddb/getmac %u %i |<BR>+----+----------+-------------------+----+-------------------------+<BR></DIV>
<DIV> </DIV>
<DIV>where to check syntax for exec-program ?</DIV>
<DIV><BR><BR>--- On <B>Wed, 4/22/09, Nirmal <I><nirmal_909@yahoo.com></I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><BR>From: Nirmal <nirmal_909@yahoo.com><BR>Subject: Exec-Program problem<BR>To: "freeradius users" <freeradius-users@lists.freeradius.org><BR>Date: Wednesday, April 22, 2009, 5:11 PM<BR><BR>
<DIV id=yiv1045490672>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD vAlign=top>
<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>I am running freeradius-server-2.1.1-7.</DIV>
<DIV> </DIV>
<DIV>+----+----------+-------------------+----+-------------------------+<BR>| id | username | attribute         | op | value                   |<BR>+----+----------+-------------------+----+-------------------------+<BR>|  1 | spark    | Exec-Program-Wait | := | /etc/raddb/getmac %u %i |<BR>+----+----------+-------------------+----+-------------------------+<BR></DIV>
<DIV> </DIV>
<DIV>radisud -XX -d /etc/raddb/</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Wed Apr 22 17:05:03 2009 : Auth: Login OK: [spark] (from client localhost port 2 cli 00:19:D1:4A:53:F8)<BR>Wed Apr 22 17:05:03 2009 : Info: +- entering group post-auth {...}<BR>Wed Apr 22 17:05:03 2009 : Info: [exec]         expand: %u -> spark<BR>Wed Apr 22 17:05:03 2009 : Info: [exec]         expand: %i -> 00:19:D1:4A:53:F8<BR>Wed Apr 22 17:05:03 2009 : Debug: Exec-Program output: Wed Apr 22 17:05:03 2009 : Error: Exec-Program: FAILED to execute /etc/raddb/getmac: Exec format error<BR>Wed Apr 22 17:05:03 2009 : Debug: Exec-Program-Wait: plaintext: Wed Apr 22 17:05:03 2009 : Error: Exec-Program: FAILED to execute /etc/raddb/getmac: Exec format error<BR>Wed Apr 22 17:05:03 2009 : Debug: Exec-Program: returned: 1<BR>Wed Apr 22 17:05:03 2009 : Info: [exec] Login incorrect (external check said so)<BR>Wed Apr 22 17:05:03 2009 : Info: ++[exec] returns reject<BR>Wed Apr
 22 17:05:03 2009 : Info: Delaying reject of request 1 for 1 seconds<BR></DIV>
<DIV> </DIV>
<DIV>file /etc/raddb/getmac contains following with execute+radiusd permission </DIV>
<DIV><BR>#/bin/bash</DIV>
<DIV>echo "$1 --- $2 ----- done" >> /etc/raddb/mac_entries<BR></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>What could be wrong?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Nirmal Patel | Mumbai</DIV>
<DIV> </DIV></TD></TR></TBODY></TABLE><BR></DIV><BR>-----Inline Attachment Follows-----<BR><BR>
<DIV class=plainMail>-<BR>List info/subscribe/unsubscribe? See <A href="http://www.freeradius.org/list/users.html" target=_blank>http://www.freeradius.org/list/users.html</A></DIV></BLOCKQUOTE></td></tr></table><br>