From: Peter B. <p....@go...> - 2010-01-26 16:34:03
|
Hello all... Apologies for going back (to December) on this topic. --On 11 December 2009 17:25 +0000 Peter Bates <p....@go...> wrote: > if ($is_eap_request == 1) { >> $mysql_connection->do("UPDATE node SET status='reg' WHERE >> mac='$mac'"); } If I wanted to auto-register clients like above that were successfully talking EAP - what UPDATE statement should I use when I know that their username is already being passed - my $user_name = $RAD_REQUEST{'User-Name'}; Does a 'user' need to be created with the value of $user_name before I then issue the UPDATE to set the MAC to 'reg'? Thanks. -- Peter Bates, Network Support & Development Officer Goldsmiths, University of London New Cross, London SE14 6NW. Telephone: 020 7919 7082 |