Re: Generating freeradius 1.0.3

2005-06-15 Thread Software Development Group


Yes, it generated .deb packages. I have run them and apparently they
installed correctly but when I run the application I get an:
radiusd.conf[2] Failed to link to module
'rlm_sqlcounter': /usr/lib/freeradius/rlm_sqlcounter.a: invalid ELF
header
error thou the module IS located in the directory that the
error message is mentioning.
Thanks.
At 08:12 15/06/2005, you wrote:
On Mon, Jun 13, 2005 at
01:43:36PM -0400, Software Development Group wrote:
 Running Debian, I have done a $ fakeroot dpkg-buildpackage -b on the

 freeradius 1.0.3 directory. I get a warning saying
That should be dpkg-buildpackage -rfakeroot -b, although the
above should also work...
 remember to run 'libtool --finish
/usr/lib/freeradius'
 
 which I do when the process finishes, and three error
messages:
That looks correct to me.
 dpkg-shlibdeps: warning: could not find path for
libeap-1.0.3.so
 dpkg-shlibdeps: warning: could not find path for
libradius-1.0.3.so
 dpkg-shlibdeps: warning: could not find path for
libradius-1.0.3.so
That's a surprise, but not completely unexpected... They're only
warnings, did you get packages out in the end?
-- 
Paul TBBle Hampson, on an alternate email client.
- 
List info/subscribe/unsubscribe? See

http://www.freeradius.org/list/users.html

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

Link error (invalid ELF header) in freeradius 1.0.3

2005-06-14 Thread Software Development Group


Hello,
I am getting the following error when running freeradius -X:
radiusd.conf[2] Failed to link to module
'rlm_sqlcounter': /usr/lib/freeradius/rlm_sqlcounter.a: invalid ELF
header
Anyone can help?

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

Generating freeradius 1.0.3

2005-06-13 Thread Software Development Group


Hello,
Running Debian, I have done a $ fakeroot
dpkg-buildpackage -b on the freeradius 1.0.3 directory. I
get a warning saying 
remember to run 'libtool --finish
/usr/lib/freeradius' 
which I do when the process finishes, and three error messages:
dpkg-shlibdeps: warning: could not find path for
libeap-1.0.3.so
dpkg-shlibdeps: warning: could not find path for libradius-1.0.3.so
dpkg-shlibdeps: warning: could not find path for
libradius-1.0.3.so
How can I get this done? What is the easiest way to install
freeradius 1.0.3 in a Debien system?
Thanks.
Max

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

Link error (invalid ELF header) in freeradius 1.0.3

2005-06-13 Thread Software Development Group


Hello,
I am getting the following error when running freeradius -X:
radiusd.conf[2] Failed to link to module
'rlm_sqlcounter': /usr/lib/freeradius/rlm_sqlcounter.a: invalid ELF
header
Thanks.
Max 

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

Couldn't load rlm_sqlcounter.so

2005-06-08 Thread Software Development Group


Hi,
I am getting the following message when running radiusd -X:
radiusd.conf[2] Failed to link to module
'rlm_sqlcounter': rlm_sqlcounter.so: cannot open shared object file: No
such file or directory
I have made sure that the libdir variable in
radiusd.conf was pointing to the right places and I even tried
re-configuring and re-building the server to NOT use shared libraries by
adding --disable-shared to the ./configure.
My latest full ./configure line looks like this:
./configure \
i386-linux
\

--prefix=/usr \

--exec-prefix=/usr \

--mandir=/usr/share/man \

--sysconfdir=/etc \

--libdir=/usr/lib/freeradius \

--datadir=/usr/share \

--localstatedir=/var \

--with-raddbdir=/etc/freeradius \

--with-logdir=/var/log/freeradius \

--with-thread-pool --with-system-libtool \

--enable-ltdl-install=no --enable-strict-dependencies \

--enable-developer \

--with-mysql-include-dir=/usr/local/include \

--with-ibmdb2-include-dir=/usr/local/include \

--with-iodbc-include-dir=/usr/local/include \

--with-oracle-home-dir=/usr/local/include \

--with-unixodbc-include-dir=/usr/local/include \

--without-rlm_pam \

--disable-shared
Also, if I try doing a whereis on rlm_sqlcounter.so it does not show
anywhere on my drive.
Any ideas?
Thanks,
Max

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

Installing freeradius 1.0.3

2005-06-07 Thread Software Development Group


Hello,
I am trying to install freeradius 1.0.3 in a machine running Linux ubuntu
hoary OS. My questions are:
1. Will the following procedure work?
tar xzf ~/freeradius-1.0.3.tar.gz
cd freeradius-1.0.3
fakeroot dpkg-buildpackage -b
sudo dpkg -i ../freeradius_1.0.3-0_i386.deb
2. Do I have to make any changes due to the fact that (i) I am using
ubuntu (Debian) or that (ii) I will be using MySQL modules?
Thanks,
Max 

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

