Freeradius 2.1.7 with IPPool + MySQL + Solaris 10 on sparc v490

2009-12-11 Thread Hermes Ramon Velazquez Allende
Hello,

I need you're help

I can't compile the freeradius 2.1.7 on Solaris SunV490, I have the next
messages when I try to compile the source of freeradius.2.1.7:

I have the next configure opcion:

bash-3.00# crle

Configuration file [version 4]: /var/ld/ld.config
  Default Library Path (ELF):
/lib:/usr/lib:/usr/local/lib:/opt/mysql/mysql/lib:/usr/local/ssl/lib:/usr/local/BerkeleyDB.4.2/lib:/usr/share/lib:/etc/lib:/etc/security/lib:/usr/ccs/lib:/usr/xpg4/lib:/usr/dt/lib:/usr/ucblib
  Trusted Directories (ELF):/lib/secure:/usr/lib/secure  (system
default)

Command line:
  crle -c /var/ld/ld.config -l
/lib:/usr/lib:/usr/local/lib:/opt/mysql/mysql/lib:/usr/local/ssl/lib:/usr/local/BerkeleyDB.4.2/lib:/usr/share/lib:/etc/lib:/etc/security/lib:/usr/ccs/lib:/usr/xpg4/lib:/usr/dt/lib:/usr/ucblib


export CFLAGS=-m64

./configure --prefix=/usr/local/radius --with-logdir=/var/log/radius
--with-experimental-modules

And I have the next error when I try to compile the freeradius 2.1.7

/data/instaladores/src/freeradius-server-2.1.7/libtool --mode=link gcc
-release 2.1.7 \
 -export-dynamic -o libfreeradius-radius.la -rpath
/usr/local/radius/lib dict.lo filters.lo hash.lo hmac.lo hmacsha1.lo
isaac.lo log.lo misc.lo missing.lo md4.lo md5.lo print.lo radius.lo
rbtree.lo sha1.lo snprintf.lo strlcat.lo strlcpy.lo token.lo udpfromto.lo
valuepair.lo fifo.lo packet.lo event.lo getaddrinfo.lo vqp.lo heap.lo
dhcp.lo
gcc -shared -Wl,-h -Wl,libfreeradius-radius-2.1.7.so -o .libs/
libfreeradius-radius-2.1.7.so  .libs/dict.o .libs/filters.o .libs/hash.o
.libs/hmac.o .libs/hmacsha1.o .libs/isaac.o .libs/log.o .libs/misc.o
.libs/missing.o .libs/md4.o .libs/md5.o .libs/print.o .libs/radius.o
.libs/rbtree.o .libs/sha1.o .libs/snprintf.o .libs/strlcat.o .libs/strlcpy.o
.libs/token.o .libs/udpfromto.o .libs/valuepair.o .libs/fifo.o
.libs/packet.o .libs/event.o .libs/getaddrinfo.o .libs/vqp.o .libs/heap.o
.libs/dhcp.o  -lc
ld: fatal: file .libs/dict.o: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to .libs/
libfreeradius-radius-2.1.7.so
collect2: ld returned 1 exit status
make[4]: *** [libfreeradius-radius.la] Error 1
make[4]: Leaving directory
`/data/instaladores/src/freeradius-server-2.1.7/src/lib'
make[3]: *** [common] Error 2
make[3]: Leaving directory
`/data/instaladores/src/freeradius-server-2.1.7/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/data/instaladores/src/freeradius-server-2.1.7/src'
make[1]: *** [common] Error 2
make[1]: Leaving directory `/data/instaladores/src/freeradius-server-2.1.7'
make: *** [all] Error 2

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

Ippool mysql

2005-10-13 Thread Mark Novitzkas
Title: Ippool mysql 






Hi There

I am trying to setup freeradius 1.0.0.5 using mysql and ippools.
Basically i want to use mysql to auth the incoming request and and use
ippool to assign an adress to that request. Firstly is that possible?
I have setup the mysql DB correctly with the radcheck table
specifiying the Pool-Name ( in my case im testing with the main_pool
as configured in the radiusd.conf.
My second probelm is that if i start up radiusd in debug mode it shows
the following error?

Module: Loaded IPPOOL
ippool: session-db = /home/radius/db.ippool
ippool: ip-index = /home/radius/db.ipindex
ippool: range-start = 192.168.1.1 IP address [192.168.1.1]
ippool: range-stop = 192.168.3.254 IP address [192.168.3.254]
ippool: netmask = 255.255.255.0 IP address [255.255.255.0]
ippool: cache-size = 800
ippool: override = yes
ippool: maximum-timeout = 0
rlm_ippool: Failed to open file /home/radius/db.ippool: Permission denied
radiusd.conf[1467]: main_pool: Module instantiation failed.

Do i need to create the db files first? If so how is this done?
I know this may be arb questions but this is my first time using freeradius :)

Thanks
Mark



NoticeThis email is intended for the addressee only and may contain legally privileged and/or confidential information. If you have received this email in error and are not the intended recipient, you are hereby informed that you are not entitled to read, broadcast, distribute or in any manner whatsoever use the contents of this email or any attachments thereto. You are requested to please notify Psitek that you have received the email and then delete it. Unless clearly stated otherwise, the content and sentiments expressed in this email or any attachments thereto are those of the sender and not of Psitek (Proprietary) Limited. Psitek does not accept liability for any damages, loss or expense of any nature whatsoever arising (a) out of or in connection with the email or any attachments thereto and/or (b) from any act or omission by the recipient relying upon the content of the email or attachments. Psitek further disclaims liability for any damages caused by computer and/or software viruses. Should this email contain the terms of a contract, no binding agreement will result until such time as a written (hardcopy) document is signed on behalf of Psitek.
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Ippool mysql

2005-10-13 Thread Alan DeKok
Mark Novitzkas [EMAIL PROTECTED] wrote:
 I am trying to setup freeradius 1.0.0.5 using mysql and ippools.
 Basically i want to use mysql to auth the incoming request and and use
 ippool to assign an adress to that request. Firstly is that possible?

  Yes.

 rlm_ippool: Failed to open file /home/radius/db.ippool: Permission denied

  So... check the permissions on that directory?

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