LDAP auth then file auth

Ancalagon ancalagon at bluebottle.com
Tue Dec 18 16:48:26 CET 2007


Hi,
I want to have the following authentication path.
First I check in the ldap to see if a user is defined. If yes, I check
his userPassword
If the password is good, allow access (send access-accept packet)
Else if the password is bad, reject access (send access-reject packet)

If the user is not defined in the ldap, I check in the users file for an
entry. During testing period, I add an DEFAULT section that allow access.

At the end of the users file, I had another DEFAULT section for a reject.

But, when I made a test with a valid user in the LDAP, even if the
password is valid the users file is also checked. How could I avoid that?

I try with Fall-Through yes or no but I was unable to get a valid status
(if ldap is ok, then stop, if not, go to default users entry)

Here my configuration and the logs:

Thanks for any help


users file :
------------

DEFAULT Auth-Type := CHAP
        Reply-Message := "Valid MAC-ADDRESS, access granted ->
%{Calling-station-Id} [ %{NAS-IP-ADDRESS}::%{NAS-PORT} ]",
        Exec-Program = /etc/raddb/scripts/radius_access_request.sh,
        Fall-Through = yes

DEFAULT Auth-Type := Accept
        Tunnel-Type = VLAN,
        Tunnel-Medium-Type = IEEE-802,
        Tunnel-Private-Group-ID = 1,
        Reply-Message := "Access Granted (temporary) ->
%{Calling-station-Id} [ %{NAS-IP-ADDRESS}::%{NAS-PORT} ]",
        Exec-Program = /etc/raddb/scripts/radius_access_request.sh,
        Fall-Through = no

DEFAULT Auth-Type := Reject
        Reply-Message := "Access denied -> %{Calling-station-Id} [
%{NAS-IP-ADDRESS}::%{NAS-PORT} ]",
        Fall-Through = no

radius.conf file :
------------------
        ldap {
                server = "ip.address"
                identity = "valid cn that work"
                password = *****
                basedn = "dc=comiteri,dc=be"
                basefilter = "(objectclass=radiusProfile)"
                filter = "(uid=%{Stripped-User-Name:-%{User-Name}})"
                #access_attr = "userPassword"
                password_attribute = userPassword
                dictionary_mapping = ${raddbdir}/ldap.attrmap
                compare_check_items = yes
                ldap_connections_number = 5
                edir_account_policy_check=no
                start_tls = no
                timeout = 4
                timelimit = 3
                net_timeout = 1
        }


# ######### #
# AUTHORIZE #
# ######### #
authorize {
        preprocess

        chap
        #mschap
        #suffix
        ldap
        eap
        #pap
        checkval-Calling-Station-Id
        checkval-Called-Station-Id
        checkval-NAS-Port
        checkval-NAS-IP-Address
        checkval-NAS-Identifier
        files
}

# ############ #
# AUTHENTICATE #
# ############ #
authenticate {
        #Auth-Type PAP {
        #       pap
        #}
        Auth-Type LDAP {
                ldap
        }
        Auth-Type CHAP {
                chap
        }
        #Auth-Type MS-CHAP {
        #       mschap
        #}
        #unix
        eap
}

ldap.attr file :
----------------
checkItem       $GENERIC$                       radiusCheckItem
replyItem       $GENERIC$                       radiusReplyItem

checkItem       Auth-Type                       radiusAuthType
checkItem       Simultaneous-Use                radiusSimultaneousUse
checkItem       LM-Password                     lmPassword
checkItem       NT-Password                     ntPassword
checkItem       SMB-Account-CTRL-TEXT           acctFlags
checkItem       Expiration                      radiusExpiration
checkItem       Calling-Station-Id              radiusCallingStationId
checkItem       User-Password                   userPassword

replyItem       Reply-Message                   description
replyItem       User-Password                   userPassword



LOG : (-X -A)
---------------------


