I'm trying to add some configuration options to the config page and
I'm getting this error....
Query failed: INSERT command denied to user 'syslog'@'localhost' for
table 'auth_servers'
Can someone take a look at my code and tell me where I went wrong?
if ($addServer && grant_access($username, 'add_server', $dbLink)) {
$admLink = db_connect_syslog(DBADMIN, DBADMINPW, 'C');
$query = "INSERT INTO ".AUTHSERVERSTABLENAME."
(host,user,passwd,binddn)
VALUES('".$host."','".$user."','".$passwd."','".$binddn."')";
perform_query($query, $admLink);
echo "New server added: ".$host.".";
mysql_close($admLink);
}
Here's my patch against the latest release:
http://tomcort.com/patches/php-syslog-ng-2.9.4-tcort.patch
Here's a SQL script to update the current database:
http://tomcort.com/patches/php-syslog-ng-2.9.4-tcort.sql
Thanks,
Tom
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Php-syslog-ng-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/php-syslog-ng-support