PopTop

Jonathan Hutchins hutchins at tarcanfel.org
Tue Apr 20 22:18:46 CEST 2010


Old radiusd.conf (stripped):

prefix = /usr
exec_prefix = ${prefix}
sysconfdir = /etc
localstatedir = /var
sbindir = ${exec_prefix}/sbin
logdir = ${localstatedir}/log/radius
raddbdir = ${sysconfdir}/raddb
radacctdir = ${logdir}/radacct
confdir = ${raddbdir}
run_dir = ${localstatedir}/run/radiusd
log_file = ${logdir}/radius.log
libdir = ${exec_prefix}/lib
pidfile = ${run_dir}/radiusd.pid
max_request_time = 30
delete_blocked_requests = no
cleanup_delay = 5
max_requests = 1024
bind_address = *
port = 0
hostname_lookups = no
allow_core_dumps = no
regular_expressions	= yes
extended_expressions	= yes
log_stripped_names = no
log_auth = yes
log_auth_badpass = yes
log_auth_goodpass = yes
usercollide = no
lower_user = no
lower_pass = no
nospace_user = no
nospace_pass = no
checkrad = ${sbindir}/checkrad
security {
	max_attributes = 200
	reject_delay = 1
	status_server = no
}
proxy_requests  = yes
$INCLUDE  ${confdir}/proxy.conf
$INCLUDE  ${confdir}/clients.conf
$INCLUDE  ${confdir}/snmp.conf
thread pool {
	start_servers = 5
	max_servers = 32
	min_spare_servers = 3
	max_spare_servers = 10
	max_requests_per_server = 0
}
modules {
	pap {
		encryption_scheme = crypt
	}
	chap {
		authtype = CHAP
	}
	pam {
		pam_auth = radiusd
		Auth-Type
	}
	eap {
		md5 {
		}
	}
	mschap {
		passwd = /etc/samba/private/smbpasswd
		authtype = MS-CHAP
		
		use_mppe = yes
	}
	ldap {
		server = "ldap.your.domain"
		basedn = "o=My Org,c=UA"
		filter = "(uid=%{Stripped-User-Name:-%{User-Name}})"
		start_tls = no
		tls_mode = no
		access_attr = "dialupAccess"
		dictionary_mapping = ${raddbdir}/ldap.attrmap
		ldap_connections_number = 5
		timeout = 4
		timelimit = 3
		net_timeout = 1
	}
	passwd etc_smbpasswd {
		filename = /etc/samba/private/smbpasswd
		format = "*User-Name::LM-Password:NT-Password:SMB-Account-CTRL-TEXT::"
		authtype = MS-CHAP
		hashsize = 100
		ignorenislike = no
		allowmultiplekeys = no
	}
	realm suffix {
		format = suffix
		delimiter = "@"
	}
	realm realmslash {
		format = prefix
		delimiter = "/"
	}
	realm realmpercent {
		format = suffix
		delimiter = "%"
	}
	
	preprocess {
		huntgroups = ${confdir}/huntgroups
		hints = ${confdir}/hints
		with_ascend_hack = no
		ascend_channels_per_line = 23
		with_ntdomain_hack = yes
		with_specialix_jetstream_hack = no
		with_cisco_vsa_hack = no
	}
	files {
		usersfile = ${confdir}/users
		acctusersfile = ${confdir}/acct_users
		compat = no
	}
	detail {
		detailfile = ${radacctdir}/%{Client-IP-Address}/detail-%Y%m%d
		detailperm = 0600
	}
	acct_unique {
		key = "User-Name, Acct-Session-Id, NAS-IP-Address, Client-IP-Address, 
NAS-Port-Id"
	}
	radutmp {
		filename = ${logdir}/radutmp
		perm = 0600
		callerid = "yes"
	}
	radutmp sradutmp {
		filename = ${logdir}/sradutmp
		perm = 0644
		callerid = "no"
	}
	attr_filter {
		attrsfile = ${confdir}/attrs
	}
	counter {
		filename = ${raddbdir}/db.counter
		key = User-Name
		count-attribute = Acct-Session-Time
		reset = daily
		counter-name = Daily-Session-Time
		check-name = Max-Daily-Session
		allowed-servicetype = Framed-User
		cache-size = 5000
	}
	always fail {
		rcode = fail
	}
	always reject {
		rcode = reject
	}
	always ok {
		rcode = ok
		simulcount = 0
		mpp = no
	}
	expr {
	}
}
instantiate {
	expr
}
authorize {
	preprocess
	
	suffix
	mschap
	files
}
authenticate {
	authtype PAP {
		pap
		pam
	}
	authtype MS-CHAP {
		mschap
	}
	pap
	pam
}
preacct {
	preprocess
	suffix
	files
}
accounting {
	acct_unique
	detail
	radutmp
}
session {
	radutmp
}
post-auth {
}

Old users file:

DEFAULT	Auth-Type = System
	Fall-Through = Yes
DEFAULT	Service-Type == Framed-User, Huntgroup-Name == "mainoffice"
		Framed-IP-Address = 192.168.10.40+,
		Fall-Through = Yes
DEFAULT	Service-Type == Framed-User, Huntgroup-Name == "vpnoffice"
		Framed-IP-Address = 192.168.10.50+,
		Fall-Through = Yes
DEFAULT	Service-Type == Framed-User
	Framed-IP-Address = 255.255.255.254,
	Framed-MTU = 576,
	Service-Type = Framed-User,
	Fall-Through = Yes
DEFAULT	Framed-Protocol == PPP
	Framed-Protocol = PPP,
	Framed-Compression = Van-Jacobson-TCP-IP
DEFAULT	Hint == "CSLIP"
	Framed-Protocol = SLIP,
	Framed-Compression = Van-Jacobson-TCP-IP
DEFAULT	Hint == "SLIP"
	Framed-Protocol = SLIP

Those appear to be the only files that were changed.
Trying to figure out where radiusd is being started from, it's not in init.d.  
If I figure it out I'll post a log.



More information about the Freeradius-Users mailing list