Starting - reading configuration files ...
reread_config:  reading radiusd.conf
Config:   including file: /usr/local/freeradius-1.1.7/etc/raddb/proxy.conf
Config:   including file: /usr/local/freeradius-1.1.7/etc/raddb/clients.conf
Config:   including file: /usr/local/freeradius-1.1.7/etc/raddb/snmp.conf
Config:   including file: /usr/local/freeradius-1.1.7/etc/raddb/eap.conf
Config:   including file: /usr/local/freeradius-1.1.7/etc/raddb/sql.conf
 main: prefix = "/usr/local/freeradius-1.1.7"
 main: localstatedir = "/usr/local/freeradius-1.1.7/var"
 main: logdir = "/usr/local/freeradius-1.1.7/var/log/radius"
 main: libdir = "/usr/local/freeradius-1.1.7/lib"
 main: radacctdir = "/usr/local/freeradius-1.1.7/var/log/radius/radacct"
 main: hostname_lookups = no
 main: max_request_time = 30
 main: cleanup_delay = 5
 main: max_requests = 1024
 main: delete_blocked_requests = 0
 main: port = 0
 main: allow_core_dumps = no
 main: log_stripped_names = no
 main: log_file = "/usr/local/freeradius-1.1.7/var/log/radius/radius.log"
 main: log_auth = yes
 main: log_auth_badpass = yes
 main: log_auth_goodpass = no
 main: pidfile = "/usr/local/freeradius-1.1.7/var/run/radiusd/radiusd.pid"
 main: bind_address = ip.address IP address [ip.address]
 main: user = "radiusd"
 main: group = "radiusd"
 main: usercollide = no
 main: lower_user = "no"
 main: lower_pass = "no"
 main: nospace_user = "no"
 main: nospace_pass = "no"
 main: checkrad = "/usr/local/freeradius-1.1.7/sbin/checkrad"
 main: proxy_requests = yes
 proxy: retry_delay = 5
 proxy: retry_count = 3
 proxy: synchronous = no
 proxy: default_fallback = yes
 proxy: dead_time = 120
 proxy: post_proxy_authorize = no
 proxy: wake_all_if_all_dead = no
 security: max_attributes = 200
 security: reject_delay = 1
 security: status_server = no
 main: debug_level = 0
read_config_files:  reading dictionary
read_config_files:  reading naslist
Using deprecated naslist file.  Support for this will go away soon.
read_config_files:  reading clients
read_config_files:  reading realms
radiusd:  entering modules setup
Module: Library search path is /usr/local/freeradius-1.1.7/lib
Module: Loaded exec
 exec: wait = yes
 exec: program = "(null)"
 exec: input_pairs = "request"
 exec: output_pairs = "(null)"
 exec: packet_type = "(null)"
rlm_exec: Wait=yes but no output defined. Did you mean output=none?
Module: Instantiated exec (exec)
Module: Loaded expr
Module: Instantiated expr (expr)
Module: Loaded LDAP
 ldap: server = "ip.address"
 ldap: port = 389
 ldap: net_timeout = 1
 ldap: timeout = 4
 ldap: timelimit = 3
 ldap: identity = "cn=validcn,dc=be"
 ldap: tls_mode = no
 ldap: start_tls = no
 ldap: tls_cacertfile = "(null)"
 ldap: tls_cacertdir = "(null)"
 ldap: tls_certfile = "(null)"
 ldap: tls_keyfile = "(null)"
 ldap: tls_randfile = "(null)"
 ldap: tls_require_cert = "allow"
 ldap: password = "+jvvS2psV9kYN5ylTneJhcZoI+Q+uxjfPtEKYKVv3PeGn6MvBwRvMQ=="
 ldap: basedn = "dc=comiteri,dc=be"
 ldap: filter = "(uid=%{Stripped-User-Name:-%{User-Name}})"
 ldap: base_filter = "(objectclass=radiusprofile)"
 ldap: default_profile = "(null)"
 ldap: profile_attribute = "(null)"
 ldap: password_header = "(null)"
 ldap: password_attribute = "userPassword"
 ldap: access_attr = "(null)"
 ldap: groupname_attribute = "cn"
 ldap: groupmembership_filter =
"(|(&(objectClass=GroupOfNames)(member=%{Ldap-UserDn}))(&(objectClass=GroupOfUniqueNames)(uniquemember=%{Ldap-UserDn})))"
 ldap: groupmembership_attribute = "(null)"
 ldap: dictionary_mapping =
"/usr/local/freeradius-1.1.7/etc/raddb/ldap.attrmap"
 ldap: ldap_debug = 0
 ldap: ldap_connections_number = 5
 ldap: compare_check_items = yes
 ldap: access_attr_used_for_allow = yes
 ldap: do_xlat = yes
 ldap: edir_account_policy_check = no
 ldap: set_auth_type = yes