Installing freeradius 1.0.3

2005-06-06 Thread Software Development Group


Hello,
I am trying to install freeradius 1.0.3 in a machine running Linux ubuntu
hoary OS. My questions are:
1. Will the following procedure work?
tar xzf ~/freeradius-1.0.3.tar.gz
cd freeradius-1.0.3
fakeroot dpkg-buildpackage -b
sudo dpkg -i ../freeradius_1.0.3-0_i386.deb
2. Do I have to make any changes due to the fact that (i) I am using
ubuntu (Debian) or that (ii) I will be using MySQL modules?
Thanks,
Max

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

FreeRadius make ERRORS

2005-05-25 Thread Software Development Group


Hello,
I am trying to compile FreeRadius with MySQL for user/time validation and
I am getting many errors while compiling. Here are the results of the
configure and the make scripts:
[EMAIL PROTECTED]:~/freeradius-1.0.2 $ sudo
./configure --with-experimental-modules
--with-mysql-include-dir=/usr/local/include/  configure.txt
configure: warning: snmpget not found - Simultaneous-Use and checkrad.pl
may not work
configure: warning: snmpwalk not found - Simultaneous-Use and checkrad.pl
may not work
configure: warning: silently not building rlm_pam.
configure: warning: FAILURE: rlm_pam requires: libpam.
configure: warning: ibm db2 headers not found. Use
--with-ibmdb2-include-dir=path.
configure: warning: sql submodule 'db2' disabled
configure: warning: iodbc headers not found. Use
--with-iodbc-include-dir=path.
configure: warning: sql submodule 'iodbc' disabled
configure: warning: oracle headers not found. Use
--with-oracle-home-dir=path.
configure: warning: sql submodule 'oracle' disabled
configure: warning: unixODBC headers not found. Use
--with-unixodbc-include-dir=path.
configure: warning: sql submodule 'unixodbc' disabled
[EMAIL PROTECTED]:~/freeradius-1.0.2 $

