Dynamic IP Allocation for multiple Radius Servers

2005-02-07 Thread Ken Doyle
Hi,

I've been working on building and configuring a cluster which will,
amongst other things, run Freeradius (I hope).

Currently everything is okay, but now I appear to be stuck. At the
moment I'm dymanically allocating IP's using the IPPool module, which
is working fine on a single server. Unfortunately the rest of the
cluster needs to know which IP's have been assigned.

The running system: Debian Sarge (up to date), Openldap (which is
being used for authorisation and authentication), FreeRADIUS 1.0.1.
Accounting is being handled by MySQL which is not currently on the
cluster.

If the IPPool module could talk to MySQL I wouldn't have a problem.
I'm thinking of nfs mounting the database files required for the
various pools, but I don't think that's very practical.

Does anyone have any advice or ideas? At this point I'm basically
burnt out, and any help would be greatly appreciated, even if it's
just a link to something I've missed in google.

Thank you for your time,

Ken.

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


Re: Dynamic IP Allocation for multiple Radius Servers

2005-02-07 Thread Alan DeKok
Ken Doyle <[EMAIL PROTECTED]> wrote:
> If the IPPool module could talk to MySQL I wouldn't have a problem.
> I'm thinking of nfs mounting the database files required for the
> various pools, but I don't think that's very practical.

  There was an rlm_sqlippool a while ago...

ftp://rd.ranetka.ru/pub/sql-ip-pool/rlm_sqlippool.tar.gz

  That might work.

  Alan DeKok.

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


Re: Dynamic IP Allocation for multiple Radius Servers

2005-02-07 Thread Ken Doyle
Alan DeKok <[EMAIL PROTECTED]> wrote:
> Ken Doyle <[EMAIL PROTECTED]> wrote:
> > If the IPPool module could talk to MySQL I wouldn't have a problem.
> > I'm thinking of nfs mounting the database files required for the
> > various pools, but I don't think that's very practical.
> 
>   There was an rlm_sqlippool a while ago...
> 
> ftp://rd.ranetka.ru/pub/sql-ip-pool/rlm_sqlippool.tar.gz
> 
>   That might work.
> 
>   Alan DeKok.

