RE: Java Classes

2004-02-11 Thread Manuel Ricca
Title: RE: Java Classes





You should use JNI. Take a look at
http://java.sun.com/docs/books/tutorial/native1.1/


JNI is not very friendly though, so it may be a good idea to use jace:
http://reyelts.dyndns.org:8008/jace/release/docs/index.html


You can also find in sourceforge.net


Regards,
Manuel Ricca


-Original Message-
From: Chris Parker [mailto:[EMAIL PROTECTED]] 
Sent: terça-feira, 10 de Fevereiro de 2004 23:16
To: [EMAIL PROTECTED]
Subject: Re: Java Classes


At 03:03 PM 2/10/2004, Pablo Silva wrote:
Dear People:

 I'm working with freeradius-0.9.1-1
version, I would like to know if are there java
classes for this project?... if you know about this...
please tell me where I can find it, I've searched by
google but nothing...


No. FreeRADIUS is written in C. Sorry.


-Chris
--
 \\\|||/// \ StarNet Inc. \ Chris Parker
 \ ~ ~ / \ WX *is* Wireless! \ Director, Engineering
 | @ @ | \ http://www.starnetwx.net \ (847) 963-0116
oOo---(_)---oOo--\--
 \ Wholesale Internet Services - http://www.megapop.net




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





Re: Freeradius PEAP Problems

2004-02-11 Thread Alan DeKok
Lionel Gavage [EMAIL PROTECTED] wrote:
 even with this option, the problem is always present!
 
 an idea ?

  shrug  Buy a better client?

  The tunneled session MUST include an EAP-Identity packet, which is
where the user name comes from.  If the client doesn't send it, don't
complain that FreeRADIUS is broken.  Fix the client.

  The user name is REQUIRED for MS-CHAP, which is what PEAP uses
inside of the TLS tunnel.  Any client that doesn't send a user name is
broken.

  Alan DeKok.

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


Re: PAP Challenge password change

2004-02-11 Thread Alan DeKok
David Lomax [EMAIL PROTECTED] wrote:
 Looking at what the other server does the Challenge data is stored then
 another Access-Challenge is sent.
 They compare the two strings and then change the DB password. Or at least
 that's what I get from this trace.
 I am sure this is very non standard however I would like to mirror this
 behavior. I was leave to believe that
 This is a feature a lot of PAP Radius servers have.

  I've never heard of any server having this feature.

  I would suggest writing your own module to handle this.  See rlm_example.

  Alan DeKok.

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


Re: Problem binding to IP address

2004-02-11 Thread Stuart Winter
On Tue, 10 Feb 2004, Dustin Doris wrote:

[..]
   This command line option is deprecated.   See  the bind_address
   configuration item in the radiusd.conf file.

 You need to edit radiusd.conf and put in the IP to bind to.

I thought it might be something like that but I just read
the FAQ rather than the man page (*slaps self*)

However, upon reading the man page, I spotted a typo
IP  addres  to
so it's not all for nothing ;-)

Thanks Dustin.
-- 
Stuart Winter
www.interlude.org.uk  www.biscuit.org.uk
| Washing machines live longer with Calgon

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


[PATCH] cvs needs this

2004-02-11 Thread Florian Lohoff

Hi,
one line fix for current cvs:

Index: src/include/radius_snmp.h
===
RCS file: /source/radiusd/src/include/radius_snmp.h,v
retrieving revision 1.9
diff -u -r1.9 radius_snmp.h
--- src/include/radius_snmp.h   10 Feb 2004 15:57:19 -  1.9
+++ src/include/radius_snmp.h   11 Feb 2004 12:22:14 -
@@ -92,7 +92,7 @@
  if (_fd == authfd) { \
rad_snmp.auth._x++; \
 } else { if (_fd == acctfd) \
-   rad_snmp.acct._x++ } } \
+   rad_snmp.acct._x++; } } \
 
 
 #else
-- 
Florian Lohoff  [EMAIL PROTECTED] +49-171-2280134
Heisenberg may have been here.


pgp0.pgp
Description: PGP signature


eap/cisco AP1100/current cvs

2004-02-11 Thread Florian Lohoff

Hi,
i am seeing some weird problems with a Cisco AP1100 and freeradius
current cvs.

When trying to authenticate via xsupplicant over wireless i see this
after receiving the response from the freeradius:

*Mar  1 01:45:50.948: RADIUS: Received from id 60 195.71.4.233:1812, Access-Challenge, 
len 80
*Mar  1 01:45:50.949: RADIUS: Cannot find corresponding request for response