rlm_ldap: Registering ldap_groupcmp for Ldap-Group
rlm_ldap: Registering ldap_xlat with xlat_name ldap
rlm_ldap: reading ldap<->radius mappings from file
/usr/local/freeradius-1.1.7/etc/raddb/ldap.attrmap
rlm_ldap: LDAP radiusCheckItem mapped to RADIUS $GENERIC$
rlm_ldap: LDAP radiusReplyItem mapped to RADIUS $GENERIC$
rlm_ldap: LDAP radiusAuthType mapped to RADIUS Auth-Type
rlm_ldap: LDAP radiusSimultaneousUse mapped to RADIUS Simultaneous-Use
rlm_ldap: LDAP lmPassword mapped to RADIUS LM-Password
rlm_ldap: LDAP ntPassword mapped to RADIUS NT-Password
rlm_ldap: LDAP acctFlags mapped to RADIUS SMB-Account-CTRL-TEXT
rlm_ldap: LDAP radiusExpiration mapped to RADIUS Expiration
rlm_ldap: LDAP radiusCallingStationId mapped to RADIUS Calling-Station-Id
rlm_ldap: LDAP userPassword mapped to RADIUS User-Password
rlm_ldap: LDAP description mapped to RADIUS Reply-Message
rlm_ldap: LDAP userPassword mapped to RADIUS User-Password
rlm_ldap: LDAP radiusServiceType mapped to RADIUS Service-Type
rlm_ldap: LDAP radiusFramedIPAddress mapped to RADIUS Framed-IP-Address
rlm_ldap: LDAP radiusFramedIPNetmask mapped to RADIUS Framed-IP-Netmask
rlm_ldap: LDAP radiusFramedRoute mapped to RADIUS Framed-Route
rlm_ldap: LDAP radiusFramedRouting mapped to RADIUS Framed-Routing
rlm_ldap: LDAP radiusFilterId mapped to RADIUS Filter-Id
rlm_ldap: LDAP radiusFramedMTU mapped to RADIUS Framed-MTU
rlm_ldap: LDAP radiusFramedCompression mapped to RADIUS Framed-Compression
rlm_ldap: LDAP radiusLoginIPHost mapped to RADIUS Login-IP-Host
rlm_ldap: LDAP radiusLoginService mapped to RADIUS Login-Service
rlm_ldap: LDAP radiusCallbackNumber mapped to RADIUS Callback-Number
rlm_ldap: LDAP radiusCallbackId mapped to RADIUS Callback-Id
rlm_ldap: LDAP radiusFramedIPXNetwork mapped to RADIUS Framed-IPX-Network
rlm_ldap: LDAP radiusClass mapped to RADIUS Class
rlm_ldap: LDAP radiusSessionTimeout mapped to RADIUS Session-Timeout
rlm_ldap: LDAP radiusIdleTimeout mapped to RADIUS Idle-Timeout
rlm_ldap: LDAP radiusTerminationAction mapped to RADIUS Termination-Action
rlm_ldap: LDAP radiusLoginLATService mapped to RADIUS Login-LAT-Service
rlm_ldap: LDAP radiusLoginLATNode mapped to RADIUS Login-LAT-Node
rlm_ldap: LDAP radiusLoginLATGroup mapped to RADIUS Login-LAT-Group
rlm_ldap: LDAP radiusFramedAppleTalkLink mapped to RADIUS
Framed-AppleTalk-Link
rlm_ldap: LDAP radiusFramedAppleTalkNetwork mapped to RADIUS
Framed-AppleTalk-Network
rlm_ldap: LDAP radiusFramedAppleTalkZone mapped to RADIUS
Framed-AppleTalk-Zone
rlm_ldap: LDAP radiusPortLimit mapped to RADIUS Port-Limit
rlm_ldap: LDAP radiusLoginLATPort mapped to RADIUS Login-LAT-Port
conns: 0x5555557a49d0
Module: Instantiated ldap (ldap)
Module: Loaded CHAP
Module: Instantiated chap (chap)
Module: Loaded eap
 eap: default_eap_type = "tls"
 eap: timer_expire = 60
 eap: ignore_unknown_eap_types = no
 eap: cisco_accounting_username_bug = no
rlm_eap: Loaded and initialized type md5
rlm_eap: Loaded and initialized type leap
 gtc: challenge = "Password: "
 gtc: auth_type = "PAP"
rlm_eap: Loaded and initialized type gtc
 tls: rsa_key_exchange = no
 tls: dh_key_exchange = yes
 tls: rsa_key_length = 512
 tls: dh_key_length = 512
 tls: verify_depth = 0
 tls: CA_path = "/usr/local/freeradius-1.1.7/etc/raddb/cacerts/"
 tls: pem_file_type = yes
 tls: private_key_file =
"/usr/local/freeradius-1.1.7/etc/raddb/certs/BALIN.pem"
 tls: certificate_file =
"/usr/local/freeradius-1.1.7/etc/raddb/certs/BALIN.pem"
 tls: CA_file = "(null)"
 tls: private_key_password = "ggA7cOHR0rdjfg=="
 tls: dh_file = "/usr/local/freeradius-1.1.7/etc/raddb/certs/dh"
 tls: random_file = "/usr/local/freeradius-1.1.7/etc/raddb/certs/random"
 tls: fragment_size = 1024
 tls: include_length = yes
 tls: check_crl = yes
 tls: check_cert_cn = "%{User-Name}"
 tls: cipher_list = "(null)"
 tls: check_cert_issuer = "(null)"
