radutmped 0.2

radutmped is a utility that can remove utmp entries from radutmp files of several RADIUS servers.

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
GPL v3 
USER RATING:
2.5/5 17
DEVELOPED BY:
Predrag Malicevic
HOMEPAGE:
www.develabs.com
CATEGORY:
ROOT \ System \ System Administration
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

#remove utmp entries #radutmp files #RADIUS servers #utmp #radutmp #RADIUS #server

Add your review!

SUBMIT