It looks like the AP is unable to match request and response. Looking at
the packets with ethereal i think everything is ok

freeradiusd output:

rad_recv: Access-Request packet from host 195.71.4.215:1645, id=60, length=153
User-Name = [EMAIL PROTECTED]
Framed-MTU = 1400
Called-Station-Id = 0002.8a21.1345
Calling-Station-Id = 0002.2d9d.f09f
Message-Authenticator = 0xdbd048be4179b1fb5ad796a34cb428c9
EAP-Message = 0x0202001601666c6f4074656c65666f6e6963612e6465
NAS-Port-Type = Virtual
NAS-Port = 407
NAS-IP-Address = 195.71.4.215
NAS-Identifier = wmws-verl-de01
modcall: entering group authorize for request 15
  modcall[authorize]: module preprocess returns ok for request 15
  modcall[authorize]: module chap returns noop for request 15
  modcall[authorize]: module mschap returns noop for request 15
rlm_realm: Looking up realm uglydomain.de for User-Name = [EMAIL PROTECTED]
rlm_realm: Found realm uglydomain.de
rlm_realm: Proxying request from user flo to realm uglydomain.de
rlm_realm: Adding Realm = uglydomain.de
rlm_realm: Authentication realm is LOCAL.
  modcall[authorize]: module suffix returns noop for request 15
  rlm_eap: EAP packet type response id 2 length 22
  rlm_eap: No EAP Start, assuming it's an on-going EAP conversation
  modcall[authorize]: module eap returns updated for request 15
users: Matched [EMAIL PROTECTED] at 73
  modcall[authorize]: module files returns ok for request 15
modcall: group authorize returns updated for request 15
  rad_check_password:  Found Auth-Type EAP
auth: type EAP
modcall: entering group authenticate for request 15
  rlm_eap: EAP Identity
  rlm_eap: processing type md5
rlm_eap_md5: Issuing Challenge
  modcall[authenticate]: module eap returns handled for request 15
modcall: group authenticate returns handled for request 15
Sending Access-Challenge of id 60 to 195.71.4.215:1645
EAP-Message = 0x010300160410bf135d4759cc741df4d4ab85f489f0ad
Message-Authenticator = 0x
State = 0x864e9650b42d40dc33122a989e142ac2
Finished request 15


Did anyone see this before - I remember trying this a couple months
back when it worked.

Flo
-- 
Florian Lohoff  [EMAIL PROTECTED] +49-171-2280134
Heisenberg may have been here.


pgp0.pgp
Description: PGP signature


howto configure freeradius in Red hat 9

2004-02-11 Thread achan awungshi
Dear all,
I would be very appreciate if anyone can share me where to find the configutation /setup of radius in Red hat 9 for PPP (dail up connection).
waiting your mail 
Regard
achan
Yahoo! India Education Special: Study in the UK now.

Problem installing freeradius+rlm_sql_mysql under freebsd ! Strange!

2004-02-11 Thread Anton Blajev
Hello all out there, 

I'm using FreeBSD as my server machine, I wanted to run radius+mysql
auth for my pptp users.

