Hi again.
I had to make some testing just to be sure im not doing anything
really stupid. Here below you can see my two
test, one with User-Password and one with Cleartext-password, i can't
make neither to work.
Startup
debian:/usr/local/etc/raddb# /usr/local/sbin/radiusd -v
radiusd: FreeRADIUS Version 2.0.0-pre2, for host powerpc-unknown-
linux-gnu, built on Sep 15 2007 at 06:11:44
Copyright (C) 2000-2007 The FreeRADIUS server project.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
You may redistribute copies of FreeRADIUS under the terms of the
GNU General Public License.
For more information about these matters, see the file named COPYRIGHT.
------------------------------------------------------------------------
-------------
debian:/usr/local/etc/raddb# /usr/local/sbin/radiusd -X -f -d /usr/
local/etc/raddb
FreeRADIUS Version 2.0.0-pre2, for host powerpc-unknown-linux-gnu,
built on Sep 15 2007 at 06:11:44
Copyright (C) 2000-2007 The FreeRADIUS server project.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
You may redistribute copies of FreeRADIUS under the terms of the
GNU General Public License.
Config: including file: /usr/local/etc/raddb/radiusd.conf
Config: including file: /usr/local/etc/raddb/proxy.conf
Config: including file: /usr/local/etc/raddb/clients.conf
Config: including file: /usr/local/etc/raddb/snmp.conf
Config: including file: /usr/local/etc/raddb/eap.conf
Config: including file: /usr/local/etc/raddb/sql.conf
Config: including file: /usr/local/etc/raddb/sql/mysql/dialup.conf
Config: including file: /usr/local/etc/raddb/sql/mysql/counter.conf
Config: including files in directory: /usr/local/etc/raddb/sites-
enabled/
Config: including file: /usr/local/etc/raddb/sites-enabled/default
Starting - reading configuration files ...
read_config_files: reading dictionary
main {
prefix = "/usr/local"
localstatedir = "/usr/local/var"
logdir = "/usr/local/var/log/radius"
libdir = "/usr/local/lib"
radacctdir = "/usr/local/var/log/radius/radacct"
hostname_lookups = no
max_request_time = 30
cleanup_delay = 5
max_requests = 1024
allow_core_dumps = no
log_stripped_names = no
log_file = "/usr/local/var/log/radius/radius.log"
log_auth = no
log_auth_badpass = no
log_auth_goodpass = no
pidfile = "/usr/local/var/run/radiusd/radiusd.pid"
checkrad = "/usr/local/sbin/checkrad"
debug_level = 0
proxy_requests = yes
log {
syslog_facility = "daemon"
}
proxy server {
retry_delay = 5
retry_count = 3
default_fallback = no
dead_time = 120
wake_all_if_all_dead = no
}
security {
max_attributes = 200
reject_delay = 1
status_server = yes
}
}
home_server localhost {
ipaddr = 127.0.0.1 IP address [127.0.0.1]
port = 1812
type = "auth"
secret = "testing123"
response_window = 20
max_outstanding = 65536
zombie_period = 40
status_check = "status-server"
ping_check = "none"
ping_interval = 30
check_interval = 30
num_answers_to_alive = 3
num_pings_to_alive = 3
revive_interval = 120
status_check_timeout = 4
}
server_pool my_auth_failover {
type = fail-over
home_server = localhost
}
realm example.com {
auth_pool = my_auth_failover
}
realm LOCAL {
}
listen {
type = "auth"
ipaddr = *
port = 0
client 127.0.0.1 {
secret = "testing123"
shortname = "localhost"
nastype = "other"
}
client 10.0.5.200 {
secret = "xxx"
shortname = "ap4000"
nastype = "other"
}
}
listen {
type = "acct"
ipaddr = *
port = 0
}
radiusd: entering modules setup
radiusd: Library search path is /usr/local/lib
instantiate {
Module: Linked to module rlm_exec
Module: Instantiating exec
exec {
wait = yes
input_pairs = "request"
shell_escape = yes
}
rlm_exec: wait=yes but no output defined. Did you mean output=none?
Module: Linked to module rlm_expr
Module: Instantiating expr
Module: Linked to module rlm_expiration
Module: Instantiating expiration
expiration {
reply-message = "Password Has Expired "
}
Module: Linked to module rlm_logintime
Module: Instantiating logintime
logintime {
reply-message = "You are calling outside your allowed
timespan "
minimum-timeout = 60
}
}
server {
modules {
Module: Checking authenticate {...} for more modules to load
Module: Linked to module rlm_pap
Module: Instantiating pap
pap {
encryption_scheme = "auto"
auto_header = yes
}
Module: Linked to module rlm_chap
Module: Instantiating chap
Module: Linked to module rlm_mschap
Module: Instantiating mschap
mschap {
use_mppe = yes
require_encryption = no
require_strong = no
with_ntdomain_hack = no
}
Module: Linked to module rlm_unix
Module: Instantiating unix
unix {
radwtmp = "/usr/local/var/log/radius/radwtmp"
}
Module: Linked to module rlm_eap
Module: Instantiating eap
eap {
default_eap_type = "md5"
timer_expire = 60
ignore_unknown_eap_types = no
cisco_accounting_username_bug = no
}
eap: Linked to sub-module rlm_eap_md5
eap: Instantiating eap-md5
eap: Linked to sub-module rlm_eap_leap
eap: Instantiating eap-leap
eap: Linked to sub-module rlm_eap_gtc
eap: Instantiating eap-gtc
gtc {
challenge = "Password: "
auth_type = "PAP"
}
rlm_eap: Ignoring EAP-Type/tls because we do not have OpenSSL support.
rlm_eap: Ignoring EAP-Type/ttls because we do not have OpenSSL support.
rlm_eap: Ignoring EAP-Type/peap because we do not have OpenSSL support.
eap: Linked to sub-module rlm_eap_mschapv2
eap: Instantiating eap-mschapv2
mschapv2 {
with_ntdomain_hack = no
}
Module: Checking authorize {...} for more modules to load
Module: Linked to module rlm_preprocess
Module: Instantiating preprocess
preprocess {
huntgroups = "/usr/local/etc/raddb/huntgroups"
hints = "/usr/local/etc/raddb/hints"
with_ascend_hack = no
ascend_channels_per_line = 23
with_ntdomain_hack = no
with_specialix_jetstream_hack = no
with_cisco_vsa_hack = no
with_alvarion_vsa_hack = no
}
Module: Linked to module rlm_realm
Module: Instantiating suffix
realm suffix {
format = "suffix"
delimiter = "@"
ignore_default = no
ignore_null = no
}
Module: Linked to module rlm_files
Module: Instantiating files
files {
usersfile = "/usr/local/etc/raddb/users"
acctusersfile = "/usr/local/etc/raddb/acct_users"
preproxy_usersfile = "/usr/local/etc/raddb/preproxy_users"
compat = "no"
}
Module: Checking preacct {...} for more modules to load
Module: Linked to module rlm_acct_unique
Module: Instantiating acct_unique
acct_unique {
key = "User-Name, Acct-Session-Id, NAS-IP-Address, Client-IP-
Address, NAS-Port"
}
Module: Checking accounting {...} for more modules to load
Module: Linked to module rlm_detail
Module: Instantiating detail
detail {
detailfile = "/usr/local/var/log/radius/radacct/%{Client-IP-
Address}/detail-%Y%m%d"
header = "%t"
detailperm = 384
dirperm = 493
locking = no
log_packet_header = no
}
Module: Linked to module rlm_radutmp
Module: Instantiating radutmp
radutmp {
filename = "/usr/local/var/log/radius/radutmp"
username = "%{User-Name}"
case_sensitive = yes
check_with_nas = yes
perm = 384
callerid = yes
}
Module: Linked to module rlm_attr_filter
Module: Instantiating attr_filter.accounting_response
attr_filter attr_filter.accounting_response {
attrsfile = "/usr/local/etc/raddb/attrs.accounting_response"
key = "%{User-Name}"
}
Module: Checking session {...} for more modules to load
Module: Checking post-proxy {...} for more modules to load
Module: Checking post-auth {...} for more modules to load
Module: Instantiating attr_filter.access_reject
attr_filter attr_filter.access_reject {
attrsfile = "/usr/local/etc/raddb/attrs.access_reject"
key = "%{User-Name}"
}
}
}
Initializing the thread pool...
Listening on authentication address * port 1812
Listening on accounting address * port 1813
Listening on proxy address * port 1814
Ready to process requests.
Nothing to do. Sleeping until we see a request.
Test with User-password
rad_recv: Access-Request packet from host 10.0.5.200 port 6001,
id=27, length=151
User-Name = "00-1c-a4-6e-0e-fc"
User-Password = "00-1c-a4-6e-0e-fc"
NAS-IP-Address = 10.0.5.200
Called-Station-Id = "00-20-a6-6f-93-bf:My Wireless Network B"
Calling-Station-Id = "00-1c-a4-6e-0e-fc"
NAS-Port = 9
NAS-Port-Type = Wireless-802.11
+- entering group authorize
++[preprocess] returns ok
++[chap] returns noop
++[mschap] returns noop
++[unix] returns notfound
rlm_realm: No '@' in User-Name = "00-1c-a4-6e-0e-fc", looking up
realm NULL
rlm_realm: No such realm "NULL"
++[suffix] returns noop
rlm_eap: No EAP-Message, not doing EAP
++[eap] returns noop
WARNING: Found User-Password == "...".
WARNING: Are you sure you don't mean Cleartext-Password?
WARNING: See "man rlm_pap" for more information.
users: Matched entry 00-1c-a4-6e-0e-fc at line 78
++[files] returns ok
++[expiration] returns noop
++[logintime] returns noop
rlm_pap: WARNING! No "known good" password found for the user.
Authentication may fail because of this.
++[pap] returns noop
auth: No authenticate method (Auth-Type) configuration found for the
request: Rejecting the user
auth: Failed to validate the user.
Found Post-Auth-Type Reject
+- entering group REJECT
expand: %{User-Name} -> 00-1c-a4-6e-0e-fc
attr_filter: Matched entry DEFAULT at line 11
++[attr_filter.access_reject] returns updated
Delaying reject of request 0 for 1 seconds
Going to the next request
Sending delayed reject for request 0
Sending Access-Reject of id 27 to 10.0.5.200 port 6001
User creds
00-1c-a4-6e-0e-fc User-Password=="00-1c-a4-6e-0e-fc"
Calling-Station-Id=="00-1c-a4-6e-0e-fc",
NAS-IP-Address = 82.182.120.201,
Called-Station-Id = "00-20-a6-6f-93-bf:My Wireless Network B",
Service-Type = Framed-User,
Framed-Routing = Broadcast-Listen,a
Calling-Station-Id = "00-1c-a4-6e-0e-fc",
NAS-Port = 9,
NAS-Port-Type = Wireless-802.11
________________________________________________________
(exactly the same startup)
Test with Cleartext-Password
rad_recv: Access-Request packet from host 10.0.5.200 port 6001,
id=28, length=151
User-Name = "00-1c-a4-6e-0e-fc"
User-Password = "00-1c-a4-6e-0e-fc"
NAS-IP-Address = 10.0.5.200
Called-Station-Id = "00-20-a6-6f-93-bf:My Wireless Network B"
Calling-Station-Id = "00-1c-a4-6e-0e-fc"
NAS-Port = 9
NAS-Port-Type = Wireless-802.11
+- entering group authorize
++[preprocess] returns ok
++[chap] returns noop
++[mschap] returns noop
++[unix] returns notfound
rlm_realm: No '@' in User-Name = "00-1c-a4-6e-0e-fc", looking up
realm NULL
rlm_realm: No such realm "NULL"
++[suffix] returns noop
rlm_eap: No EAP-Message, not doing EAP
++[eap] returns noop
++[files] returns noop
++[expiration] returns noop
++[logintime] returns noop
rlm_pap: WARNING! No "known good" password found for the user.
Authentication may fail because of this.
++[pap] returns noop
auth: No authenticate method (Auth-Type) configuration found for the
request: Rejecting the user
auth: Failed to validate the user.
Found Post-Auth-Type Reject
+- entering group REJECT
expand: %{User-Name} -> 00-1c-a4-6e-0e-fc
attr_filter: Matched entry DEFAULT at line 11
++[attr_filter.access_reject] returns updated
Delaying reject of request 0 for 1 seconds
Going to the next request
Sending delayed reject for request 0
Sending Access-Reject of id 28 to 10.0.5.200 port 6001
User creds
00-1c-a4-6e-0e-fc Cleartext-Password=="00-1c-a4-6e-0e-fc"
Calling-Station-Id=="00-1c-a4-6e-0e-fc",
NAS-IP-Address = 82.182.120.201,
Called-Station-Id = "00-20-a6-6f-93-bf:My Wireless Network B",
Service-Type = Framed-User,
Framed-Routing = Broadcast-Listen,
Calling-Station-Id = "00-1c-a4-6e-0e-fc",
NAS-Port = 9,
NAS-Port-Type = Wireless-802.11
In both cases i get something strange that i cant find anywhere in
the configs:
Found Post-Auth-Type Reject
+- entering group REJECT
expand: %{User-Name} -> 00-1c-a4-6e-0e-fc
attr_filter: Matched entry DEFAULT at line 11
What does this mean?
Thx and good night.
p
On Sep 17, 2007, at 5:56 PM, freeradius-users-
[EMAIL PROTECTED] wrote:
OMG! Im so sorry Alan - that was too easy (and im a noob). If i ever
walk by your house you can get a free shot at me. : )
as a resident of nottingham , UK, my neighbours might get their shot
off first! ;-)
Many thx again A - you'r the man, as always.
I'm guessing it worked then? ;-)
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html