En r�ponse � [EMAIL PROTECTED] :

> sorry for my poor english (im Brasilian), well, i'm starting at
> freeradius and mysql, i've installed freeradius + mysql following
> the www.frontios.com/freeradius.html howto, seems all ok, localy
> with radtest radius returns a message of OK using the table in
> mysql, but i want to test the authentication and logging (radacct)
> with mysql. Well, i heard that this test can be done with minicom +
> portslave localy, without the necessity of a modem installed, it
> true?  if .. someone that already have passed of this it could help
> me?

If I'm not misunderstanding, you just want to send accounting packets
to you freeradius server and want to see whether accounting packets
goes in your database.

This simple script shell should be convenient. Just replace the IP
address of your freeradius server (and the username / password /
secret if you've changed the default configuration).

#!/bin/sh

# steve authenticates
cat << EOF | radclient -x 172.16.16.17 auth testing123
User-Name = steve
User-Password = testing
NAS-IP-Address = localhost
NAS-Port = 0
EOF

# steve starts accounting
cat << EOF | radclient -x 172.16.16.17 acct testing123
NAS-IP-Address = localhost
NAS-Port = 0
NAS-Port-Type = 2
User-Name = steve
Acct-Status-Type = Start
EOF

# steve is doing something else
sleep 1

# steve stops accounting
cat << EOF | radclient -x 172.16.16.17 acct testing123
NAS-IP-Address = localhost
NAS-Port = 0
NAS-Port-Type = 2
User-Name = steve
Acct-Status-Type = Stop
EOF


-- 
Nicolas Baradakis

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

Reply via email to