rlm_eap_tls: Loading the certificate file as a chain
rlm_eap: Loaded and initialized type tls
 mschapv2: with_ntdomain_hack = no
rlm_eap: Loaded and initialized type mschapv2
Module: Instantiated eap (eap)
Module: Loaded preprocess
 preprocess: huntgroups = "/usr/local/freeradius-1.1.7/etc/raddb/huntgroups"
 preprocess: hints = "/usr/local/freeradius-1.1.7/etc/raddb/hints"
 preprocess: with_ascend_hack = no
 preprocess: ascend_channels_per_line = 23
 preprocess: with_ntdomain_hack = no
 preprocess: with_specialix_jetstream_hack = no
 preprocess: with_cisco_vsa_hack = no
 preprocess: with_alvarion_vsa_hack = no
Module: Instantiated preprocess (preprocess)
Module: Loaded checkval
 checkval: item-name = "Calling-Station-Id"
 checkval: check-name = "Calling-Station-Id"
 checkval: data-type = "string"
 checkval: notfound-reject = no
rlm_checkval: Registered name Calling-Station-Id for attribute 31
Module: Instantiated checkval (checkval-Calling-Station-Id)
 checkval: item-name = "Called-Station-Id"
 checkval: check-name = "Called-Station-Id"
 checkval: data-type = "string"
 checkval: notfound-reject = no
rlm_checkval: Registered name Called-Station-Id for attribute 30
Module: Instantiated checkval (checkval-Called-Station-Id)
 checkval: item-name = "NAS-Port"
 checkval: check-name = "NAS-Port"
 checkval: data-type = "integer"
 checkval: notfound-reject = no
rlm_checkval: Registered name NAS-Port for attribute 5
Module: Instantiated checkval (checkval-NAS-Port)
 checkval: item-name = "NAS-IP-Address"
 checkval: check-name = "NAS-IP-Address"
 checkval: data-type = "ipAddr"
 checkval: notfound-reject = no
rlm_checkval: Registered name NAS-IP-Address for attribute 4
Module: Instantiated checkval (checkval-NAS-IP-Address)
 checkval: item-name = "NAS-Identifier"
 checkval: check-name = "NAS-Identifier"
 checkval: data-type = "string"
 checkval: notfound-reject = no
rlm_checkval: Registered name NAS-Identifier for attribute 32
Module: Instantiated checkval (checkval-NAS-Identifier)
Module: Loaded files
 files: usersfile = "/usr/local/freeradius-1.1.7/etc/raddb/users"
 files: acctusersfile = "/usr/local/freeradius-1.1.7/etc/raddb/acct_users"
 files: preproxy_usersfile =
"/usr/local/freeradius-1.1.7/etc/raddb/preproxy_users"
 files: compat = "no"
Module: Instantiated files (files)
Module: Loaded Acct-Unique-Session-Id
 acct_unique: key = "User-Name, Acct-Session-Id, NAS-IP-Address,
Client-IP-Address, NAS-Port"
Module: Instantiated acct_unique (acct_unique)
Module: Loaded realm
 realm: format = "suffix"
 realm: delimiter = "@"
 realm: ignore_default = no
 realm: ignore_null = no
Module: Instantiated realm (suffix)
Module: Loaded detail
 detail: detailfile =
"/usr/local/freeradius-1.1.7/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d"
 detail: detailperm = 384
 detail: dirperm = 493
 detail: locking = no
Module: Instantiated detail (detail)
Module: Loaded System
 unix: cache = no
 unix: passwd = "(null)"
 unix: shadow = "(null)"
 unix: group = "(null)"
 unix: radwtmp = "/usr/local/freeradius-1.1.7/var/log/radius/radwtmp"
 unix: usegroup = no
 unix: cache_reload = 600
Module: Instantiated unix (unix)
Module: Loaded radutmp
 radutmp: filename = "/usr/local/freeradius-1.1.7/var/log/radius/radutmp"
 radutmp: username = "%{User-Name}"
 radutmp: case_sensitive = yes
 radutmp: check_with_nas = yes
 radutmp: perm = 384
 radutmp: callerid = yes
Module: Instantiated radutmp (radutmp)
Listening on authentication ip.address:1812
Listening on accounting ip.address:1813
Ready to process requests.
rad_recv: Access-Request packet from host ip.address.NAS:1024, id=170,
length=185
    Framed-MTU = 9178
    NAS-IP-Address = ip.address.NAS
    NAS-Identifier = "switch-8-00-1"
    User-Name = "mac-client-stripped"
    Service-Type = Administrative-User
    Framed-Protocol = PPP
    NAS-Port = 15
    NAS-Port-Type = Ethernet
    NAS-Port-Id = "15"
    Called-Station-Id = "Called-Station-Id-MAC"
    Calling-Station-Id = "Calling-Station-Id-MAC"
    Connect-Info = "CONNECT Ethernet 1000Mbps Full duplex"
    CHAP-Password = 0x11f16451432a20e7684564ce9cba7a82b0
  Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 0
  modcall[authorize]: module "preprocess" returns ok for request 0
  rlm_chap: Setting 'Auth-Type := CHAP'
  modcall[authorize]: module "chap" returns ok for request 0
