From: pnixon Date: Thu, 24 Mar 2005 08:35:30 +0000 (+0000) Subject: Add support for Oracle X-Git-Url: https://git.entuzijast.net/?a=commitdiff_plain;h=cf8570a30997c7025ee7d3e32bec47d943ffd14a;p=freeradius-dialup-admin.git Add support for Oracle --- diff --git a/bin/log_badlogins b/bin/log_badlogins index 0e0b55c..83cd18e 100755 --- a/bin/log_badlogins +++ b/bin/log_badlogins @@ -198,6 +198,7 @@ for(;;){ close TMP; $command = "$sqlcmd -h$server $opt -u$sql_username $pass $sql_database <$tmpfile.$server" if ($sql_type eq 'mysql'); $command = "$sqlcmd -U $sql_username -f $tmpfile.$server $sql_database" if ($sql_type eq 'pg'); + $command = "$sqlcmd $sql_username/$pass" . "@" . "$sql_database <$tmpfile.$server" if ($sql_type eq 'oracle'); $command = "$sqlcmd '$server' '$sql_port' '' '$sql_username' '$sql_pass' <$tmpfile.$server" if ($sql_type eq 'sqlrelay'); `$command`;