{
    use esmith::util;
    $pw = esmith::util::LdapPassword;
    $pw =~ s/^(.{31}).*$/$1/;
    "";
}
client localhost \{
	ipaddr = 127.0.0.1
{	#
	#  The shared secret use to "encrypt" and "sign" packets between
	#  the NAS and FreeRADIUS.  You MUST change this secret from the
	#  default, otherwise it's not a secret any more!
	#
	#  The secret can be any string, up to 32 characters in length.
	#

}	secret = { $pw }
{
	#
	#  The short name is used as an alias for the fully qualified
	#  domain name, or the IP address.
	#
}	shortname = localhost
{
	#
	# the following three fields are optional, but may be used by
	# checkrad.pl for simultaneous use checks
	#

	#
	# The nastype tells 'checkrad.pl' which NAS-specific method to
	#  use to query the NAS for simultaneous use.
	#
	#  Permitted NAS types are:
	#
	#	cisco
	#	computone
	#	livingston
	#	max40xx
	#	multitech
	#	netserver
	#	pathras
	#	patton
	#	portslave
	#	tc
	#	usrhiper
	#	other		# for all other types

	#
}	nas_type = other
{
	#
	#  The following two configurations are for future use.
	#  The 'naspasswd' file is currently used to store the NAS
	#  login name and password, which is used by checkrad.pl
	#  when querying the NAS for simultaneous use.
	#
#	login = !root
#	password = someadminpas
}\}
