Ascend Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (ASCEND) Cistron Radius and MAX4000?



On Fri, 1 May 1998, Shiloh Costa wrote:

> Anyone here use Cistron Radius and a Computone Powerrack and/or a Max4000?
> If so, how do you stop simultaneous use?

	I use Cistron Radiusd 1.5.4.2, and can check simultaneous logins,
but with a little trick:

	I made up a little script to check if the user is already logged
in. Maybe you would like to see it and change the code to fit your needs,
so here it comes:

----------< checkrad.tcl >-------------
#!/usr/bin/tclsh

set userlist [open "|finger @<hostname> | grep -v <hostname> | grep -v Session | grep -v Chan | grep -v N/A | grep $argv" r]

if { [gets $userlist useron] >= 0} {
	exit 1
} else {
	exit 0
}

close $userlist
________________________________________

	But it only works if you put this line in the end (or middle) of
the user profile: "Exec-Program-Wait = "/sbin/checkrad.tcl %u".

	That's it.

/* ================================================ */
/*       Mauricio Teixeira - Technical Manager      */
/* Amazonline Internet Provider  -  Belem/PA/Brazil */
/* mauricio@amazonline.com.br || badman@brasnet.org */
/* ================================================ */

++ Ascend Users Mailing List ++
To unsubscribe:	send unsubscribe to ascend-users-request@bungi.com
To get FAQ'd:	<http://www.nealis.net/ascend/faq>


References: