Okay, two quick questions.<br><br>If I set up an exec module in the radiusd.conf file, with the intent of using an external script to authenticate, as follows:<br><br> exec special_auth {<br> wait = yes
<br> program = "/usr/local/freeradius/etc/scripts/rad-auth.sh %{User-Name}"<br> input_pairs = request<br> output_pairs = reply<br> }<br>........................
<br>in the "instantiate" section I include the following<br> special_auth <br><br>........................<br>Then in the "authenticate" section<br><br> Auth-Type NEWAUTH {<br> special_auth
<br> }<br><br><br><br>Question 1:<br>This script is intended to be an Authentication method. How do I teach freeradius (during the authorize process?) to set Auth-Type to use this method when appropriate?<br>This would mean that freeradius would have to set the Auth-Type to NEWAUTH, right? The NEWAUTH block would in turn kick of the special_auth module and execute my auth script?
<br><br>Question 2:<br>A related, but separate question regarding external scripts. Having specified the "output_pairs = reply" parameter, how does a script set or return the pairs for use by freeradius.<br><br>
<br>I know I'm off base a little because this does not seem to work as yet, any guidance here would be appreciated.<br><br>Regards,<br>Lin Richardson<br>