I got freeradius work just fine, but ! 
When I've tryed to get it working with mysql I wasn't able :(.

It returnd error freeradius can't load rlm_sql_mysq module.
I've made ls -la in the lib dir, there was rlm_sql.so ponting to
rlm_sql_postgresql.so 

I've installed freeradius a lot of times after, with different options 
( I'm installing it from /usr/ports , I have the exact version of mysql
server + client).
 I'm defining -DWITH_MYSQL_VER=40 as described in the Makefile in
/usr/ports/net/freeradius/Makefile, but nothing!!! 
I get the same result every time, freeradius got built witn postgre and
no mysql :(((

Any ideas why's that?
10x in advance!


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


Re: Problem installing freeradius+rlm_sql_mysql under freebsd ! Strange!

2004-02-11 Thread Guy Fraser
Anton Blajev wrote:

Hello all out there, 

I'm using FreeBSD as my server machine, I wanted to run radius+mysql
auth for my pptp users.
I got freeradius work just fine, but ! 
When I've tryed to get it working with mysql I wasn't able :(.

It returnd error freeradius can't load rlm_sql_mysq module.
I've made ls -la in the lib dir, there was rlm_sql.so ponting to
rlm_sql_postgresql.so 

I've installed freeradius a lot of times after, with different options 
( I'm installing it from /usr/ports , I have the exact version of mysql
server + client).
I'm defining -DWITH_MYSQL_VER=40 as described in the Makefile in
/usr/ports/net/freeradius/Makefile, but nothing!!! 
I get the same result every time, freeradius got built witn postgre and
no mysql :(((

Any ideas why's that?
10x in advance!
 

Change directory to :
/usr/ports/net/freradius 

Type these commands as root or use sudo :

make deinstall
make clean
make WITH_MYSQL=yes
make install
You should now have freeradius installed with mysql support.

If you want to build from cvs...

As root :

cvs -d :pserver:[EMAIL PROTECTED]:/source login
{cvs password is : anoncvs}
cvs -d :pserver:[EMAIL PROTECTED]:/source checkout radiusd
cvs -d :pserver:[EMAIL PROTECTED]:/source logout
cd radiusd
./configure --quiet --with-logdir=/var/log --localstatedir=/var \
--disable-ltdl-install --with-ltdl-include=/usr/local/include \
--with-ltdl-lib=/usr/local/lib --with-large-files \
--without-rlm_x99_token
make
make install
I am currently working on a FreeBSD 5.2 machine with FreeRadius from CVS.

You will probably want to make sure your ports tree is up to date before
you build freeradius from ports. The current port should be 0.9.3. I have built it 
with MySQL support and it does work.
Hope that helps.

Have a nice day.





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


RE: Problem installing freeradius+rlm_sql_mysql under freebsd ! Strange!

2004-02-11 Thread Anson Rinesmith
Please post your results here, as I know I would be interested to know if
this works.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:freeradius-
 [EMAIL PROTECTED] On Behalf Of Guy Fraser
 Sent: Wednesday, February 11, 2004 1:35 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Problem installing freeradius+rlm_sql_mysql under freebsd !
 Strange!
 
 Anton Blajev wrote:
 
 Hello all out there,
 
 I'm using FreeBSD as my server machine, I wanted to run radius+mysql
 auth for my pptp users.
 
 I got freeradius work just fine, but !
 When I've tryed to get it working with mysql I wasn't able :(.
 
 It returnd error freeradius can't load rlm_sql_mysq module.
 I've made ls -la in the lib dir, there was rlm_sql.so ponting to
 rlm_sql_postgresql.so
 
 I've installed freeradius a lot of times after, with different options
 ( I'm installing it from /usr/ports , I have the exact version of mysql
 server + client).
  I'm defining -DWITH_MYSQL_VER=40 as described in the Makefile in
 /usr/ports/net/freeradius/Makefile, but nothing!!!
 I get the same result every time, freeradius got built witn postgre and
 no mysql :(((
 
 Any ideas why's that?
 10x in advance!
 
 
 Change directory to :
 /usr/ports/net/freradius
 
 Type these commands as root or use sudo :
 
 make deinstall
 make clean
 make WITH_MYSQL=yes
 make install
 
 You should now have freeradius installed with mysql support.
 
 If you want to build from cvs...
 
 As root :
 
 cvs -d :pserver:[EMAIL PROTECTED]:/source login
 {cvs password is : anoncvs}
 cvs -d :pserver:[EMAIL PROTECTED]:/source checkout radiusd
 cvs -d :pserver:[EMAIL PROTECTED]:/source logout
 cd radiusd
 ./configure --quiet --with-logdir=/var/log --localstatedir=/var \
 --disable-ltdl-install --with-ltdl-include=/usr/local/include \
 --with-ltdl-lib=/usr/local/lib --with-large-files \
 --without-rlm_x99_token
 
 make
 make install
 
 I am currently working on a FreeBSD 5.2 machine with FreeRadius from CVS.
 
 You will probably want to make sure your ports tree is up to date before
 you build freeradius from ports. The current port should be 0.9.3. I have
 built it with MySQL support and it does work.
 
 Hope that helps.
 
 Have a nice day.
 
 
 
 
 
 -
 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: Problem installing freeradius+rlm_sql_mysql under freebsd ! Strange!

2004-02-11 Thread Anton Blajev
Yep! It worked!

So, in conclusion as it has been said when you install freeradius in
freebsd from ports, use make -WITH_MYSQL=yes not make -D.anything
here as you used to define something 
it worked! I have rlm_sql_mysql.so!!
Thanks a lot guys!

On Ср , 2004-02-11 at 21:34, Guy Fraser wrote:
 Anton Blajev wrote:
 
 Hello all out there, 
 
 I'm using FreeBSD as my server machine, I wanted to run radius+mysql
 auth for my pptp users.
 
 I got freeradius work just fine, but ! 
 When I've tryed to get it working with mysql I wasn't able :(.
 
 It returnd error freeradius can't load rlm_sql_mysq module.
 I've made ls -la in the lib dir, there was rlm_sql.so ponting to
 rlm_sql_postgresql.so 
 
 I've installed freeradius a lot of times after, with different options 
 ( I'm installing it from /usr/ports , I have the exact version of mysql
 server + client).
  I'm defining -DWITH_MYSQL_VER=40 as described in the Makefile in
 /usr/ports/net/freeradius/Makefile, but nothing!!! 
 I get the same result every time, freeradius got built witn postgre and
 no mysql :(((
 
 Any ideas why's that?
 10x in advance!
   
 
 Change directory to :
 /usr/ports/net/freradius 
 
 Type these commands as root or use sudo :
 
 make deinstall
 make clean
 make WITH_MYSQL=yes
 make install
 
 You should now have freeradius installed with mysql support.
 
 If you want to build from cvs...
 
 As root :
 
 cvs -d :pserver:[EMAIL PROTECTED]:/source login
 {cvs password is : anoncvs}
 cvs -d :pserver:[EMAIL PROTECTED]:/source checkout radiusd
 cvs -d :pserver:[EMAIL PROTECTED]:/source logout
 cd radiusd
 ./configure --quiet --with-logdir=/var/log --localstatedir=/var \
 --disable-ltdl-install --with-ltdl-include=/usr/local/include \
 --with-ltdl-lib=/usr/local/lib --with-large-files \
 --without-rlm_x99_token
 
 make
 make install
 
 I am currently working on a FreeBSD 5.2 machine with FreeRadius from CVS.
 
 You will probably want to make sure your ports tree is up to date before
 you build freeradius from ports. The current port should be 0.9.3. I have built it 
 with MySQL support and it does work.
 
 Hope that helps.
 
 Have a nice day.
 
 
 
 
 
 - 
 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: Compile error for Cygwin

2004-02-11 Thread A. Clausen
I've gone through and made the changes to the source, but compiling still
gives me:

Making static dynamic in rlm_counter...
make[6]: Entering directory
`/usr/src/freeradius-0.9.3/src/modules/rlm_counter'
gcc  -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DND
EBUG  -I../../include  -c rlm_counter.c -o rlm_counter.o
rlm_counter.c: In function `add_defaults':
rlm_counter.c:177: warning: assignment discards qualifiers from pointer
target type
rlm_counter.c:189: warning: assignment discards qualifiers from pointer
target type
rlm_counter.c: In function `counter_instantiate':
rlm_counter.c:480: warning: assignment discards qualifiers from pointer
target type
rlm_counter.c:501: warning: assignment discards qualifiers from pointer
target type
rlm_counter.c: In function `counter_accounting':
rlm_counter.c:683: warning: assignment from incompatible pointer type
rlm_counter.c: In function `counter_authorize':
rlm_counter.c:824: warning: int format, uint32_t arg (arg 3)
rlm_counter.c:846: warning: int format, uint32_t arg (arg 3)
/usr/src/freeradius-0.9.3/libtool --mode=link ld \
-module -static  -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU
_SOURCE -DNDEBUG  -I../../include  rlm_counter.o -o rlm_counter.a
mkdir .libs
ar cru rlm_counter.a rlm_counter.o
ranlib rlm_counter.a
/usr/src/freeradius-0.9.3/libtool --mode=compile
gcc  -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DND
EBUG  -I../../include  -c rlm_counter.c
gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDE
BUG -I../../include -c rlm_counter.c -o rlm_counter.o
rlm_counter.c: In function `add_defaults':
rlm_counter.c:177: warning: assignment discards qualifiers from pointer
target type
rlm_counter.c:189: warning: assignment discards qualifiers from pointer
target type
rlm_counter.c: In function `counter_instantiate':
rlm_counter.c:480: warning: assignment discards qualifiers from pointer
target type
rlm_counter.c:501: warning: assignment discards qualifiers from pointer
target type
rlm_counter.c: In function `counter_accounting':
rlm_counter.c:683: warning: assignment from incompatible pointer type
rlm_counter.c: In function `counter_authorize':
rlm_counter.c:824: warning: int format, uint32_t arg (arg 3)
rlm_counter.c:846: warning: int format, uint32_t arg (arg 3)
echo timestamp  rlm_counter.lo
/usr/src/freeradius-0.9.3/libtool --mode=link gcc -release 0.9.3 \
-module -static  -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU
_SOURCE -DNDEBUG  -I../../include   \
-o rlm_counter.la -rpath /usr/local/lib
lm_counter.lo -lgdbm -lresolv  -lpthread
libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin
shared libraries
rm -fr .libs/rlm_counter.la .libs/rlm_counter.* .libs/rlm_counter-0.9.3.*
ar cru .libs/rlm_counter.a  rlm_counter.o
ranlib .libs/rlm_counter.a
creating rlm_counter.la
(cd .libs  rm -f rlm_counter.la  ln -s ../rlm_counter.la rlm_counter.la)
make[6]: Leaving directory
`/usr/src/freeradius-0.9.3/src/modules/rlm_counter'
Making static dynamic in rlm_dbm...
make[6]: Entering directory `/usr/src/freeradius-0.9.3/src/modules/rlm_dbm'
Makefile:23: *** missing separator (did you mean TAB instead of 8 spaces?).
Stop.
make[6]: Leaving directory `/usr/src/freeradius-0.9.3/src/modules/rlm_dbm'
make[5]: *** [common] Error 1
make[5]: Leaving directory `/usr/src/freeradius-0.9.3/src/modules'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/usr/src/freeradius-0.9.3/src/modules'
make[3]: *** [common] Error 1
make[3]: Leaving directory `/usr/src/freeradius-0.9.3/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/src/freeradius-0.9.3/src'
make[1]: *** [common] Error 1
make[1]: Leaving directory `/usr/src/freeradius-0.9.3'
make: *** [all] Error 2

Can anyone help?  I need to get this up and running relatively quickly.
I've reinstalled Cygwin with the kitchen sink, and still can't get the thing
to compile.  Does it compile or doesn't it?  If further libs or whatever are
required, then let me know.

-- 
Aaron Clausen


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


Re: Compile error for Cygwin

2004-02-11 Thread A. Clausen

- Original Message - 
From: A. Clausen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 11, 2004 16:44
Subject: Re: Compile error for Cygwin


 I've gone through and made the changes to the source, but compiling still
 gives me:


snip

Never mind.  Actually read the error and discovered I'd malformed the
Makefile.

-- 
Aaron Clausen


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


Re: PLEASE HELP!freeradius and mysql

2004-02-11 Thread Guy Fraser
Ciolo_-^DusT^-_WebMaster wrote:

I hope you can help me!
I'm trying to use free radius with mysql...
this the first time I use a radius system...
I need to use freeradius with a nomadix in orderr to obtain users
authentication of two kinds
a first group that have the access to internet allowed for 24 hours from the
first login and a second group  of users that have 1 h of effective
traffic...
they suggest me to use freeradius with mysql...
I'm using the last release of freeradius on a redhat 7.3 system (but in the
final solution I will work over a freebsd system)
my MySQL is installed not in the classic position but under
/usr/local/nusphere/mysql
...
...
At the beginning I have just tried to authenticate using users and passwords
from the unix machine... everything go well
but now that I'm trying to authenticate using mysql ... nothing,... always
rejected.
And one of the msg that I often find using radius in debug is
rlm_sql (sql): Error getting data from database
I hope you can help me at least explaining me how to interface freeradius
with mysql
( I tried to ask in the ML but they never replay to me !)
 

It sounds like either you do not have the permissions set to allow you 
to access the tables in the database, or the tables are not compatable.

In the debug information you should see the SELECT statement that was 
sent to mysql, and it should look somthing like this :

radius_xlat:  'SELECT id,UserName,Attribute,Value,op FROM radcheck WHERE Username = 'fredf' ORDER BY id'

Try that SQL statement in mysql using the user and password you have 
setup in the database configuration.

Example :

mysql -uradius -p radius
Enter password:{rootpass}
...
mysql SELECT id,UserName,Attribute,Value,op FROM radcheck WHERE Username = 'fredf' 
ORDER BY id;
++--+---+---++
| id | UserName | Attribute | Value | op |
++--+---+---++
|  1 | fredf| User-Password | wilma | == |
++--+---+---++
1 row in set (0.01 sec)
...
You can use this method to figure out what permission may not 
be set correctly. If you don't know how to administrate mysql 
then try this site:

http://www.mysql.com/doc/en/index.html

I hope that helps, but please send your questions to the list, 
rather than to me. I am not a mysql expert, but in order to 
make FreeRadius compatible with both MySQL and PostgreSQL, I 
have to test both, while making changes.

Good luck



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