[EMAIL PROTECTED]:~/freeradius-1.0.2 $ sudo make  make.txt
ltdl.c: In function `lt_dlopenext':
ltdl.c:2926: warning: unused variable `file_found'
radius.c: In function `rad_decode':
radius.c:1429: warning: comparison is always true due to limited range of
data type
misc.c: In function `ipv6_ntoa':
misc.c:355: warning: return discards qualifiers from pointer target
type
rbtree.c: In function `rbtree_insert':
rbtree.c:265: warning: assignment discards qualifiers from pointer target
type
rbtree.c:278: warning: assignment discards qualifiers from pointer target
type
radius.c: In function `rad_decode':
radius.c:1429: warning: comparison is always true due to limited range of
data type
misc.c: In function `ipv6_ntoa':
misc.c:355: warning: return discards qualifiers from pointer target
type
rbtree.c: In function `rbtree_insert':
rbtree.c:265: warning: assignment discards qualifiers from pointer target
type
rbtree.c:278: warning: assignment discards qualifiers from pointer target
type
rlm_dbm.c: In function `sm_parse_user':
rlm_dbm.c:176: warning: assignment discards qualifiers from pointer
target type
rlm_dbm.c:210: warning: passing arg 2 of `paircmp' discards qualifiers
from pointer target type
rlm_dbm_parser.c: In function `storecontent':
rlm_dbm_parser.c:165: warning: assignment discards qualifiers from
pointer target type
rlm_dbm.c: In function `sm_parse_user':
rlm_dbm.c:176: warning: assignment discards qualifiers from pointer
target type
rlm_dbm.c:210: warning: passing arg 2 of `paircmp' discards qualifiers
from pointer target type
rlm_eap_gtc.c: In function `gtc_detach':
rlm_eap_gtc.c:61: warning: passing arg 1 of `free' discards qualifiers
from pointer target type
rlm_eap_gtc.c:62: warning: passing arg 1 of `free' discards qualifiers
from pointer target type
rlm_eap_mschapv2.c: In function `eapmschapv2_compose':
rlm_eap_mschapv2.c:127: warning: assignment from incompatible pointer
type
rlm_eap_peap.c: In function `eappeap_authenticate':
rlm_eap_peap.c:190: warning: passing arg 2 of `record_plus' from
incompatible pointer type
peap.c: In function `eappeap_postproxy':
peap.c:375: warning: unused variable `vp'
ttls.c: In function `eapttls_postproxy':
ttls.c:744: warning: unused variable `vp'
rlm_eap_gtc.c: In function `gtc_detach':
rlm_eap_gtc.c:61: warning: passing arg 1 of `free' discards qualifiers
from pointer target type
rlm_eap_gtc.c:62: warning: passing arg 1 of `free' discards qualifiers
from pointer target type
rlm_eap_mschapv2.c: In function `eapmschapv2_compose':
rlm_eap_mschapv2.c:127: warning: assignment from incompatible pointer
type
rlm_eap_peap.c: In function `eappeap_authenticate':
rlm_eap_peap.c:190: warning: passing arg 2 of `record_plus' from
incompatible pointer type
peap.c: In function `eappeap_postproxy':
peap.c:375: warning: unused variable `vp'
ttls.c: In function `eapttls_postproxy':
ttls.c:744: warning: unused variable `vp'
rlm_exec.c: In function `exec_detach':
rlm_exec.c:162: warning: passing arg 2 of `xlat_unregister' from
incompatible pointer type
rlm_exec.c: In function `exec_instantiate':
rlm_exec.c:264: warning: passing arg 2 of `xlat_register' from
incompatible pointer type
rlm_exec.c: In function `exec_detach':
rlm_exec.c:162: warning: passing arg 2 of `xlat_unregister' from
incompatible pointer type
rlm_exec.c: In function `exec_instantiate':
rlm_exec.c:264: warning: passing arg 2 of `xlat_register' from
incompatible pointer type
rlm_expr.c: In function `expr_instantiate':
rlm_expr.c:281: warning: passing arg 2 of `xlat_register' from
incompatible pointer type
rlm_expr.c: In function `expr_detach':
rlm_expr.c:295: warning: passing arg 2 of `xlat_unregister' from
incompatible pointer type
rlm_expr.c: In function `expr_instantiate':
rlm_expr.c:281: warning: passing arg 2 of `xlat_register' from
incompatible 

FreeRadius SQL Database

2005-05-23 Thread Software Development Group


Hello,
I installed all of the MySQL elements on my system and created and
configured the database (its name is 'radius'). Here is the
structure:
[EMAIL PROTECTED]:/usr/local/etc/raddb # mysql -u hwc
-p radius
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version:
4.0.23_Debian-3ubuntu2-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql show tables;
+---+
| Tables_in_radius |
+---+
|
badusers
|
|
config
|
|
dictionary
|
|
mtotacct
|
|
nas
|
|
radacct
|
|
radcheck
|
| radgroupcheck |
| radgroupreply |
| radpostauth
|
|
radreply
|
|
staff
|
|
totacct
|
|
usergroup
|
|
userinfo
|
+---+
15 rows in set (0.02 sec)
When I start the machine, the MySQL Database Server is brought up
automatically so, the MySQL engine is running. It also gets closed at
shutdown time.
On a Console I try running FreeRadius in debug mode and got an error
message on the last line: 'Segment
Violation' or 'Segment Fault' (I
translated the error from Spanish). The whole log is:
[EMAIL PROTECTED]:/usr/local/etc/raddb # sudo radiusd
-X
Starting - reading configuration files ...
reread_config: reading radiusd.conf
Config: including file:
/usr/local/etc/raddb/clients.conf
Config: including file: /usr/local/etc/raddb/sql.conf
Config: including file:
/usr/local/etc/raddb/sqlcounter.conf
main: prefix = /usr/local
main: localstatedir = /usr/local/var
main: logdir = /usr/local/var/log/radius
main: libdir = /usr/local/lib
main: radacctdir =
/usr/local/var/log/radius/radacct
main: hostname_lookups = no
main: max_request_time = 30
main: cleanup_delay = 5
main: max_requests = 1024
main: delete_blocked_requests = 0
main: port = 0
main: allow_core_dumps = no
main: log_stripped_names = no
main: log_file =
/usr/local/var/log/radius/radius.log
main: log_auth = yes
main: log_auth_badpass = yes
main: log_auth_goodpass = yes
main: pidfile =
/usr/local/var/run/radiusd/radiusd.pid
main: user = root
main: group = root
main: usercollide = no
main: lower_user = no
main: lower_pass = no
main: nospace_user = no
main: nospace_pass = no
main: checkrad = /usr/local/sbin/checkrad
main: proxy_requests = no
security: max_attributes = 200
security: reject_delay = 1
security: status_server = no
main: debug_level = 0
read_config_files: reading dictionary
read_config_files: reading naslist
Using deprecated naslist file. Support for this will go away
soon.
read_config_files: reading clients
read_config_files: reading realms
radiusd: entering modules setup
Module: Library search path is /usr/local/lib
Module: Loaded expr
Module: Instantiated expr (expr)
Module: Loaded SQL Counter
sqlcounter: counter-name = Max-All-Session-Time
sqlcounter: check-name = Max-All-Session
sqlcounter: key = User-Name
sqlcounter: sqlmod-inst = sql
sqlcounter: query = SELECT SUM(AcctSessionTime) FROM radacct
WHERE UserName='%{%k}'
sqlcounter: reset = never
rlm_sqlcounter: Counter attribute Max-All-Session-Time is number
1671
rlm_sqlcounter: Check attribute Max-All-Session is number 1672
rlm_sqlcounter: Current Time: 1116729344 [2005-05-21 22:35:44], Next
reset 0 [2005-05-21 22:00:00]
rlm_sqlcounter: Current Time: 1116729344 [2005-05-21 22:35:44], Prev
reset 0 [2005-05-21 22:00:00]
Module: Instantiated sqlcounter (noresetcounter)
sqlcounter: counter-name = Daily-Session-Time
sqlcounter: check-name = Max-Daily-Session
sqlcounter: key = User-Name
sqlcounter: sqlmod-inst = sql
sqlcounter: query = SELECT SUM(AcctSessionTime - GREATEST((%b
- UNIX_TIMESTAMP(AcctStartTime)), 0)) FROM radacct WHERE UserName='%{%k}'
AND UNIX_TIMESTAMP(AcctStartTime) + AcctSessionTime  '%b'
sqlcounter: reset = daily
rlm_sqlcounter: Counter attribute Daily-Session-Time is number 1673
rlm_sqlcounter: Check attribute Max-Daily-Session is number 1674
rlm_sqlcounter: Current Time: 1116729345 [2005-05-21 22:35:45], Next
reset 1116734400 [2005-05-22 00:00:00]
rlm_sqlcounter: Current Time: 1116729345 [2005-05-21 22:35:45], Prev
reset 1116648000 [2005-05-21 00:00:00]
Module: Instantiated sqlcounter (dailycounter)
sqlcounter: counter-name = Weekly-Session-Time
sqlcounter: check-name = Max-Weekly-Session
sqlcounter: key = User-Name
sqlcounter: sqlmod-inst = sql
sqlcounter: query = SELECT SUM(AcctSessionTime - GREATEST((%b
- UNIX_TIMESTAMP(AcctStartTime)), 0)) FROM radacct WHERE UserName='%{%k}'
AND UNIX_TIMESTAMP(AcctStartTime) + AcctSessionTime  '%b'
sqlcounter: reset = weekly
rlm_sqlcounter: Counter attribute Weekly-Session-Time is number 1675
rlm_sqlcounter: Check attribute Max-Weekly-Session is number 1676
rlm_sqlcounter: Current Time: 1116729345 [2005-05-21 22:35:45], Next
reset 1116734400 [2005-05-22 00:00:00]
rlm_sqlcounter: Current Time: 1116729345 [2005-05-21 22:35:45], Prev
reset 1116561600 [2005-05-20 00:00:00]
Module: Instantiated sqlcounter 

FreeRadius Segment Fault

2005-05-23 Thread Software Development Group


Hello,
Anyone could help me with a Segment
violation or Segment
fault error when running radiusd -X with MySQL?
Thanks. 



FreeRadius Configure ERRORS

2005-05-23 Thread Software Development Group


Hello,
Anyone could help me with a the following errors in Configure
--with-experimental-modules?
configure: warning: mysql headers not
found. Use --with-mysql-include-dir=path.
configure: warning: sql submodule 'mysql' disabled
Thanks. 



SQL Database

2005-05-20 Thread Software Development Group


Hi,
I want to have FreeRadius work with an SQL for user validation, time
discounting... I've configured ./configure with experimental-module, make
and make install.
I've entered an sql entry under accounting { } section of radiusd.conf,
I´ve created a file called sqlcounter.conf with:
sqlcounter noresetcounter {...}
sqlcounter dailycounter {...}
sqlcounter monthlycounter {...}
I've included an $INCLUDE ${confdir}/sqlcounter.conf line on the modules
{ } section of radiusd.conf.
I've included the sqlcounter names under autorize { } section of
radiusd.conf.
I run radiusd -X and I am getting the followin error log:

[EMAIL PROTECTED]:/usr/local/etc/raddb # radiusd
-X
Starting - reading configuration files ...
reread_config: reading radiusd.conf
Config: including file:
/usr/local/etc/raddb/clients.conf
Config: including file: /usr/local/etc/raddb/sql.conf
Config: including file:
/usr/local/etc/raddb/sqlcounter.conf
Config: including file:
/usr/local/etc/raddb/sqlcounter.conf
main: prefix = /usr/local
main: localstatedir = /usr/local/var
main: logdir = /usr/local/var/log/radius
main: libdir = /usr/local/lib
main: radacctdir =
/usr/local/var/log/radius/radacct
main: hostname_lookups = no
main: max_request_time = 30
main: cleanup_delay = 5
main: max_requests = 1024
main: delete_blocked_requests = 0
main: port = 0
main: allow_core_dumps = no
main: log_stripped_names = no
main: log_file =
/usr/local/var/log/radius/radius.log
main: log_auth = yes
main: log_auth_badpass = yes
main: log_auth_goodpass = yes
main: pidfile =
/usr/local/var/run/radiusd/radiusd.pid
main: user = root
main: group = root
main: usercollide = no
main: lower_user = no
main: lower_pass = no
main: nospace_user = no
main: nospace_pass = no
main: checkrad = /usr/local/sbin/checkrad
main: proxy_requests = no
security: max_attributes = 200
security: reject_delay = 1
security: status_server = no
main: debug_level = 0
read_config_files: reading dictionary
read_config_files: reading naslist
Using deprecated naslist file. Support for this will go away
soon.
read_config_files: reading clients
read_config_files: reading realms
radiusd: entering modules setup
Module: Library search path is /usr/local/lib
Module: Loaded expr
Module: Instantiated expr (expr)
Module: Loaded SQL Counter
sqlcounter: counter-name = Max-All-Session-Time
sqlcounter: check-name = Max-All-Session
sqlcounter: key = User-Name
sqlcounter: sqlmod-inst = sql
sqlcounter: query = SELECT SUM(AcctSessionTime) FROM radacct
WHERE UserName='%{%k}'
sqlcounter: reset = never
rlm_sqlcounter: Counter attribute Max-All-Session-Time is number
1671
rlm_sqlcounter: Check attribute Max-All-Session is number 1672
rlm_sqlcounter: Current Time: 1116621277 [2005-05-20 16:34:37], Next
reset 0 [2005-05-20 16:00:00]
rlm_sqlcounter: Current Time: 1116621277 [2005-05-20 16:34:37], Prev
reset 0 [2005-05-20 16:00:00]
Module: Instantiated sqlcounter (noresetcounter)
sqlcounter: counter-name = Daily-Session-Time
sqlcounter: check-name = Max-Daily-Session
sqlcounter: key = User-Name
sqlcounter: sqlmod-inst = sql
sqlcounter: query = SELECT SUM(AcctSessionTime - GREATEST((%b
- UNIX_TIMESTAMP(AcctStartTime)), 0)) FROM radacct WHERE UserName='%{%k}'
AND UNIX_TIMESTAMP(AcctStartTime) + AcctSessionTime  '%b'
sqlcounter: reset = daily
rlm_sqlcounter: Counter attribute Daily-Session-Time is number 1673
rlm_sqlcounter: Check attribute Max-Daily-Session is number 1674
rlm_sqlcounter: Current Time: 1116621277 [2005-05-20 16:34:37], Next
reset 1116648000 [2005-05-21 00:00:00]
rlm_sqlcounter: Current Time: 1116621277 [2005-05-20 16:34:37], Prev
reset 1116561600 [2005-05-20 00:00:00]
Module: Instantiated sqlcounter (dailycounter)
sqlcounter: counter-name = Weekly-Session-Time
sqlcounter: check-name = Max-Weekly-Session
sqlcounter: key = User-Name
sqlcounter: sqlmod-inst = sql
sqlcounter: query = SELECT SUM(AcctSessionTime - GREATEST((%b
- UNIX_TIMESTAMP(AcctStartTime)), 0)) FROM radacct WHERE UserName='%{%k}'
AND UNIX_TIMESTAMP(AcctStartTime) + AcctSessionTime  '%b'
sqlcounter: reset = weekly
rlm_sqlcounter: Counter attribute Weekly-Session-Time is number 1675
rlm_sqlcounter: Check attribute Max-Weekly-Session is number 1676
rlm_sqlcounter: Current Time: 1116621277 [2005-05-20 16:34:37], Next
reset 1116734400 [2005-05-22 00:00:00]
rlm_sqlcounter: Current Time: 1116621277 [2005-05-20 16:34:37], Prev
reset 1116388800 [2005-05-18 00:00:00]
Module: Instantiated sqlcounter (weeklycounter)
sqlcounter: counter-name = Monthly-Session-Time
sqlcounter: check-name = Max-Monthly-Session
sqlcounter: key = User-Name
sqlcounter: sqlmod-inst = sql
sqlcounter: query = SELECT SUM(AcctSessionTime - GREATEST((%b
- UNIX_TIMESTAMP(AcctStartTime)), 0)) FROM radacct WHERE UserName='%{%k}'
AND UNIX_TIMESTAMP(AcctStartTime) + AcctSessionTime  '%b'
sqlcounter: reset = monthly
rlm_sqlcounter: Counter attribute Monthly-Session-Time is number
1677
rlm_sqlcounter: Check attribute Max-Monthly-Session is number 1678
rlm_sqlcounter: Current Time: 

Freeradius accounting compiling question

2005-05-16 Thread Software Development Group


Hello,
I am running ubuntu and I am trying to compile FreeRadius with
rlm_sqlcounter (following your advice) to be able to keep track of
connection usage by user depending on tickets given to them.
For this, I am doing:
make clean
./configure --with-experimental-modules
and get the following error report:
[EMAIL PROTECTED]:~/freeradius-1.0.2 $ sudo ./configure
--with-experimental-modules  configure.txt
configure: warning: snmpget not found - Simultaneous-Use and checkrad.pl
may not work
configure: warning: snmpwalk not found - Simultaneous-Use and checkrad.pl
may not work
configure: warning: silently not building rlm_counter.
configure: warning: FAILURE: rlm_counter requires: libgdbm.
configure: warning: FAILURE: rlm_dbm requires: (ndbm.h or
gdbm/ndbm.h or gdbm-ndbm.h) (libndbm or libgdbm or libgdbm_compat).
configure: warning: silently not building rlm_dbm.
configure: warning: silently not building rlm_ippool.
configure: warning: FAILURE: rlm_ippool requires: libgdbm.
configure: warning: the comm_err library isn't found!
configure: warning: silently not building rlm_krb5.
configure: warning: FAILURE: rlm_krb5 requires: krb5.
configure: warning: silently not building rlm_ldap.
configure: warning: FAILURE: rlm_ldap requires: liblber.
configure: warning: silently not building rlm_pam.
configure: warning: FAILURE: rlm_pam requires: libpam.
configure: warning: silently not building rlm_python.
configure: warning: FAILURE: rlm_python requires: Python.h
libpython2.3.
configure: warning: ibm db2 headers not found. Use
--with-ibmdb2-include-dir=path.
configure: warning: sql submodule 'db2' disabled
configure: warning: iodbc headers not found. Use
--with-iodbc-include-dir=path.
configure: warning: sql submodule 'iodbc' disabled
configure: warning: mysql headers not found. Use
--with-mysql-include-dir=path.
configure: warning: sql submodule 'mysql' disabled
configure: warning: oracle headers not found. Use
--with-oracle-home-dir=path.
configure: warning: sql submodule 'oracle' disabled
configure: warning: unixODBC headers not found. Use
--with-unixodbc-include-dir=path.
configure: warning: sql submodule 'unixodbc' disabled
[EMAIL PROTECTED]:~/freeradius-1.0.2 $ 
(NOTE ) I do have libgdbm3 installed on my system.
and obviously running make from that
gives me:
[EMAIL PROTECTED]:~/freeradius-1.0.2 $ sudo make
Password:
ltdl.c: In function `lt_dlopenext':
ltdl.c:2926: warning: unused variable `file_found'
radius.c: In function `rad_decode':
radius.c:1429: warning: comparison is always true due to limited range of
data type
misc.c: In function `ipv6_ntoa':
misc.c:355: warning: return warning: assignment discards qualifiers from
pointer target type
rbtree.c: In function `rbtree_insert':
rbtree.c:265: warning: assignment discards qualifiers from pointer target
type
rbtree.c:278: warning: assignment discards qualifiers from pointer target
type
radius.c: In function `rad_decode':
radius.c:1429: warning: comparison is always true due to limited range of
data type
misc.c: In function `ipv6_ntoa':
misc.c:355: warning: return discards qualifiers from pointer target
type
rbtree.c: In function `rbtree_insert':
rbtree.c:265: warning: assignment discards qualifiers from pointer target
type
rbtree.c:278: warning: assignment discards qualifiers from pointer target
type
rlm_eap_gtc.c: In function `gtc_detach':
rlm_eap_gtc.c:61: warning: when passing argument 1 of `free' discards
qualifiers from pointer target type
rlm_eap_gtc.c:62: warning: when passing argument 1 of `free' discards
qualifiers from pointer target type
rlm_eap_mschapv2.c: In function `eapmschapv2_compose':
rlm_eap_mschapv2.c:127: warning: assignation from incompatible pointer
type
rlm_eap_peap.c: In function `eappeap_authenticate':
rlm_eap_peap.c:190: warning: when passing argument 2 of `record_plus'
from incompatible pointer type
peap.c: In function `eappeap_postproxy':
peap.c:375: warning: unused variable `vp'
ttls.c: En la función `eapttls_postproxy':
ttls.c:744: warning: unused variable `vp'
rlm_eap_gtc.c: In function `gtc_detach':
rlm_eap_gtc.c:61: warning: passing arg 1 of `free' discards qualifiers
from pointer target type
rlm_eap_gtc.c:62: warning: passing arg 1 of `free' discards qualifiers
from pointer target type
rlm_eap_mschapv2.c: In function `eapmschapv2_compose':
rlm_eap_mschapv2.c:127: warning: assignment from incompatible pointer
type
rlm_eap_peap.c: In function `eappeap_authenticate':
rlm_eap_peap.c:190: warning: passing arg 2 of `record_plus' from
incompatible pointer type
peap.c: In function `eappeap_postproxy':
peap.c:375: warning: unused variable `vp'
ttls.c: In function `eapttls_postproxy':
ttls.c:744: warning: unused variable `vp'
rlm_exec.c: In function `exec_detach':
rlm_exec.c:162: warning: passing arg 2 of `xlat_unregister' from
incompatible pointer type
rlm_exec.c: In function `exec_instantiate':
rlm_exec.c:264: warning: passing arg 2 of `xlat_register' from
incompatible pointer type
rlm_exec.c: In function `exec_detach':
rlm_exec.c:162: 