rlm_ldap: - authorize
rlm_ldap: performing user authorization for mac-client-stripped
radius_xlat:  '(uid=mac-client-stripped)'
radius_xlat:  'dc=comiteri,dc=be'
rlm_ldap: ldap_get_conn: Checking Id: 0
rlm_ldap: ldap_get_conn: Got Id: 0
rlm_ldap: attempting LDAP reconnection
rlm_ldap: (re)connect to ip.address:389, authentication 0
rlm_ldap: bind as cn=validcn/***** to ip.address:389
rlm_ldap: waiting for bind result ...
rlm_ldap: Bind was successful
rlm_ldap: performing search in dc=comiteri,dc=be, with filter
(uid=mac-client-stripped)
rlm_ldap: object not found or got ambiguous search result
rlm_ldap: search failed
rlm_ldap: ldap_release_conn: Release Id: 0
  modcall[authorize]: module "ldap" returns notfound for request 0
  rlm_eap: No EAP-Message, not doing EAP
  modcall[authorize]: module "eap" returns noop for request 0
rlm_checkval: Item Name: Calling-Station-Id, Value: Calling-Station-Id-MAC
rlm_checkval: Could not find attribute named Calling-Station-Id in check
pairs
  modcall[authorize]: module "checkval-Calling-Station-Id" returns
notfound for request 0
rlm_checkval: Item Name: Called-Station-Id, Value: Called-Station-Id-MAC
rlm_checkval: Could not find attribute named Called-Station-Id in check
pairs
  modcall[authorize]: module "checkval-Called-Station-Id" returns
notfound for request 0
rlm_checkval: Item Name: NAS-Port, Value:
rlm_checkval: Could not find attribute named NAS-Port in check pairs
  modcall[authorize]: module "checkval-NAS-Port" returns notfound for
request 0
rlm_checkval: Item Name: NAS-IP-Address, Value: ip.address.NAS
rlm_checkval: Could not find attribute named NAS-IP-Address in check pairs
  modcall[authorize]: module "checkval-NAS-IP-Address" returns notfound
for request 0
rlm_checkval: Item Name: NAS-Identifier, Value: switch-8-00-1
rlm_checkval: Could not find attribute named NAS-Identifier in check pairs
  modcall[authorize]: module "checkval-NAS-Identifier" returns notfound
for request 0
    users: Matched entry DEFAULT at line 9
radius_xlat:  'Valid MAC-ADDRESS, access granted ->
Calling-Station-Id-MAC [ ip.address.NAS::15 ]'
    users: Matched entry DEFAULT at line 14
radius_xlat:  'Access Granted (temporary) -> Calling-Station-Id-MAC [
ip.address.NAS::15 ]'
  modcall[authorize]: module "files" returns ok for request 0
modcall: leaving group authorize (returns ok) for request 0
  rad_check_password:  Found Auth-Type Accept
  rad_check_password: Auth-Type = Accept, accepting the user
radius_xlat:  'Access Granted (temporary) -> Calling-Station-Id-MAC [
ip.address.NAS::15 ]'
Login OK: [mac-client-stripped] (from client switch-8-00-1 port 15 cli
Calling-Station-Id-MAC)
  Processing the post-auth section of radiusd.conf
modcall: entering group post-auth for request 0
radius_xlat: 
'/usr/local/freeradius-1.1.7/var/log/radius/radacct/ip.address.NAS/detail-20071218'
rlm_detail:
/usr/local/freeradius-1.1.7/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d
expands to
/usr/local/freeradius-1.1.7/var/log/radius/radacct/ip.address.NAS/detail-20071218
  modcall[post-auth]: module "detail" returns ok for request 0
modcall: leaving group post-auth (returns ok) for request 0
Sending Access-Accept of id 170 to ip.address.NAS port 1024
    Reply-Message := "Access Granted (temporary) ->
Calling-Station-Id-MAC [ ip.address.NAS::15 ]"
    Tunnel-Type:0 = VLAN
    Tunnel-Medium-Type:0 = IEEE-802
    Tunnel-Private-Group-Id:0 = "1"
Finished request 0
Going to the next request
--- Walking the entire request list ---
Waking up in 6 seconds...
rad_recv: Accounting-Request packet from host ip.address.NAS:1025,
id=171, length=118
    Acct-Session-Id = "002100002E6F"
    Acct-Status-Type = Start
    Acct-Authentic = RADIUS
    Acct-Delay-Time = 0
    NAS-Port = 15
    Calling-Station-Id = "Calling-Station-Id-MAC"
    Service-Type = Framed-User
    NAS-IP-Address = ip.address.NAS
    NAS-Identifier = "switch-8-00-1"
    User-Name = "mac-client-stripped"
  Processing the preacct section of radiusd.conf
modcall: entering group preacct for request 1
  modcall[preacct]: module "preprocess" returns noop for request 1
rlm_acct_unique: Hashing 'NAS-Port = 15,Client-IP-Address =
ip.address.NAS,NAS-IP-Address = ip.address.NAS,Acct-Session-Id =
"002100002E6F",User-Name = "mac-client-stripped"'
rlm_acct_unique: Acct-Unique-Session-ID = "d89c04f3e92e2152".
  modcall[preacct]: module "acct_unique" returns ok for request 1
    rlm_realm: No '@' in User-Name = "mac-client-stripped", looking up
realm NULL
    rlm_realm: No such realm "NULL"
  modcall[preacct]: module "suffix" returns noop for request 1
  modcall[preacct]: module "files" returns noop for request 1
modcall: leaving group preacct (returns ok) for request 1
  Processing the accounting section of radiusd.conf
modcall: entering group accounting for request 1
radius_xlat: 
'/usr/local/freeradius-1.1.7/var/log/radius/radacct/ip.address.NAS/detail-20071218'
rlm_detail:
/usr/local/freeradius-1.1.7/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d
expands to
/usr/local/freeradius-1.1.7/var/log/radius/radacct/ip.address.NAS/detail-20071218
  modcall[accounting]: module "detail" returns ok for request 1
  modcall[accounting]: module "unix" returns ok for request 1
radius_xlat:  '/usr/local/freeradius-1.1.7/var/log/radius/radutmp'
radius_xlat:  'mac-client-stripped'
  modcall[accounting]: module "radutmp" returns ok for request 1
modcall: leaving group accounting (returns ok) for request 1
Sending Accounting-Response of id 171 to ip.address.NAS port 1025
Finished request 1
Going to the next request
Waking up in 6 seconds...
--- Walking the entire request list ---
Cleaning up request 0 ID 170 with timestamp 4767e9aa
Cleaning up request 1 ID 171 with timestamp 4767e9aa
Nothing to do.  Sleeping until we see a request.
rad_recv: Accounting-Request packet from host ip.address.NAS:1025,
id=172, length=154
    Acct-Session-Id = "002100002E6F"
    Acct-Status-Type = Stop
    Acct-Authentic = RADIUS
    Acct-Delay-Time = 0
    NAS-Port = 15
    Calling-Station-Id = "Calling-Station-Id-MAC"
    Service-Type = Framed-User
    NAS-IP-Address = ip.address.NAS
    NAS-Identifier = "switch-8-00-1"
    User-Name = "mac-client-stripped"
    Acct-Terminate-Cause = 0
    Acct-Session-Time = 25
    Acct-Input-Octets = 1280
    Acct-Output-Octets = 2907
    Acct-Input-Packets = 20
    Acct-Output-Packets = 25
  Processing the preacct section of radiusd.conf
modcall: entering group preacct for request 2
  modcall[preacct]: module "preprocess" returns noop for request 2
rlm_acct_unique: Hashing 'NAS-Port = 15,Client-IP-Address =
ip.address.NAS,NAS-IP-Address = ip.address.NAS,Acct-Session-Id =
"002100002E6F",User-Name = "mac-client-stripped"'
rlm_acct_unique: Acct-Unique-Session-ID = "d89c04f3e92e2152".
  modcall[preacct]: module "acct_unique" returns ok for request 2
    rlm_realm: No '@' in User-Name = "mac-client-stripped", looking up
realm NULL
    rlm_realm: No such realm "NULL"
  modcall[preacct]: module "suffix" returns noop for request 2
  modcall[preacct]: module "files" returns noop for request 2
modcall: leaving group preacct (returns ok) for request 2
  Processing the accounting section of radiusd.conf
modcall: entering group accounting for request 2
radius_xlat: 
'/usr/local/freeradius-1.1.7/var/log/radius/radacct/ip.address.NAS/detail-20071218'
rlm_detail:
/usr/local/freeradius-1.1.7/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d
expands to
/usr/local/freeradius-1.1.7/var/log/radius/radacct/ip.address.NAS/detail-20071218
  modcall[accounting]: module "detail" returns ok for request 2
  modcall[accounting]: module "unix" returns ok for request 2
radius_xlat:  '/usr/local/freeradius-1.1.7/var/log/radius/radutmp'
radius_xlat:  'mac-client-stripped'
  modcall[accounting]: module "radutmp" returns ok for request 2
modcall: leaving group accounting (returns ok) for request 2
Sending Accounting-Response of id 172 to ip.address.NAS port 1025
Finished request 2
Going to the next request
--- Walking the entire request list ---
Waking up in 6 seconds...
--- Walking the entire request list ---
Cleaning up request 2 ID 172 with timestamp 4767e9c4
Nothing to do.  Sleeping until we see a request.
rad_recv: Access-Request packet from host ip.address.NAS:1024, id=173,
length=185
    Framed-MTU = 9178
    NAS-IP-Address = ip.address.NAS
    NAS-Identifier = "switch-8-00-1"
    User-Name = "mac-client-stripped"
    Service-Type = Administrative-User
    Framed-Protocol = PPP
    NAS-Port = 15
    NAS-Port-Type = Ethernet
    NAS-Port-Id = "15"
    Called-Station-Id = "Called-Station-Id-MAC"
    Calling-Station-Id = "Calling-Station-Id-MAC"
    Connect-Info = "CONNECT Ethernet 1000Mbps Full duplex"
    CHAP-Password = 0x12cbd98b2407d03051341a5bd92aaeaf4a
  Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 3
  modcall[authorize]: module "preprocess" returns ok for request 3
  rlm_chap: Setting 'Auth-Type := CHAP'
  modcall[authorize]: module "chap" returns ok for request 3
rlm_ldap: - authorize
rlm_ldap: performing user authorization for mac-client-stripped
radius_xlat:  '(uid=mac-client-stripped)'
radius_xlat:  'dc=comiteri,dc=be'
rlm_ldap: ldap_get_conn: Checking Id: 0
rlm_ldap: ldap_get_conn: Got Id: 0
rlm_ldap: performing search in dc=comiteri,dc=be, with filter
(uid=mac-client-stripped)
rlm_ldap: Added password mac-client-stripped in check items
rlm_ldap: No default NMAS login sequence
rlm_ldap: looking for check items in directory...
rlm_ldap: Adding userPassword as User-Password == "mac-client-stripped"
rlm_ldap: Adding radiusCallingStationId as Calling-Station-Id ==
"Calling-Station-Id-MAC"
rlm_ldap: extracted attribute Calling-Station-Id from generic item
Calling-Station-Id == "Calling-Station-Id-MAC"
rlm_ldap: extracted attribute Called-Station-Id from generic item
Called-Station-Id == "Called-Station-Id-MAC"
rlm_ldap: extracted attribute NAS-Port from generic item NAS-Port == "15"
rlm_ldap: extracted attribute NAS-IP-Address from generic item
NAS-IP-Address == "ip.address.NAS"
rlm_ldap: extracted attribute NAS-Identifier from generic item
NAS-Identifier == "switch-8-00-1"
rlm_ldap: looking for reply items in directory...
rlm_ldap: Adding userPassword as User-Password = "mac-client-stripped"
rlm_ldap: Adding description as Reply-Message = "Server"
rlm_ldap: extracted attribute Tunnel-Type from generic item tunnel-type
= "VLAN"
rlm_ldap: extracted attribute Tunnel-Medium-Type from generic item
tunnel-medium-type = "6"
rlm_ldap: extracted attribute Tunnel-Private-Group-Id from generic item
tunnel-private-group-ID = "4"
rlm_ldap: user mac-client-stripped authorized to use remote access
rlm_ldap: ldap_release_conn: Release Id: 0
  modcall[authorize]: module "ldap" returns ok for request 3
  rlm_eap: No EAP-Message, not doing EAP
  modcall[authorize]: module "eap" returns noop for request 3
rlm_checkval: Item Name: Calling-Station-Id, Value: Calling-Station-Id-MAC
rlm_checkval: Value Name: Calling-Station-Id, Value: Calling-Station-Id-MAC
  modcall[authorize]: module "checkval-Calling-Station-Id" returns ok
for request 3
rlm_checkval: Item Name: Called-Station-Id, Value: Called-Station-Id-MAC
rlm_checkval: Value Name: Called-Station-Id, Value: Called-Station-Id-MAC
  modcall[authorize]: module "checkval-Called-Station-Id" returns ok for
request 3
rlm_checkval: Item Name: NAS-Port, Value:
rlm_checkval: Value Name: NAS-Port, Value: 15
  modcall[authorize]: module "checkval-NAS-Port" returns ok for request 3
rlm_checkval: Item Name: NAS-IP-Address, Value: ip.address.NAS
rlm_checkval: Value Name: NAS-IP-Address, Value: ip.address.NAS
  modcall[authorize]: module "checkval-NAS-IP-Address" returns ok for
request 3
rlm_checkval: Item Name: NAS-Identifier, Value: switch-8-00-1
rlm_checkval: Value Name: NAS-Identifier, Value: switch-8-00-1
  modcall[authorize]: module "checkval-NAS-Identifier" returns ok for
request 3
    users: Matched entry DEFAULT at line 9
radius_xlat:  'Valid MAC-ADDRESS, access granted ->
Calling-Station-Id-MAC [ ip.address.NAS::15 ]'
    users: Matched entry DEFAULT at line 14
radius_xlat:  'Access Granted (temporary) -> Calling-Station-Id-MAC [
ip.address.NAS::15 ]'
  modcall[authorize]: module "files" returns ok for request 3
modcall: leaving group authorize (returns ok) for request 3
  rad_check_password:  Found Auth-Type Accept
  rad_check_password: Auth-Type = Accept, accepting the user
radius_xlat:  'Access Granted (temporary) -> Calling-Station-Id-MAC [
ip.address.NAS::15 ]'
Login OK: [mac-client-stripped] (from client switch-8-00-1 port 15 cli
Calling-Station-Id-MAC)
  Processing the post-auth section of radiusd.conf
modcall: entering group post-auth for request 3
radius_xlat: 
'/usr/local/freeradius-1.1.7/var/log/radius/radacct/ip.address.NAS/detail-20071218'
rlm_detail:
/usr/local/freeradius-1.1.7/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d
expands to
/usr/local/freeradius-1.1.7/var/log/radius/radacct/ip.address.NAS/detail-20071218
  modcall[post-auth]: module "detail" returns ok for request 3
modcall: leaving group post-auth (returns ok) for request 3
Sending Access-Accept of id 173 to ip.address.NAS port 1024
    User-Password = "mac-client-stripped"
    Reply-Message := "Access Granted (temporary) ->
Calling-Station-Id-MAC [ ip.address.NAS::15 ]"
    Tunnel-Type:0 = VLAN
    Tunnel-Medium-Type:0 = IEEE-802
    Tunnel-Private-Group-Id:0 = "4"
Finished request 3
Going to the next request
--- Walking the entire request list ---
Waking up in 6 seconds...
rad_recv: Accounting-Request packet from host ip.address.NAS:1025,
id=174, length=118
    Acct-Session-Id = "002100002E70"
    Acct-Status-Type = Start
    Acct-Authentic = RADIUS
    Acct-Delay-Time = 0
    NAS-Port = 15
    Calling-Station-Id = "Calling-Station-Id-MAC"
    Service-Type = Framed-User
    NAS-IP-Address = ip.address.NAS
    NAS-Identifier = "switch-8-00-1"
    User-Name = "mac-client-stripped"
  Processing the preacct section of radiusd.conf
modcall: entering group preacct for request 4
  modcall[preacct]: module "preprocess" returns noop for request 4
rlm_acct_unique: Hashing 'NAS-Port = 15,Client-IP-Address =
ip.address.NAS,NAS-IP-Address = ip.address.NAS,Acct-Session-Id =
"002100002E70",User-Name = "mac-client-stripped"'
rlm_acct_unique: Acct-Unique-Session-ID = "72d16234c91ae248".
  modcall[preacct]: module "acct_unique" returns ok for request 4
    rlm_realm: No '@' in User-Name = "mac-client-stripped", looking up
realm NULL
    rlm_realm: No such realm "NULL"
  modcall[preacct]: module "suffix" returns noop for request 4
  modcall[preacct]: module "files" returns noop for request 4
modcall: leaving group preacct (returns ok) for request 4
  Processing the accounting section of radiusd.conf
modcall: entering group accounting for request 4
radius_xlat: 
'/usr/local/freeradius-1.1.7/var/log/radius/radacct/ip.address.NAS/detail-20071218'
rlm_detail:
/usr/local/freeradius-1.1.7/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d
expands to
/usr/local/freeradius-1.1.7/var/log/radius/radacct/ip.address.NAS/detail-20071218
  modcall[accounting]: module "detail" returns ok for request 4
  modcall[accounting]: module "unix" returns ok for request 4
radius_xlat:  '/usr/local/freeradius-1.1.7/var/log/radius/radutmp'
radius_xlat:  'mac-client-stripped'
  modcall[accounting]: module "radutmp" returns ok for request 4
modcall: leaving group accounting (returns ok) for request 4
Sending Accounting-Response of id 174 to ip.address.NAS port 1025
Finished request 4
Going to the next request
Waking up in 6 seconds...
--- Walking the entire request list ---
Cleaning up request 3 ID 173 with timestamp 4767e9ca
Cleaning up request 4 ID 174 with timestamp 4767e9ca
Nothing to do.  Sleeping until we see a request.

----------------------------------------------------------------------
Free pop3 email with a spam filter.
http://www.bluebottle.com/tag/5




More information about the Freeradius-Users mailing list