radutmped iconradutmped 0.2

radutmped is a utility that can remove utmp entries from radutmp files of several RADIUS servers.
radutmped is a utility that can remove utmp entries from radutmp files of several RADIUS servers. The project directly manipulates the radutmp file and does not use radzap or any other programs.

FreeRADIUS, Cistron Radius Server and GNU Radius radutmp formats are supported. Three search modes are available, radutmped can match entries in radutmp by login (User-Name), nas_port (NAS-Port) or session_id (Acct-Session-Id).

COMPILING:

- Edit Makefile to change CC, CFLAGS or LDFLAGS if necessary.

- Execute 'make':
# make

- Only one RADIUS server can be supported in the radutmped binary, you have to
choose which.
By default, FreeRADIUS support will be compiled in, to change, pass along an
environment variable RADUTMP_TYPE when issuing 'make':

For Cistron support use RT_CISTRON as the variable value:
# RADUTMP_TYPE=RT_CISTRON make

For GNU Radius support use RT_GNURADIUS as the variable value:
# RADUTMP_TYPE=RT_GNURADIUS make

- Move the compiled binary 'radutmped' somewhere:
# mv radutmped /usr/local/sbin

USAGE:

# radutmped L|P|S

EXAMPLES:

- Find out session details for user john (example with FreeRADIUS):
# radwho -r -i | grep john
john,0011AA22,PPP,S123456,Thu 08:21,192.168.1.254,192.168.10.123

The output line contains the following data:
User-Name: john
Acct-Session-Id: 0011AA22
Framed-Protocol: PPP
NAS-Port: 123456
NAS-IP-Address: 192.168.1.254
Framed-IP-Address: 192.168.10.123

Mind that the 'S' character in the nas_port field has to be left out
when using radutmped.

- Remove a radutmp entry for session_id 0011AA22:
# radutmped /var/log/radius/radutmp S0011AA22

- Remove a radutmp entr-y/-ies for nas_port 123456
# radutmped /var/log/radius/radutmp P123456

- Remove a radutmp entr-y/-ies for login john:
# radutmped /var/log/radius/radutmp Ljohn

last updated on:
August 8th, 2007, 19:58 GMT
price:
FREE!
developed by:
Predrag Malicevic
license type:
GPL v3 
category:
ROOT \ System \ System Administration

FREE!

In a hurry? Add it to your Download Basket!

user rating 17

UNRATED
2.5/5
 

0/5

Add your review!

SUBMIT