also try with UNION ...<br><br><div class="gmail_quote">On Mon, Mar 16, 2009 at 10:39 AM, <span dir="ltr"><<a href="mailto:tnt@kalik.net">tnt@kalik.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">>When Post-Auth-Type REJECT is executed I need to insert two or more<br>
>rows into a SQL data base.<br>
><br>
>here is what I have at present<br>
><br>
><br>
>sites-enabled/default<br>
><br>
> Post-Auth-Type REJECT {<br>
> sql<br>
> }<br>
><br>
>sql.conf -> sql/mysql/dialup.conf<br>
><br>
><br>
> postauth_query = "INSERT INTO ${authcheck_table} VALUES<br>
>(NULL,'%{User-Name}','Password', '==',<br>
>'%{User-Password:-Chap-Password}');"<br>
> postauth_query = "INSERT INTO ${usergroup_table} values<br>
>('%{User-Name}','Dynamic','');"<br>
><br>
><br>
>The FIRST insert runs, but the second one doesn't.<br>
><br>
<br>
</div>Yes, only one gets executed. Try this:<br>
<br>
postauth_query = "INSERT INTO ${authcheck_table} ... ; INSERT INTO<br>
${usergroup_table} ... "<br>
<br>
If that doesn't work you will have to do inserts with perl.<br>
<br>
Ivan Kalik<br>
Kalik Informatika ISP<br>
<div><div></div><div class="h5"><br>
-<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><br>
</div></div></blockquote></div><br>