Hello Jan -

>
>
>I have 2 radius processes on machine. (one for authentification and one for
>accounting)
>btw. Is that a good idea ? (to have 2 processes)


Yes - this is a good approach to improve performance.


>My problem is that accounting which I'm trying to send to the Extaccounting
>doesn't work. External radius server doesn't receive accounting requests.
>or receive, but only sometimes.
>


I will also need to see the accounting-logfile containing the results 
of a trace 4 showing what is going on.

BTW - you may also want to use an AuthByPolicy in your accounting setup.

        AuthByPolicy ContinueAlways

thanks

Hugh




>
>here is auth.conf:
>
>AuthPort 31645
>AcctPort
>LogDir /disk3/logs/radius
>DbDir   /etc/radiator
>PidFile /var/run/radiusd.pid
>SocketQueueLength 100000
># load the clients
>include %D/clients.cfg
><AuthBy FILE>
>         Identifier Defuser
>         Filename %D/defuser
></AuthBy>
><AuthBy SQL>
>         Identifier      SqlPassword
>         DBSource        dbi:mysql:host=xxxxxxxxxxxxxx;database=xxxxxxxxx
>         DBUsername      xxxxxxxx
>         DBAuth          xxxxxxxxxx
>         AuthSelect      SELECT pw FROM user WHERE email='%n@xxxxxxxxxx'
></AuthBy>
><Realm DEFAULT>
>         AuthByPolicy ContinueWhileReject
>         AuthBy Defuser
>         AuthBy SqlPassword
>         AcctLogFileName
></Realm>
>
>
>and here is acct.conf:
>
>AuthPort
>AcctPort 31646
>LogDir /disk3/logs/radius
>LogFile %L/accounting-logfile
>DbDir   /etc/radiator
>PidFile /var/run/radiusd-acct.pid
># load the clients
>include %D/clients.cfg
><AuthBy SQL>
>         Identifier      Log
>         DBSource        dbi:mysql:host=xxxxxxxxxxxxxxx;database=xxxxxxx
>         DBUsername      xxxxxxxx
>         DBAuth          xxxxxxxxxx
>         AuthSelect
>         AccountingStartsOnly
>         AcctSQLStatement UPDATE user SET lastlogin='%f-%g-%i %j:%k:%p' WHERE
>email='%n@xxxxxxxxxx'
>         Timeout         180
>         FailureBackoffTime      300
></AuthBy>
><AuthBy RADIUS>
>         Identifier Extaccounting
>         Host xxxxxxxxxxxxxxx
>         Secret xxxxxxxxxx
>         NoForwardAuthentication
>         AcctPort 1813
>         RetryTimeout 15
></AuthBy>
><Realm DEFAULT>
>         AuthBy Log
>         AuthBy Extaccounting
>         AcctLogFileName %L/detail
></Realm>
>
>
>
>
>mail from Extaccounting admin:
>
>this ist what I got as last request:
>
>-------------- snipp --------------------------
>Cleaning up request ID 154 with timestamp 00000000
>Nothing to do.  Sleeping until we see a request.
>rad_recv: Accounting-Request packet from host 212.197.144.34:1057, id=155,
>lengt
>h=96
>         User-Name = "dedo"
>         Service-Type = Framed-User
>         NAS-IP-Address = 203.63.154.1
>         NAS-Port-Id = 1234
>         NAS-Port-Type = Async
>         Acct-Session-Id = "00001234"
>         Acct-Status-Type = Stop
>         Acct-Delay-Time = 0
>         Acct-Session-Time = 1000
>         Acct-Input-Octets = 20000
>         Acct-Output-Octets = 30000
>         Attr-103 = ":n\3274"
>   preacct: Timeweb
>   accounting: Timeweb
>IP: 0.0.0.0, CSI: , STATUS: 2, Identifier: 00:00:00:00:00:00
>Sending Accounting-Response of id 155 to 212.197.144.34:1057
>Finished request
>Going to the next request
>Nothing to do.  Sleeping until we see a request.
>-------------- snipp --------------------------
>
>After that I do not receive any packets for 1 minute or longer.
>Have you any idea?
>-------------------------------------------------------
>
>--
>I am travelling at the moment, and there may be dalays in our correspondence.
>Mike McCauley, Open System Consultants, [EMAIL PROTECTED], www.open.com.au
>
>===
>Archive at http://www.starport.net/~radiator/
>Announcements on [EMAIL PROTECTED]
>To unsubscribe, email '[EMAIL PROTECTED]' with
>'unsubscribe radiator' in the body of the message.

-- 

NB: I am travelling this week, so there may be delays in our correspondence.

Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.

===
Archive at http://www.starport.net/~radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to