Thank you for the response. I did cover that base as well. I should have pasted the script into the original email. Here is the script that I tested with (where xxx are numbers): #!/bin/sh if [ "$1" = "" ]; then #Example 00000xxxxxxxxxx echo "00000xxxxxxxxxx" else echo "11111xxxxxxxxxx" fi Even if no variable was passed to the script, it outputs something. I also used other system commands (exec:/bin/echo testing ... exec:/bin/cat <some file>) just in case. It seems as long as I was using exec, I got that same error. If I just substituted with a static value, it worked fine. Your time is appreciated. Thanks again for the response. Regards, Jason --- Alan DeKok <aland@deployingradius.com> wrote:
Jason Hodges wrote: ...
Here are the debug results: radius_xlat: '00000210xxxxxxx' radius_xlat: Running registered xlat function of module exec for string '/usr/local/freeradius/bin/mdn_lookup.sh' rlm_exec (exec): Executing /usr/local/freeradius/bin/mdn_lookup.sh rlm_exec (exec): result 0 radius_xlat: '' rlm_attr_rewrite: xlat on replace string failed.
Thoughts? What have I missed?
The script you write didn't output anything.
Alan DeKok. -- http://deployingradius.com - The web site of the book http://deployingradius.com/blog/ - The blog - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
____________________________________________________________________________________ Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/features_spam.html