SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Sponsored Links

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

We got a request asking if a certain NT RADIUS server format could be used. Below is the request and information on what format radiusContext expects -- if you can munge whatever format into this format, radiusContext should process it.

Alternately, a fair bit of the logic in "raddetail" is dedicated to processing these multi-line records. I figure roughly 100 lines of code handle the processing of the various date records (optimized for speed at handling a certain format, falling back to a slower method for other formats) and about 50 lines handle processing of the multi-line data. This leaves 50 lines that are part of the base processing.

Writing a direct processor for the NT CSV format should be pretty easy.

>Note: I'm authenticating dial-up users using RADIUS on (dare I say it) >Windows 2000. I'd like to use radiusContext on one of our our Redhat >6.1 boxes to produce monthly reports on access for some users. W2K is >logging to a comma delimited text file (which we can ftp on to the Linux >box to do the reporting when we need it). Can I adapt radiusContext to >parse these logs?

The format that radiusContext is expecting is:

Tue Apr 14 11:56:32 1998

NAS-IP-Address = 209.16.218.30
NAS-Port = 19
User-Name = ""
Acct-Status-Type = Stop
Acct-Session-Id = "000002"
Service-Type = NAS-Prompt
Acct-Session-Time = 21

Tue Apr 14 12:01:26 1998

NAS-IP-Address = 209.16.218.30
NAS-Port = 2
User-Name = "baytowne"
Acct-Status-Type = Stop
Acct-Session-Id = "000003"
Service-Type = Framed
Framed-Protocol = PPP
Framed-IP-Address = 209.16.218.32
Acct-Input-Octets = 145
Acct-Output-Octets = 119
Acct-Input-Packets = 6
Acct-Output-Packets = 6
Acct-Session-Time = 32

This is the native format for most RADIUS programs. If you can write a conversion program to generate this format, radiusContext should be able to run against that. Note that radiusContext only uses "stop" type records (as shown above). The fields that I believe are most important are:

Tue Apr 14 12:01:26 1998

User-Name = "baytowne"
Acct-Status-Type = Stop
Acct-Input-Octets = 145
Acct-Output-Octets = 119
Acct-Session-Time = 32

The indented lines are indented with a single tab. Time is the length of the session in seconds, and the first line is the date/time of the logout (session start is calculated by subtracting "Time" from that date).

If you can write such a conversion process, I'll be happy to include it in radiusContext for other users to use.

Sean


Sponsored Links

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.