Thanks for the help Alan, however rd.ranetka.ru does not seem to
resolve, and the one other link to this module that I could find
(ftp://lopez.globe.net.nz/Linux/freeradius/rlm_sqlippool.tar.gz) does
not resolve either. Given that I missed turning up this module in my
initial searching, I'm hoping there is another link to this module
somewhere. I'll keep looking, but this project needs to go into
production soon, and any help would be appreciated, even if it's just
a local copy you have lying around.

Thanks again for your help,

Ken.

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


Re: Dynamic IP Allocation for multiple Radius Servers

2005-02-07 Thread Alan DeKok
Ken Doyle <[EMAIL PROTECTED]> wrote:
> Thanks for the help Alan, however rd.ranetka.ru does not seem to
> resolve, and the one other link to this module that I could find
> (ftp://lopez.globe.net.nz/Linux/freeradius/rlm_sqlippool.tar.gz) does
> not resolve either. Given that I missed turning up this module in my
> initial searching, I'm hoping there is another link to this module
> somewhere. I'll keep looking, but this project needs to go into
> production soon, and any help would be appreciated, even if it's just
> a local copy you have lying around.

  http://www.striker.ottawa.on.ca/~aland/rlm_sqlippool.tar.gz

  It may not be there for long, though.

  Alan DeKok.

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


Re: Dynamic IP Allocation for multiple Radius Servers

2005-02-07 Thread Ken Doyle
Alan DeKok <[EMAIL PROTECTED]> wrote:
> http://www.striker.ottawa.on.ca/~aland/rlm_sqlippool.tar.gz
> 
> It may not be there for long, though.
> 
> Alan DeKok.

Thanks Alan, greatly appreciated. It downloaded and extracted fine.
I'll go off and tinker with it now. Hopefully that's the last hurdle
out of the way.

Ken.

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


Re: Dynamic IP Allocation for multiple Radius Servers

2005-02-07 Thread Ruslan A Dautkhanov





http://www.onlinebilling.ru/freeradius/rlm_sqlippool.tar.gz

Ken Doyle <[EMAIL PROTECTED]> wrote:


  > Thanks for the help Alan, however rd.ranetka.ru does not seem to
> resolve, and the one other link to this module that I could find
> (ftp://lopez.globe.net.nz/Linux/freeradius/rlm_sqlippool.tar.gz) does
> not resolve either. Given that I missed turning up this module in my
> initial searching, I'm hoping there is another link to this module
> somewhere. I'll keep looking, but this project needs to go into
> production soon, and any help would be appreciated, even if it's just
> a local copy you have lying around.
  


>  http://www.striker.ottawa.on.ca/~aland/rlm_sqlippool.tar.gz
> 
>  It may not be there for long, though.
> 
>  Alan DeKok.

That module creates pool of sql connections for each (!) ippool
configured.
Thats very bad. I wrote about that ...
  see
http://lists.cistron.nl/pipermail/freeradius-devel/2004-April/007074.html

Alan, I think that module can be merged to current CVS tree? 
It used in productional enviroment for 2+ yrs in our company.
It's also tested with post-1.0 CVS versions...

I had changed my workstation, so rd.ranetka.ru link doesn't work.
Please use http://www.onlinebilling.ru/freeradius/rlm_sqlippool.tgz - 
it's of  clean&robust version of that module, that works fine.

The source code based on another guys work, so I can find out there
unpatched and pacthed versions of original code. Enjoy.

HTH
Ruslan





smime.p7s
Description: S/MIME Cryptographic Signature


Re: Dynamic IP Allocation for multiple Radius Servers

2005-02-08 Thread Kostas Kalevras
On Mon, 7 Feb 2005, Ken Doyle wrote:
Hi,
I've been working on building and configuring a cluster which will,
amongst other things, run Freeradius (I hope).
Currently everything is okay, but now I appear to be stuck. At the
moment I'm dymanically allocating IP's using the IPPool module, which
is working fine on a single server. Unfortunately the rest of the
cluster needs to know which IP's have been assigned.
The running system: Debian Sarge (up to date), Openldap (which is
being used for authorisation and authentication), FreeRADIUS 1.0.1.
Accounting is being handled by MySQL which is not currently on the
cluster.
If the IPPool module could talk to MySQL I wouldn't have a problem.
I'm thinking of nfs mounting the database files required for the
various pools, but I don't think that's very practical.
Does anyone have any advice or ideas? At this point I'm basically
burnt out, and any help would be greatly appreciated, even if it's
just a link to something I've missed in google.
rlm_ippool will eventually also update it's db on accounting-start/update 
packets. That way you can just use accounting relaying to keep the db's on 
multiple servers synchronized.

Thank you for your time,
Ken.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
--
Kostas Kalevras Network Operations Center
[EMAIL PROTECTED]   National Technical University of Athens, Greece
Work Phone: +30 210 7721861
'Go back to the shadow' Gandalf
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Dynamic IP Allocation for multiple Radius Servers

2005-02-10 Thread Ken Doyle
Hi guys

I've been playing with Ruslan's patched rlm_sqlippool module
(http://www.onlinebilling.ru/freeradius/rlm_sqlippool.tar.gz), but
I've been unable to
get it to compile at all. I'm using Debian Sarge (testing), and the
freeradius 1.0.1 source. It's been at least seven years since I've
debugged any C at all and everything I've tried so far has led to a
dead end. I'm pretty sure I'm missing something, but I can't figure out
what's actually wrong.

If anyone has compiled this on Debian or has any ideas, I'd be
extremely grateful for any help. If I can't get this module, or the
older version of this module working properly
(I haven't yet been able to get multiple ip pools working for the
default user with the unpatched rlm_sqlippool module), I'm going to
have to abandon Freeradius.

Ken.
(Thanks to Alan and Ruslan for their time and help).

This is what happens:

Making static dynamic in rlm_sqlippool...
make[6]: Entering directory `/root/freeradius-1.0.1/src/modules/rlm_sqlippool'
gcc  -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5
 -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual
-Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef
-I../../include  -c rlm_sqlippool.c -o rlm_sqlippool.o
In file included from rlm_sqlippool.c:24:
rlm_sql.h:46: error: parse error before "SQL_CONFIG"
rlm_sql.h:46: warning: function declaration isn't a prototype
rlm_sql.h:47: error: parse error before "SQL_CONFIG"
rlm_sql.h:47: warning: function declaration isn't a prototype
rlm_sql.h:48: error: parse error before "SQL_CONFIG"
rlm_sql.h:48: warning: function declaration isn't a prototype
rlm_sql.h:49: error: parse error before "SQL_CONFIG"
rlm_sql.h:49: warning: function declaration isn't a prototype
rlm_sql.h:50: error: parse error before "SQL_CONFIG"
rlm_sql.h:50: warning: function declaration isn't a prototype
rlm_sql.h:51: error: parse error before "SQL_CONFIG"
rlm_sql.h:51: warning: function declaration isn't a prototype
rlm_sql.h:52: error: parse error before "SQL_CONFIG"
rlm_sql.h:52: warning: function declaration isn't a prototype
rlm_sql.h:53: error: parse error before "SQL_CONFIG"
rlm_sql.h:53: warning: function declaration isn't a prototype
rlm_sql.h:54: error: parse error before "SQL_CONFIG"
rlm_sql.h:54: warning: function declaration isn't a prototype
rlm_sql.h:55: error: parse error before "SQL_CONFIG"
rlm_sql.h:55: warning: function declaration isn't a prototype
rlm_sql.h:56: error: parse error before "SQL_CONFIG"
rlm_sql.h:56: warning: function declaration isn't a prototype
rlm_sql.h:57: error: parse error before "SQL_CONFIG"
rlm_sql.h:57: warning: function declaration isn't a prototype
rlm_sql.h:58: error: parse error before "SQL_CONFIG"
rlm_sql.h:58: warning: function declaration isn't a prototype
rlm_sql.h:59: error: parse error before "SQL_CONFIG"
rlm_sql.h:59: warning: function declaration isn't a prototype
rlm_sql.h:66: error: parse error before "SQL_CONFIG"
rlm_sql.h:66: warning: no semicolon at end of struct or union
rlm_sql.h:70: error: parse error before '}' token

... etc, and then ends:

rlm_sqlippool.c:1038: error: `data' undeclared (first use in this function)
rlm_sqlippool.c:1038: error: parse error before ')' token
rlm_sqlippool.c: In function `sqlippool_detach':
rlm_sqlippool.c:1115: error: `data' undeclared (first use in this function)
rlm_sqlippool.c:1115: error: parse error before ')' token
rlm_sqlippool.c:1113: warning: unused parameter `instance'
make[6]: *** [rlm_sqlippool.o] Error 1

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


WG: Re: Dynamic IP Allocation for multiple Radius Servers

2005-02-11 Thread matthiar
Library Problem  seems to be everywhere in 1.0.1 :-)

Stefan Neis suggested as response to my question:
---
> >The problem seems to be, again, that even one adds
> >> >--with-ltdl-lib=/opt/csw/share/libtool/libltdl
> >> >--with-ltdl-include=/opt/csw/share/libtool/libltdl
> >"make" does not seem to care about it.
>   
> I've found this to be the case with several (if not all) of the
> --with-BLAH-lib and with --with-BLAH-include options.

A relatively easy way around that problem would be to use
CFLAGS="relevant -I options" LDFLAGS="relevant -L and -l 
options" ./configure ...

That way, you can even reorder the libs as necessary, as I found 
necessary
e.g. with 1.0.0 to get OpenSSL stuff compiled in (the default configure
script would try to compile stuff with -lcrypto -lssl which fails at least
for static libs, while "-lssl -lcrypto" in LDFLAGS telled configure to do
the right thing).
---

Matthias Rumitz
TC Unix / Netzwerke

ADIVA Computertechnologie GmbH
Norsk-Data-Str. 1
D-61352 Bad Homburg v.d.H.
Fon: +49(0)  61 72 / 48 61 - 0
Fax: +49(0)  61 72 / 48 61 - 700
Web: http://www.adiva.de eMail: [EMAIL PROTECTED]

Diese E-Mail Nachricht enthält vertrauliche und/oder rechtlich geschützte 
Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich 
erhalten haben, 
informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. 

This e-mail message may contain confidential and/or privileged 
information. 
If you are not the intended recipient (or have received this e-mail in error) 
please notify the sender immediately and destroy this e-mail.

- Originalnachricht -
Von: Ken Doyle <[EMAIL PROTECTED]>
Datum: Freitag, Februar 11, 2005 2:35 am
Betreff: Re: Dynamic IP Allocation for multiple Radius Servers

> Hi guys
> 
> I've been playing with Ruslan's patched rlm_sqlippool module
> (http://www.onlinebilling.ru/freeradius/rlm_sqlippool.tar.gz), but
> I've been unable to
> get it to compile at all. I'm using Debian Sarge (testing), and the
> freeradius 1.0.1 source. It's been at least seven years since I've
> debugged any C at all and everything I've tried so far has led to a
> dead end. I'm pretty sure I'm missing something, but I can't 
> figure out
> what's actually wrong.
> 
> If anyone has compiled this on Debian or has any ideas, I'd be
> extremely grateful for any help. If I can't get this module, or the
> older version of this module working properly
> (I haven't yet been able to get multiple ip pools working for the
> default user with the unpatched rlm_sqlippool module), I'm going to
> have to abandon Freeradius.
> 
> Ken.
> (Thanks to Alan and Ruslan for their time and help).
> 
> This is what happens:
> 
> Making static dynamic in rlm_sqlippool...
> make[6]: Entering directory `/root/freeradius-
> 1.0.1/src/modules/rlm_sqlippool'gcc  -g -O2 -D_REENTRANT -
> D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5
> -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual
> -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
> -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -
Wundef
> -I../../include  -c rlm_sqlippool.c -o rlm_sqlippool.o
> In file included from rlm_sqlippool.c:24:
> rlm_sql.h:46: error: parse error before "SQL_CONFIG"
> rlm_sql.h:46: warning: function declaration isn't a prototype
> rlm_sql.h:47: error: parse error before "SQL_CONFIG"
> rlm_sql.h:47: warning: function declaration isn't a prototype
> rlm_sql.h:48: error: parse error before "SQL_CONFIG"
> rlm_sql.h:48: warning: function declaration isn't a prototype
> rlm_sql.h:49: error: parse error before "SQL_CONFIG"
> rlm_sql.h:49: warning: function declaration isn't a prototype
> rlm_sql.h:50: error: parse error before "SQL_CONFIG"
> rlm_sql.h:50: warning: function declaration isn't a prototype
> rlm_sql.h:51: error: parse error before "SQL_CONFIG"
> rlm_sql.h:51: warning: function declaration isn't a prototype
> rlm_sql.h:52: error: parse error before "SQL_CONFIG"
> rlm_sql.h:52: warning: function declaration isn't a prototype
> rlm_sql.h:53: error: parse error before "SQL_CONFIG"
> rlm_sql.h:53: warning: function declaration isn't a prototype
> rlm_sql.h:54: error: parse error before "SQL_CONFIG"
> rlm_sql.h:54: warning: function declaration isn't a prototype
> rlm_sql.h:55: error: parse error before "SQL_CONFIG"
> rlm_sql.h:55: war