Re: Freeradius install problem

2005-05-10 Thread Software Development Group
Sorry Alan and your comment is right but that is just that I sent you the 
printout from testing with another client. Actually the error does always 
show the client that is trying to validate.

Thanks,
Maxo
At 17:39 09/05/2005, you wrote:
Software Development Group [EMAIL PROTECTED] wrote:
 Ignoring request from unknown client 172.18.21.100:10005
...
 I added a line in the clients.conf file with the details of the ISS:

 client 192.10.25.100 (ISS's IP address)
  That isn't the same IP address that the server sees.
  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

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


Re: Freeradius install problem

2005-05-10 Thread Software Development Group


Sorry Terry and your comment is right but that is just that I sent you
the printout from testing with another client. Actually the error does
always show the client that is trying to validate.
When the error shows:
rad_recv: Access-Request packet from host
172.18.21.100:10005, id=5, length=137
Ignoring request from unknown client 172.18.21.100:10005
--- Walking the entire request list ---
Nothing to do. Sleeping until we see a request.
the clients.conf file shows:
client 172.18.21.100 {

secret
= FreeRadius

shortname=
172.18.21.100
}
Thanks,
Maxo
At 17:38 09/05/2005, you wrote:
when you set up the client in
the clients.conf
did you put all the client info inside {} ?
client ip {
 secret = nosecret
 shortname = mycomputer
}
it didn't look that way in the message, but that may have just been for
ease of writing...
-- 
Terry J Fike Jr
System Administrator
MTA Solutions
907-793-4100
[EMAIL PROTECTED]
- List info/subscribe/unsubscribe? See

http://www.freeradius.org/list/users.html




Re: Freeradius install problem

2005-05-10 Thread Software Development Group


One more detail Alan,
I just re-prduced it for you and when the error shows:
rad_recv: Access-Request packet from host
172.18.21.100:10005, id=5, length=137
Ignoring request from unknown client 172.18.21.100:10005
--- Walking the entire request list ---
Nothing to do. Sleeping until we see a request.
the clients.conf file shows:
client 172.18.21.100 {

secret
= FreeRadius

shortname=
172.18.21.100
}
Thanks,
Maxo 
At 17:39 09/05/2005, you wrote:
Software Development Group
[EMAIL PROTECTED] wrote:
 Ignoring request from unknown client 172.18.21.100:10005
...
 I added a line in the clients.conf file with the details of the
ISS:
 
 client 192.10.25.100 (ISS's IP address)
 That isn't the same IP address that the server sees.
 Alan DeKok.
- 
List info/subscribe/unsubscribe? See

http://www.freeradius.org/list/users.html



Re: Freeradius install problem

2005-05-10 Thread Software Development Group
Thanks Alan you were right. I was changing a clients.conf on a different 
directory. I made the changes on the right one and it went through and gave 
me a user validation error this time so I am now working on the users file.

Thanks for your help.
Maxo
At 12:23 10/05/2005, you wrote:
Software Development Group [EMAIL PROTECTED] wrote:
 I just re-prduced it for you and when the error shows:

 rad_recv: Access-Request packet from host 172.18.21.100:10005, id=5, 
length=137
 Ignoring request from unknown client 172.18.21.100:10005

 the clients.conf file shows:

 client 172.18.21.100 {

  Then the server isn't reading the clients.conf file that you're editing.
  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

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


Freeradius accounting question

2005-05-10 Thread Software Development Group
Hello,
I have compiled and installed freeradius and it is working fine. My 
question now is:

At this point a user logs in with a password, is authenticated and enters 
the system but if I want to set user x to only have 2 hours connection time 
only and user y to only have 1 hour of connection, how can I do this?

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


Freeradius install problem

2005-05-09 Thread Software Development Group


Hello,
I´ve installed and compiled freeradius on my Linux ubuntu Warty Warthog
4.10 everything went Ok. I run freeradius on debug mode (radiusd -X) ant
it seems to work fine:
[EMAIL PROTECTED]:/home/maxo # radiusd -X
Starting - reading configuration files ...
reread_config: reading radiusd.conf
Config: including file: /usr/local/etc/raddb/proxy.conf
Config: including file:
/usr/local/etc/raddb/clients.conf
Config: including file: /usr/local/etc/raddb/snmp.conf
Config: including file: /usr/local/etc/raddb/eap.conf
Config: including file: /usr/local/etc/raddb/sql.conf
main: prefix = /usr/local
main: localstatedir = /usr/local/var
main: logdir = /usr/local/var/log/radius
main: libdir = /usr/local/lib
main: radacctdir =
/usr/local/var/log/radius/radacct
main: hostname_lookups = no
main: max_request_time = 30
main: cleanup_delay = 5
main: max_requests = 1024
main: delete_blocked_requests = 0
main: port = 0
main: allow_core_dumps = no
main: log_stripped_names = no
main: log_file =
/usr/local/var/log/radius/radius.log
main: log_auth = no
main: log_auth_badpass = no
main: log_auth_goodpass = no
main: pidfile =
/usr/local/var/run/radiusd/radiusd.pid
main: user = (null)
main: group = (null)
main: usercollide = no
main: lower_user = no
main: lower_pass = no
main: nospace_user = no
main: nospace_pass = no
main: checkrad = /usr/local/sbin/checkrad
main: proxy_requests = yes
proxy: retry_delay = 5
proxy: retry_count = 3
proxy: synchronous = no
proxy: default_fallback = yes
proxy: dead_time = 120
proxy: post_proxy_authorize = yes
proxy: wake_all_if_all_dead = no
security: max_attributes = 200
security: reject_delay = 1
security: status_server = no
main: debug_level = 0
read_config_files: reading dictionary
read_config_files: reading naslist
Using deprecated naslist file. Support for this will go away
soon.
read_config_files: reading clients
read_config_files: reading realms
radiusd: entering modules setup
Module: Library search path is /usr/local/lib
Module: Loaded exec
exec: wait = yes
exec: program = (null)
exec: input_pairs = request
exec: output_pairs = (null)
exec: packet_type = (null)
rlm_exec: Wait=yes but no output defined. Did you mean output=none?
Module: Instantiated exec (exec)
Module: Loaded expr
Module: Instantiated expr (expr)
Module: Loaded PAP
pap: encryption_scheme = crypt
Module: Instantiated pap (pap)
Module: Loaded CHAP
Module: Instantiated chap (chap)
Module: Loaded MS-CHAP
mschap: use_mppe = yes
mschap: require_encryption = no
mschap: require_strong = no
mschap: with_ntdomain_hack = no
mschap: passwd = (null)
mschap: authtype = MS-CHAP
mschap: ntlm_auth = (null)
Module: Instantiated mschap (mschap)
Module: Loaded System
unix: cache = no
unix: passwd = (null)
unix: shadow = (null)
unix: group = (null)
unix: radwtmp = /usr/local/var/log/radius/radwtmp
unix: usegroup = no
unix: cache_reload = 600
Module: Instantiated unix (unix)
Module: Loaded eap
eap: default_eap_type = md5
eap: timer_expire = 60
eap: ignore_unknown_eap_types = no
eap: cisco_accounting_username_bug = no
rlm_eap: Loaded and initialized type md5
rlm_eap: Loaded and initialized type leap
gtc: challenge = Password: 
gtc: auth_type = PAP
rlm_eap: Loaded and initialized type gtc
mschapv2: with_ntdomain_hack = no
rlm_eap: Loaded and initialized type mschapv2
Module: Instantiated eap (eap)
Module: Loaded preprocess
preprocess: huntgroups =
/usr/local/etc/raddb/huntgroups
preprocess: hints = /usr/local/etc/raddb/hints
preprocess: with_ascend_hack = no
preprocess: ascend_channels_per_line = 23
preprocess: with_ntdomain_hack = no
preprocess: with_specialix_jetstream_hack = no
preprocess: with_cisco_vsa_hack = no
Module: Instantiated preprocess (preprocess)
Module: Loaded realm
realm: format = suffix
realm: delimiter = @
realm: ignore_default = no
realm: ignore_null = no
Module: Instantiated realm (suffix)
Module: Loaded files
files: usersfile = /usr/local/etc/raddb/users
files: acctusersfile =
/usr/local/etc/raddb/acct_users
files: preproxy_usersfile =
/usr/local/etc/raddb/preproxy_users
files: compat = no
Module: Instantiated files (files)
Module: Loaded Acct-Unique-Session-Id
acct_unique: key = User-Name, Acct-Session-Id,
NAS-IP-Address, Client-IP-Address, NAS-Port
Module: Instantiated acct_unique (acct_unique)
Module: Loaded detail
detail: detailfile =
/usr/local/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d
detail: detailperm = 384
detail: dirperm = 493
detail: locking = no
Module: Instantiated detail (detail)
Module: Loaded radutmp
radutmp: filename =
/usr/local/var/log/radius/radutmp
radutmp: username = %{User-Name}
radutmp: case_sensitive = yes
radutmp: check_with_nas = yes
radutmp: perm = 384
radutmp: callerid = yes
Module: Instantiated radutmp (radutmp)
Listening on authentication *:1812
Listening on accounting *:1813
Listening on proxy *:1814
Ready to process requests. 
then I connect the server to the network and my Internet
Service Controller (NAS) also to the network and a client PC to the
Internet Service Controller