On Tue 03 Oct 2006 19:29, Guilherme Franco wrote:
> Hello,
>
> I've installed Postgres with exactly the same configuration as
> Oracle's and Postgres works.

Good.

> The only point of failure using Oracle should be in radippool
> Framedipaddress which is VARCHAR in Oracle but is INET in Postgres.
>
> Could be a parsing error in rlm_sqlippool.c

Hmm. It could be. Patches to fix it are welcome :-)

> That's because xlat outputs:
> ---------------------------------------------
> 'SELECT framedipaddress FROM (select framedipaddress from radippool
> WHERE pool_name = 'SPW' ORDER BY dbms_random.value) where rownum = 1'
> sqlippool_query1: row[0] returned NULL
> rlm_sqlippool: ip=[] len=0
> radius_xlat:  'COMMIT'
> rlm_sqlippool: IP number could not be allocated.
> ---------------------------------------------
>
> The same query on sqlplus is ok:
> SQL> SELECT framedipaddress FROM (select framedipaddress from
> radippool WHERE pool_name = 'SPW' ORDER BY dbms_random.value) where
> rownum = 1;
>
> FRAMEDIPADDRESS
> ------------------------------
> 192.168.1.3
>
> Now, considering that Postgres works like a breeze, how can I setup
> just sqlippool.conf to look in postgres, but the regular user and
> password queries to look in oracle?
>
> I've created a sql.conf containing oracle's confs (sql{..}) and
> sql2.conf containing postgres confs (sql2{...}).
>
> If I specify sql-instance-name = "sql2" in sqlippool.conf it does not
> works.

http://wiki.freeradius.org/Rlm_sql#Instances

Just give your instances different names as the documentation says.

> I appreciate any help on this issue. Thanks!

Cheers

-- 

Peter Nixon
http://www.peternixon.net/
PGP Key: http://www.peternixon.net/public.asc

Attachment: pgpzdlErLs3XW.pgp
Description: PGP signature

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to