How do I Instruct Freeradius to connect to postgreSQL Database on a port other than 5432?

Kevin Bonner keb at pa.net
Wed Sep 12 18:30:55 CEST 2007


On Tuesday 11 September 2007 15:30:09 justice obrey wrote:
> All,
>   The PostgreSQL database that I want my freeradius-1.1.7 to connect to is
> running on a port different from the default 5432 and beacause of this,
> Freeradius is not not able to connect to the database. How do I change my
> fFreeradius configuration to instruct it to to the postgresql database on a
> port say 5490? It is the rlm_sql_postgresql driver that fails in doing this
> connection. Thanks for any suggestions.
>
>   Below is the debug:
>
>   root at dev-radius:~# /opt/freeradius/sbin/radiusd -X
> ...
> Module: Loaded SQL
>  sql: driver = "rlm_sql_postgresql"
>  sql: server = "localhost"
>  sql: port = ""
>  sql: login = "postgres"

The debug output shows what variable to use.  I've snipped the output to make 
it a little easier to identify what you're hunting for.

Kevin Bonner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20070912/df3f5015/attachment.pgp>


More information about the Freeradius-Users mailing list