Hello.

0.
To make work rlm_sql with Postgres on Solaris 7 I must change the
Make.inc after ./configure.
The diff is:
61,62c61,62                                       
< PQ_LIBS               = -lpq                    
< PG_INCLUDE_DIR        = /usr/local/pgsql/include
---                                               
> PQ_LIBS               =                         
> PG_INCLUDE_DIR        =                         

1.
If I run default configuration (./raddb/sql.conf), I've got an error
message from PostgreSQL 7.1.2.
It seems the NUMERIC field and INSERT .. ('0') does not work.

2.
The Alive record will never work. The log is:
radius_xlat:  'UPDATE radacct SET FramedIPAddress = '192.168.1.1'
WHERE AcctSessionId = '00005398' AND UserName = '' AND NASIPAddress=
'192.168.0.1''

the diff of rlm_sql.c, wich make to do this:
474,478c474                                                                  
<                       if(sql_set_user(inst, request, sqlusername, 0) <
0) {
<                               sql_release_socket(inst,
sqlsocket);         
<                               return
RLM_MODULE_FAIL;                      
<                      
}                                                    
<                                                                            
---                                                                          
>                                                                            
after that:
radius_xlat:  'UPDATE radacct SET FramedIPAddress = '192.168.1.1'
WHERE AcctSessionId = '00005398' AND UserName = 'test_user' AND
NASIPAddress= '192.168.0.1''


I need some comments for this three situations.
May be I was wrong?

Thank you.
Bye.

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

Reply via email to