Hi, I am running freeradius-server-2.1.1-7. +----+----------+-------------------+----+-------------------------+ | id | username | attribute | op | value | +----+----------+-------------------+----+-------------------------+ | 1 | spark | Exec-Program-Wait | := | /etc/raddb/getmac %u %i | +----+----------+-------------------+----+-------------------------+ radisud -XX -d /etc/raddb/ Wed Apr 22 17:05:03 2009 : Auth: Login OK: [spark] (from client localhost port 2 cli 00:19:D1:4A:53:F8) Wed Apr 22 17:05:03 2009 : Info: +- entering group post-auth {...} Wed Apr 22 17:05:03 2009 : Info: [exec] expand: %u -> spark Wed Apr 22 17:05:03 2009 : Info: [exec] expand: %i -> 00:19:D1:4A:53:F8 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 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 Wed Apr 22 17:05:03 2009 : Debug: Exec-Program: returned: 1 Wed Apr 22 17:05:03 2009 : Info: [exec] Login incorrect (external check said so) Wed Apr 22 17:05:03 2009 : Info: ++[exec] returns reject Wed Apr 22 17:05:03 2009 : Info: Delaying reject of request 1 for 1 seconds file /etc/raddb/getmac contains following with execute+radiusd permission #/bin/bash echo "$1 --- $2 ----- done" >> /etc/raddb/mac_entries What could be wrong? Nirmal Patel | Mumbai
Nirmal wrote: ...
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 ... #/bin/bash
You can't run that program from a shell prompt, either. You have a typo. It should be: #!/bin/bash Alan DeKok.
participants (2)
-
Alan DeKok -
Nirmal