Kevin Bonner wrote:
After some code checking I found a workaround for me but I'am not familiar withOn Sunday 24 November 2002 16:57, Gerald Krause wrote:Hi, I have tried to connect to different mysql-daemons on the same server over a "port" definition in sql.conf but this argument seems useless to the rlm_sql_mysql. I think this module use unfortunately always the standard port of 3306 instead. If so, is there a way to change this? thanx, Gerald
Right now, it gets the mysql port from the /etc/services file. I'm sure patches are always welcome.
patches. Maybe someone from the developers can made one by reading this informations
[and double-check other side effects that I have ignore? ;-)]:
src/modules/rlm_sql/conf.h (line 14)
- char *sql_port;
+ int sql_port;
src/modules/rlm_sql/rlm_sql.c (line 54)
- {"port",PW_TYPE_STRING_PTR, offsetof(SQL_CONFIG,sql_port), NULL, ""},
+ {"port",PW_TYPE_INTEGER, offsetof(SQL_CONFIG,sql_port), NULL, "0"},
src/modules/rlm_sql/drivers/rlm_sql_mysql/sql_mysql.c (line 64)
- config->sql_db, 0, NULL, CLIENT_FOUND_ROWS))) {
radlog(L_ERR, "rlm_sql: Couldn't connect socket to MySQL server %s@%s:%s",
config->sql_login, config->sql_server, config->sql_db);
+ config->sql_db, config->sql_port, NULL, CLIENT_FOUND_ROWS))) {
radlog(L_ERR, "rlm_sql: Couldn't connect socket to MySQL server %s@%s:%u/%s",
config->sql_login, config->sql_server, config->sql_port, config->sql_db);
Gerald
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
