Freeradius + LDAP password trouble

Alan DeKok aland at deployingradius.com
Mon Jul 19 11:53:54 CEST 2010


Lionne Stangier wrote:
> Freeradius can't read the LDAP user passwords. Our LDAP passwords encoded in sha.

  The debug log shows you are using PEAP.  It is *impossible* to use
PEAP with SHA passwords.


> I access with a Windows XP Client. Without LDAP it's work without problem.
> 
> 2nd question. Can I access with Windows XP without using certificates?
> 
> Thank you
> 
>  
> radiusd -X --------------------------------------------------------------------------------------------------------------------
> 
>  
> 
> FreeRADIUS Version 2.1.9, for host i686-pc-linux-gnu, built on Jul 14 2010 at 15:26:59 Copyright (C) 1999-2009 The FreeRADIUS server project and contributors. 
> 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 v2. 
> Starting - reading configuration files ...
> including configuration file /usr/local/etc/raddb/radiusd.conf including configuration file /usr/local/etc/raddb/proxy.conf including configuration file /usr/local/etc/raddb/clients.conf including files in directory /usr/local/etc/raddb/modules/ including configuration file /usr/local/etc/raddb/modules/always
> including configuration file /usr/local/etc/raddb/modules/detail
> including configuration file /usr/local/etc/raddb/modules/ippool
> including configuration file /usr/local/etc/raddb/modules/pam including configuration file /usr/local/etc/raddb/modules/expiration
> including configuration file /usr/local/etc/raddb/modules/ldap including configuration file /usr/local/etc/raddb/modules/smbpasswd
> including configuration file /usr/local/etc/raddb/modules/digest
> including configuration file /usr/local/etc/raddb/modules/mschap
> including configuration file /usr/local/etc/raddb/modules/inner-eap
> including configuration file /usr/local/etc/raddb/modules/passwd
> including configuration file /usr/local/etc/raddb/modules/checkval
> including configuration file /usr/local/etc/raddb/modules/otp including configuration file /usr/local/etc/raddb/modules/chap including configuration file /usr/local/etc/raddb/modules/files
> including configuration file /usr/local/etc/raddb/modules/unix including configuration file /usr/local/etc/raddb/modules/mac2ip
> including configuration file /usr/local/etc/raddb/modules/smsotp
> including configuration file /usr/local/etc/raddb/modules/pap including configuration file /usr/local/etc/raddb/modules/detail.example.com
> including configuration file /usr/local/etc/raddb/modules/logintime
> including configuration file /usr/local/etc/raddb/modules/preprocess
> including configuration file /usr/local/etc/raddb/modules/sql_log
> including configuration file /usr/local/etc/raddb/modules/expr including configuration file /usr/local/etc/raddb/modules/echo including configuration file /usr/local/etc/raddb/modules/linelog
> including configuration file /usr/local/etc/raddb/modules/sqlcounter_expire_on_login
> including configuration file /usr/local/etc/raddb/modules/ntlm_auth
> including configuration file /usr/local/etc/raddb/modules/wimax
> including configuration file /usr/local/etc/raddb/modules/attr_rewrite
> including configuration file /usr/local/etc/raddb/modules/counter
> including configuration file /usr/local/etc/raddb/modules/radutmp
> including configuration file /usr/local/etc/raddb/modules/policy
> including configuration file /usr/local/etc/raddb/modules/perl including configuration file /usr/local/etc/raddb/modules/etc_group
> including configuration file /usr/local/etc/raddb/modules/exec including configuration file /usr/local/etc/raddb/modules/mac2vlan
> including configuration file /usr/local/etc/raddb/modules/acct_unique
> including configuration file /usr/local/etc/raddb/modules/krb5 including configuration file /usr/local/etc/raddb/modules/attr_filter
> including configuration file /usr/local/etc/raddb/modules/sradutmp
> including configuration file /usr/local/etc/raddb/modules/cui including configuration file /usr/local/etc/raddb/modules/realm
> including configuration file /usr/local/etc/raddb/modules/detail.log
> including configuration file /usr/local/etc/raddb/eap.conf including configuration file /usr/local/etc/raddb/policy.conf including files in directory /usr/local/etc/raddb/sites-enabled/
> including configuration file /usr/local/etc/raddb/sites-enabled/control-socket
> including configuration file /usr/local/etc/raddb/sites-enabled/inner-tunnel
> including configuration file /usr/local/etc/raddb/sites-enabled/default
> main {
>     allow_core_dumps = no
> }
> including dictionary file /usr/local/etc/raddb/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
>     pidfile = "/usr/local/var/run/radiusd/radiusd.pid"
>     checkrad = "/usr/local/sbin/checkrad"
>     debug_level = 0
>     proxy_requests = yes
>  log {
>     stripped_names = no
>     auth = no
>     auth_badpass = no
>     auth_goodpass = no
>  }
>  security {
>     max_attributes = 200
>     reject_delay = 1
>     status_server = yes
>  }
> }
> radiusd: #### Loading Realms and Home Servers ####  proxy server {
>     retry_delay = 5
>     retry_count = 3
>     default_fallback = no
>     dead_time = 120
>     wake_all_if_all_dead = no
>  }
>  home_server localhost {
>     ipaddr = 127.0.0.1
>     port = 1812
>     type = "auth"
>     secret = "testing123"
>     response_window = 20
>     max_outstanding = 65536
>     require_message_authenticator = no
>     zombie_period = 40
>     status_check = "status-server"
>     ping_interval = 30
>     check_interval = 30
>     num_answers_to_alive = 3
>     num_pings_to_alive = 3
>     revive_interval = 120
>     status_check_timeout = 4
>     irt = 2
>     mrt = 16
>     mrc = 5
>     mrd = 30
>  }
>  home_server_pool my_auth_failover {
>     type = fail-over
>     home_server = localhost
>  }
>  realm example.com {
>     auth_pool = my_auth_failover
>  }
>  realm LOCAL {
>  }
> radiusd: #### Loading Clients ####
>  client localhost {
>     ipaddr = 127.0.0.1
>     require_message_authenticator = no
>     secret = "radiustest"
>     nastype = "other"
>  }
>  client 192.168.125.1 {
>     require_message_authenticator = no
>     secret = "radiustest"
>     shortname = "localhost"
>  }
>  client 192.168.125.0/24 {
>     require_message_authenticator = no
>     secret = "radiustest"
>     shortname = "private-network-1"
>  }
> radiusd: #### Instantiating modules ####  instantiate {
>  Module: Linked to module rlm_exec
>  Module: Instantiating exec
>   exec {
>     wait = no
>     input_pairs = "request"
>     shell_escape = yes
>   }
>  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
>   }
>  }
> radiusd: #### Loading Virtual Servers #### server inner-tunnel {  modules {
>  Module: Checking authenticate {...} for more modules to load
>  Module: Linked to module rlm_pap
>  Module: Instantiating pap
>   pap {
>     encryption_scheme = "auto"
>     auto_header = no
>   }
>  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 = "peap"
>     timer_expire = 60
>     ignore_unknown_eap_types = no
>     cisco_accounting_username_bug = no
>     max_sessions = 4096
>   }
>  Module: Linked to sub-module rlm_eap_md5
>  Module: Instantiating eap-md5
>  Module: Linked to sub-module rlm_eap_leap
>  Module: Instantiating eap-leap
>  Module: Linked to sub-module rlm_eap_gtc
>  Module: Instantiating eap-gtc
>    gtc {
>     challenge = "Password: "
>     auth_type = "PAP"
>    }
>  Module: Linked to sub-module rlm_eap_tls
>  Module: Instantiating eap-tls
>    tls {
>     rsa_key_exchange = no
>     dh_key_exchange = yes
>     rsa_key_length = 512
>     dh_key_length = 512
>     verify_depth = 0
>     pem_file_type = yes
>     private_key_file = "/usr/local/etc/raddb/certs/server.pem"
>     certificate_file = "/usr/local/etc/raddb/certs/server.pem"
>     CA_file = "/usr/local/etc/raddb/certs/ca.pem"
>     private_key_password = "radiustest"
>     dh_file = "/usr/local/etc/raddb/certs/dh"
>     random_file = "/usr/local/etc/raddb/certs/random"
>     fragment_size = 1024
>     include_length = yes
>     check_crl = no
>     cipher_list = "DEFAULT"
>     make_cert_command = "/usr/local/etc/raddb/certs/bootstrap"
>     cache {
>     enable = no
>     lifetime = 24
>     max_entries = 255
>     }
>    }
>  Module: Linked to sub-module rlm_eap_ttls
>  Module: Instantiating eap-ttls
>    ttls {
>     default_eap_type = "md5"
>     copy_request_to_tunnel = no
>     use_tunneled_reply = no
>     virtual_server = "inner-tunnel"
>     include_length = yes
>    }
>  Module: Linked to sub-module rlm_eap_peap
>  Module: Instantiating eap-peap
>    peap {
>     default_eap_type = "mschapv2"
>     copy_request_to_tunnel = no
>     use_tunneled_reply = no
>     proxy_tunneled_request_as_eap = yes
>     virtual_server = "inner-tunnel"
>    }
>  Module: Linked to sub-module rlm_eap_mschapv2
>  Module: Instantiating eap-mschapv2
>    mschapv2 {
>     with_ntdomain_hack = no
>    }
>  Module: Checking authorize {...} for more modules to load
>  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 session {...} for more modules to load
>  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: Checking post-proxy {...} for more modules to load
>  Module: Checking post-auth {...} for more modules to load
>  Module: Linked to module rlm_attr_filter
>  Module: Instantiating attr_filter.access_reject
>   attr_filter attr_filter.access_reject {
>     attrsfile = "/usr/local/etc/raddb/attrs.access_reject"
>     key = "%{User-Name}"
>   }
>  } # modules
> } # server
> server {
>  modules {
>  Module: Checking authenticate {...} for more modules to load
>  Module: Checking authorize {...} for more modules to load
>  Module: Linked to module rlm_ldap
>  Module: Instantiating ldap
>   ldap {
>     server = "ldap.allesklar.org"
>     port = 389
>     password = ""
>     identity = ""
>     net_timeout = 1
>     timeout = 4
>     timelimit = 3
>     tls_mode = no
>     start_tls = no
>     tls_require_cert = "allow"
>    tls {
>     start_tls = no
>     require_cert = "allow"
>    }
>     basedn = "dc=allesklar,dc=com"
>     filter = "(uid=%{Stripped-User-Name:-%{User-Name}})"
>     base_filter = "(objectclass=radiusprofile)"
>     auto_header = no
>     access_attr_used_for_allow = yes
>     groupname_attribute = "cn"
>     groupmembership_filter = "(|(&(objectClass=GroupOfNames)(member=%{Ldap-UserDn}))(&(objectClass=GroupOfUniqueNames)(uniquemember=%{Ldap-UserDn})))"
>     dictionary_mapping = "/usr/local/etc/raddb/ldap.attrmap"
>     ldap_debug = 0
>     ldap_connections_number = 5
>     compare_check_items = no
>     do_xlat = yes
>     set_auth_type = yes
>   }
> rlm_ldap: Registering ldap_groupcmp for Ldap-Group
> rlm_ldap: Registering ldap_xlat with xlat_name ldap
> rlm_ldap: Over-riding set_auth_type, as there is no module ldap listed in the "authenticate" section.
> rlm_ldap: reading ldap<->radius mappings from file /usr/local/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 radiusCalledStationId mapped to RADIUS Called-Station-Id
> rlm_ldap: LDAP radiusCallingStationId mapped to RADIUS Calling-Station-Id
> rlm_ldap: LDAP lmPassword mapped to RADIUS LM-Password
> rlm_ldap: LDAP ntPassword mapped to RADIUS NT-Password
> rlm_ldap: LDAP sambaLmPassword mapped to RADIUS LM-Password
> rlm_ldap: LDAP sambaNtPassword mapped to RADIUS NT-Password
> rlm_ldap: LDAP dBCSPwd mapped to RADIUS LM-Password
> rlm_ldap: LDAP acctFlags mapped to RADIUS SMB-Account-CTRL-TEXT
> rlm_ldap: LDAP radiusExpiration mapped to RADIUS Expiration
> rlm_ldap: LDAP radiusNASIpAddress mapped to RADIUS NAS-IP-Address
> rlm_ldap: LDAP radiusServiceType mapped to RADIUS Service-Type
> rlm_ldap: LDAP radiusFramedProtocol mapped to RADIUS Framed-Protocol
> 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 radiusLoginTCPPort mapped to RADIUS Login-TCP-Port
> 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
> rlm_ldap: LDAP radiusReplyMessage mapped to RADIUS Reply-Message
> rlm_ldap: LDAP radiusTunnelType mapped to RADIUS Tunnel-Type
> rlm_ldap: LDAP radiusTunnelMediumType mapped to RADIUS Tunnel-Medium-Type
> rlm_ldap: LDAP radiusTunnelPrivateGroupId mapped to RADIUS Tunnel-Private-Group-Id
> conns: 0x9d6a3a8
>  Module: Checking preacct {...} 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_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: 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  } # modules } # server
> radiusd: #### Opening IP addresses and Ports #### listen {
>     type = "auth"
>     ipaddr = *
>     port = 0
> }
> listen {
>     type = "acct"
>     ipaddr = *
>     port = 0
> }
> listen {
>     type = "control"
>  listen {
>     socket = "/usr/local/var/run/radiusd/radiusd.sock"
>  }
> }
> Listening on authentication address * port 1812 Listening on accounting address * port 1813 Listening on command file /usr/local/var/run/radiusd/radiusd.sock
> Listening on proxy address * port 1814
> Ready to process requests.
> 
>  
> 
> rad_recv: Access-Request packet from host 192.168.125.1 port 1767, id=0, length=147
>     User-Name = "lionne.stangier"
>     NAS-IP-Address = 192.168.125.1
>     Called-Station-Id = "0016b61397d9"
>     Calling-Station-Id = "00166f09d8c6"
>     NAS-Identifier = "0016b61397d9"
>     NAS-Port = 23
>     Framed-MTU = 1400
>     State = 0x3c1eda0a3d1cc3c7968b7ab5d979eca6
>     NAS-Port-Type = Wireless-802.11
>     EAP-Message = 0x020200061900
>     Message-Authenticator = 0x18de3745b1b4de32c00e4338a40510e3
> +- entering group authorize {...}
> ++[chap] returns noop
> ++[mschap] returns noop
> [suffix] No '@' in User-Name = "lionne.stangier", looking up realm NULL [suffix] No such realm "NULL"
> ++[suffix] returns noop
> [ldap] performing user authorization for lionne.stangier [ldap] WARNING: Deprecated conditional expansion ":-".  See "man unlang" for details
> [ldap]     ... expanding second conditional
> [ldap]     expand: %{User-Name} -> lionne.stangier
> [ldap]     expand: (uid=%{Stripped-User-Name:-%{User-Name}}) -> (uid=lionne.stangier)
> [ldap]     expand: dc=allesklar,dc=com -> dc=allesklar,dc=com
>   [ldap] ldap_get_conn: Checking Id: 0
>   [ldap] ldap_get_conn: Got Id: 0
>   [ldap] performing search in dc=allesklar,dc=com, with filter (uid=lionne.stangier) [ldap] looking for check items in directory...
> [ldap] looking for reply items in directory...
> WARNING: No "known good" password was found in LDAP.  Are you sure that the user is configured correctly?
> [ldap] user lionne.stangier authorized to use remote access
>   [ldap] ldap_release_conn: Release Id: 0
> ++[ldap] returns ok
> [eap] EAP packet type response id 2 length 6 [eap] Continuing tunnel setup.
> ++[eap] returns ok
> Found Auth-Type = EAP
> +- entering group authenticate {...}
> [eap] Request found, released from the list [eap] EAP/peap [eap] processing type peap [peap] processing EAP-TLS [peap] Received TLS ACK [peap] ACK handshake fragment handler [peap] eaptls_verify returned 1 [peap] eaptls_process returned 13 [peap] EAPTLS_HANDLED
> ++[eap] returns handled
> Sending Access-Challenge of id 0 to 192.168.125.1 port 1767
>     EAP-Message = 0x0103029d19003017060355040a1310416c6c65736b6c61722e636f6d204147310f300d060355040b13065241444955533110300e06035504031307414b2d54657374312c302a06092a864886f70d010901161d6c696f6e6e652e7374616e67696572406d65696e6573746164742e646530819f300d06092a864886f70d010101050003818d0030818902818100c67e05581c368f02d7410c4c4573af5d89e4a97b499c1e7f2710d2c6c2bef639b063c17c182401c953fb2a3e1e3327f7f1f946ea6ae1c44e94ab5bfc0d7fa8237112216d601f3dc2ffc4f0a4da532b299e0b68ba80eff1e4e202aec8603b2efc253c7703425311f9bfae3d941b83bf38
>     EAP-Message = 0x15496b7b9de334f6eeee2c55043847b30203010001a381ec3081e9301d0603551d0e0416041424cc0f42422701b04dcc3d4169204f2100d9f7a83081b90603551d230481b13081ae801424cc0f42422701b04dcc3d4169204f2100d9f7a8a18192a4818f30818c310b30090603550406130244453111300f06035504081308536965676275726731193017060355040a1310416c6c65736b6c61722e636f6d204147310f300d060355040b13065241444955533110300e06035504031307414b2d54657374312c302a06092a864886f70d010901161d6c696f6e6e652e7374616e67696572406d65696e6573746164742e6465820100300c0603551d13
>     EAP-Message = 0x040530030101ff300d06092a864886f70d01010505000381810023ebff84b6694ebf8660f02eb1fc4eb1b6b2fcedc9645e720bf02e800a4f479f8e7e118ccbf2d4d1b21768dca364ae9c2aad68b862b0cc8dae9d7e5c648524ef83dfacb8f8e9efb2e2a14475c25dabb944c44bd848aa5256b3a26a0e8db6437c148ce19e65d8a4df0df681f857cb423e7a163e44c0835b5fe940e4138d17106616030100040e000000
>     Message-Authenticator = 0x00000000000000000000000000000000
>     State = 0x3c1eda0a3e1dc3c7968b7ab5d979eca6
> Finished request 2.
> Going to the next request
> Waking up in 4.9 seconds.
> rad_recv: Access-Request packet from host 192.168.125.1 port 1769, id=0, length=333
>     User-Name = "lionne.stangier"
>     NAS-IP-Address = 192.168.125.1
>     Called-Station-Id = "0016b61397d9"
>     Calling-Station-Id = "00166f09d8c6"
>     NAS-Identifier = "0016b61397d9"
>     NAS-Port = 23
>     Framed-MTU = 1400
>     State = 0x3c1eda0a3e1dc3c7968b7ab5d979eca6
>     NAS-Port-Type = Wireless-802.11
>     EAP-Message = 0x020300c01980000000b61603010086100000820080b655ae82e3a45e45ebe3ed0323dcc53540ce99099adaa40c20adb5eacb363f0ba1d15f7652a1920587d03f705ec40b352287b71a66b8697fe274771a9de9b00bbef194f40f11aed8213704271256260d3d136eec4f2f1beb3f94ed248b5ee880fc634612ad54c196227ef7d845662386107d55b4df561c95483da24e52396e2114030100010116030100203b991d5f708f753e528d2d817f798f76e85e5edaae9f1d7bda67fe6873635b61
>     Message-Authenticator = 0x4bfc85d055bb17969e15fb1182b50553
> +- entering group authorize {...}
> ++[chap] returns noop
> ++[mschap] returns noop
> [suffix] No '@' in User-Name = "lionne.stangier", looking up realm NULL [suffix] No such realm "NULL"
> ++[suffix] returns noop
> [ldap] performing user authorization for lionne.stangier [ldap] WARNING: Deprecated conditional expansion ":-".  See "man unlang" for details
> [ldap]     ... expanding second conditional
> [ldap]     expand: %{User-Name} -> lionne.stangier
> [ldap]     expand: (uid=%{Stripped-User-Name:-%{User-Name}}) -> (uid=lionne.stangier)
> [ldap]     expand: dc=allesklar,dc=com -> dc=allesklar,dc=com
>   [ldap] ldap_get_conn: Checking Id: 0
>   [ldap] ldap_get_conn: Got Id: 0
>   [ldap] performing search in dc=allesklar,dc=com, with filter (uid=lionne.stangier) [ldap] looking for check items in directory...
> [ldap] looking for reply items in directory...
> WARNING: No "known good" password was found in LDAP.  Are you sure that the user is configured correctly?
> [ldap] user lionne.stangier authorized to use remote access
>   [ldap] ldap_release_conn: Release Id: 0
> ++[ldap] returns ok
> [eap] EAP packet type response id 3 length 192 [eap] Continuing tunnel setup.
> ++[eap] returns ok
> Found Auth-Type = EAP
> +- entering group authenticate {...}
> [eap] Request found, released from the list [eap] EAP/peap [eap] processing type peap [peap] processing EAP-TLS
>   TLS Length 182
> [peap] Length Included
> [peap] eaptls_verify returned 11
> [peap] <<< TLS 1.0 Handshake [length 0086], ClientKeyExchange  
> [peap]     TLS_accept: SSLv3 read client key exchange A 
> [peap] <<< TLS 1.0 ChangeCipherSpec [length 0001] [peap] <<< TLS 1.0 Handshake [length 0010], Finished  
> [peap]     TLS_accept: SSLv3 read finished A 
> [peap] >>> TLS 1.0 ChangeCipherSpec [length 0001]  
> [peap]     TLS_accept: SSLv3 write change cipher spec A 
> [peap] >>> TLS 1.0 Handshake [length 0010], Finished  
> [peap]     TLS_accept: SSLv3 write finished A 
> [peap]     TLS_accept: SSLv3 flush data 
> [peap]     (other): SSL negotiation finished successfully 
> SSL Connection Established
> [peap] eaptls_process returned 13
> [peap] EAPTLS_HANDLED
> ++[eap] returns handled
> Sending Access-Challenge of id 0 to 192.168.125.1 port 1769
>     EAP-Message = 0x01040031190014030100010116030100204eab36fb56d424e2bde4cebb2849517e7c3d07d54f20b5a6ef9378e3722f1330
>     Message-Authenticator = 0x00000000000000000000000000000000
>     State = 0x3c1eda0a3f1ac3c7968b7ab5d979eca6
> Finished request 3.
> Going to the next request
> Waking up in 4.9 seconds.
> rad_recv: Access-Request packet from host 192.168.125.1 port 1771, id=0, length=147
>     User-Name = "lionne.stangier"
>     NAS-IP-Address = 192.168.125.1
>     Called-Station-Id = "0016b61397d9"
>     Calling-Station-Id = "00166f09d8c6"
>     NAS-Identifier = "0016b61397d9"
>     NAS-Port = 23
>     Framed-MTU = 1400
>     State = 0x3c1eda0a3f1ac3c7968b7ab5d979eca6
>     NAS-Port-Type = Wireless-802.11
>     EAP-Message = 0x020400061900
>     Message-Authenticator = 0x4a2f2d667f2ffed279143be5dd721844
> +- entering group authorize {...}
> ++[chap] returns noop
> ++[mschap] returns noop
> [suffix] No '@' in User-Name = "lionne.stangier", looking up realm NULL [suffix] No such realm "NULL"
> ++[suffix] returns noop
> [ldap] performing user authorization for lionne.stangier [ldap] WARNING: Deprecated conditional expansion ":-".  See "man unlang" for details
> [ldap]     ... expanding second conditional
> [ldap]     expand: %{User-Name} -> lionne.stangier
> [ldap]     expand: (uid=%{Stripped-User-Name:-%{User-Name}}) -> (uid=lionne.stangier)
> [ldap]     expand: dc=allesklar,dc=com -> dc=allesklar,dc=com
>   [ldap] ldap_get_conn: Checking Id: 0
>   [ldap] ldap_get_conn: Got Id: 0
>   [ldap] performing search in dc=allesklar,dc=com, with filter (uid=lionne.stangier) [ldap] looking for check items in directory...
> [ldap] looking for reply items in directory...
> WARNING: No "known good" password was found in LDAP.  Are you sure that the user is configured correctly?
> [ldap] user lionne.stangier authorized to use remote access
>   [ldap] ldap_release_conn: Release Id: 0
> ++[ldap] returns ok
> [eap] EAP packet type response id 4 length 6 [eap] Continuing tunnel setup.
> ++[eap] returns ok
> Found Auth-Type = EAP
> +- entering group authenticate {...}
> [eap] Request found, released from the list [eap] EAP/peap [eap] processing type peap [peap] processing EAP-TLS [peap] Received TLS ACK [peap] ACK handshake is finished [peap] eaptls_verify returned 3 [peap] eaptls_process returned 3 [peap] EAPTLS_SUCCESS
> 
> ++[eap] returns handled
> Sending Access-Challenge of id 0 to 192.168.125.1 port 1771
>     EAP-Message = 0x0105002019001703010015e95c6f046e9f76f423c9ab91ba92e2a28ce54f7d96
>     Message-Authenticator = 0x00000000000000000000000000000000
>     State = 0x3c1eda0a381bc3c7968b7ab5d979eca6
> Finished request 4.
> Going to the next request
> Waking up in 4.9 seconds.
> rad_recv: Access-Request packet from host 192.168.125.1 port 1773, id=0, length=184
>     User-Name = "lionne.stangier"
>     NAS-IP-Address = 192.168.125.1
>     Called-Station-Id = "0016b61397d9"
>     Calling-Station-Id = "00166f09d8c6"
>     NAS-Identifier = "0016b61397d9"
>     NAS-Port = 23
>     Framed-MTU = 1400
>     State = 0x3c1eda0a381bc3c7968b7ab5d979eca6
>     NAS-Port-Type = Wireless-802.11
>     EAP-Message = 0x0205002b19001703010020c5bcf7c42b08effb65ca15bfc0a8fd0bd781dcaba7a73fd80a356174172ba0c1
>     Message-Authenticator = 0xfefe341f31f6d600c7df7cfe602790e6
> +- entering group authorize {...}
> ++[chap] returns noop
> ++[mschap] returns noop
> [suffix] No '@' in User-Name = "lionne.stangier", looking up realm NULL [suffix] No such realm "NULL"
> ++[suffix] returns noop
> [ldap] performing user authorization for lionne.stangier [ldap] WARNING: Deprecated conditional expansion ":-".  See "man unlang" for details
> [ldap]     ... expanding second conditional
> [ldap]     expand: %{User-Name} -> lionne.stangier
> [ldap]     expand: (uid=%{Stripped-User-Name:-%{User-Name}}) -> (uid=lionne.stangier)
> [ldap]     expand: dc=allesklar,dc=com -> dc=allesklar,dc=com
>   [ldap] ldap_get_conn: Checking Id: 0
>   [ldap] ldap_get_conn: Got Id: 0
>   [ldap] performing search in dc=allesklar,dc=com, with filter (uid=lionne.stangier) [ldap] looking for check items in directory...
> [ldap] looking for reply items in directory...
> WARNING: No "known good" password was found in LDAP.  Are you sure that the user is configured correctly?
> [ldap] user lionne.stangier authorized to use remote access
>   [ldap] ldap_release_conn: Release Id: 0
> ++[ldap] returns ok
> [eap] EAP packet type response id 5 length 43 [eap] Continuing tunnel setup.
> ++[eap] returns ok
> Found Auth-Type = EAP
> +- entering group authenticate {...}
> [eap] Request found, released from the list [eap] EAP/peap [eap] processing type peap [peap] processing EAP-TLS [peap] eaptls_verify returned 7 [peap] Done initial handshake [peap] eaptls_process returned 7 [peap] EAPTLS_OK [peap] Session established.  Decoding tunneled attributes.
> [peap] Identity - lionne.stangier
> [peap] Got tunneled request
>     EAP-Message = 0x02050014016c696f6e6e652e7374616e67696572
> server  {
>   PEAP: Got tunneled identity of lionne.stangier
>   PEAP: Setting default EAP type for tunneled EAP session.
>   PEAP: Setting User-Name to lionne.stangier Sending tunneled request
>     EAP-Message = 0x02050014016c696f6e6e652e7374616e67696572
>     FreeRADIUS-Proxied-To = 127.0.0.1
>     User-Name = "lionne.stangier"
> server inner-tunnel {
> +- entering group authorize {...}
> ++[chap] returns noop
> ++[mschap] returns noop
> ++[unix] returns notfound
> [suffix] No '@' in User-Name = "lionne.stangier", looking up realm NULL [suffix] No such realm "NULL"
> ++[suffix] returns noop
> ++[control] returns noop
> [eap] EAP packet type response id 5 length 20 [eap] No EAP Start, assuming it's an on-going EAP conversation
> ++[eap] returns updated
> ++[files] returns noop
> ++[expiration] returns noop
> ++[logintime] returns noop
> ++[pap] returns noop
> Found Auth-Type = EAP
> +- entering group authenticate {...}
> [eap] EAP Identity
> [eap] processing type mschapv2
> rlm_eap_mschapv2: Issuing Challenge
> ++[eap] returns handled
> } # server inner-tunnel
> [peap] Got tunneled reply code 11
>     EAP-Message = 0x010600291a0106002410df0c286dd7700286ee1e2e847cc178796c696f6e6e652e7374616e67696572
>     Message-Authenticator = 0x00000000000000000000000000000000
>     State = 0xaf27b57caf21af805e68bee7fb6f2208
> [peap] Got tunneled reply RADIUS code 11
>     EAP-Message = 0x010600291a0106002410df0c286dd7700286ee1e2e847cc178796c696f6e6e652e7374616e67696572
>     Message-Authenticator = 0x00000000000000000000000000000000
>     State = 0xaf27b57caf21af805e68bee7fb6f2208
> [peap] Got tunneled Access-Challenge
> ++[eap] returns handled
> Sending Access-Challenge of id 0 to 192.168.125.1 port 1773
>     EAP-Message = 0x0106004019001703010035d571712e7f3ade8e4dd3e36bc3286a0de6a5a454cf1021dac26bf8a28a8b33c0eb7db55710622733ec19c1091cd637afc20539849e
>     Message-Authenticator = 0x00000000000000000000000000000000
>     State = 0x3c1eda0a3918c3c7968b7ab5d979eca6
> Finished request 5.
> Going to the next request
> Waking up in 4.9 seconds.
> rad_recv: Access-Request packet from host 192.168.125.1 port 1775, id=0, length=238
>     User-Name = "lionne.stangier"
>     NAS-IP-Address = 192.168.125.1
>     Called-Station-Id = "0016b61397d9"
>     Calling-Station-Id = "00166f09d8c6"
>     NAS-Identifier = "0016b61397d9"
>     NAS-Port = 23
>     Framed-MTU = 1400
>     State = 0x3c1eda0a3918c3c7968b7ab5d979eca6
>     NAS-Port-Type = Wireless-802.11
>     EAP-Message = 0x0206006119001703010056109b576f0c91b16996179ae2002ba046c9eddfa1d363f982c71fa5ec83adc3023b25ca54fd4dcaf9d6c98c0c52dfc752f006ec5e15c8564e975b5e20461c3289ec9131c0771bedc8219c48925a8dedcaefcd216a9127
>     Message-Authenticator = 0x843047504f3aa4b0ba5f62fe90d8760a
> +- entering group authorize {...}
> ++[chap] returns noop
> ++[mschap] returns noop
> [suffix] No '@' in User-Name = "lionne.stangier", looking up realm NULL [suffix] No such realm "NULL"
> ++[suffix] returns noop
> [ldap] performing user authorization for lionne.stangier [ldap] WARNING: Deprecated conditional expansion ":-".  See "man unlang" for details
> [ldap]     ... expanding second conditional
> [ldap]     expand: %{User-Name} -> lionne.stangier
> [ldap]     expand: (uid=%{Stripped-User-Name:-%{User-Name}}) -> (uid=lionne.stangier)
> [ldap]     expand: dc=allesklar,dc=com -> dc=allesklar,dc=com
>   [ldap] ldap_get_conn: Checking Id: 0
>   [ldap] ldap_get_conn: Got Id: 0
>   [ldap] performing search in dc=allesklar,dc=com, with filter (uid=lionne.stangier) [ldap] looking for check items in directory...
> [ldap] looking for reply items in directory...
> WARNING: No "known good" password was found in LDAP.  Are you sure that the user is configured correctly?
> [ldap] user lionne.stangier authorized to use remote access
>   [ldap] ldap_release_conn: Release Id: 0
> ++[ldap] returns ok
> [eap] EAP packet type response id 6 length 97 [eap] Continuing tunnel setup.
> ++[eap] returns ok
> Found Auth-Type = EAP
> +- entering group authenticate {...}
> [eap] Request found, released from the list [eap] EAP/peap [eap] processing type peap [peap] processing EAP-TLS [peap] eaptls_verify returned 7 [peap] Done initial handshake [peap] eaptls_process returned 7 [peap] EAPTLS_OK [peap] Session established.  Decoding tunneled attributes.
> [peap] EAP type mschapv2
> [peap] Got tunneled request
>     EAP-Message = 0x0206004a1a0206004531e5f2ef91a7b64cc943902ef973f8eee10000000000000000fc01b039c7aaf9a2561dda4bae15d4895dbdb270089032ac006c696f6e6e652e7374616e67696572
> server  {
>   PEAP: Setting User-Name to lionne.stangier Sending tunneled request
>     EAP-Message = 0x0206004a1a0206004531e5f2ef91a7b64cc943902ef973f8eee10000000000000000fc01b039c7aaf9a2561dda4bae15d4895dbdb270089032ac006c696f6e6e652e7374616e67696572
>     FreeRADIUS-Proxied-To = 127.0.0.1
>     User-Name = "lionne.stangier"
>     State = 0xaf27b57caf21af805e68bee7fb6f2208
> server inner-tunnel {
> +- entering group authorize {...}
> ++[chap] returns noop
> ++[mschap] returns noop
> ++[unix] returns notfound
> [suffix] No '@' in User-Name = "lionne.stangier", looking up realm NULL [suffix] No such realm "NULL"
> ++[suffix] returns noop
> ++[control] returns noop
> [eap] EAP packet type response id 6 length 74 [eap] No EAP Start, assuming it's an on-going EAP conversation
> ++[eap] returns updated
> ++[files] returns noop
> ++[expiration] returns noop
> ++[logintime] returns noop
> ++[pap] returns noop
> Found Auth-Type = EAP
> +- entering group authenticate {...}
> [eap] Request found, released from the list [eap] EAP/mschapv2 [eap] processing type mschapv2 [mschapv2] +- entering group MS-CHAP {...} [mschap] No Cleartext-Password configured.  Cannot create LM-Password.
> [mschap] No Cleartext-Password configured.  Cannot create NT-Password.
> [mschap] Told to do MS-CHAPv2 for lionne.stangier with NT-Password [mschap] FAILED: No NT/LM-Password.  Cannot perform authentication.
> [mschap] FAILED: MS-CHAP2-Response is incorrect
> ++[mschap] returns reject
> [eap] Freeing handler
> ++[eap] returns reject
> Failed to authenticate the user.
> } # server inner-tunnel
> [peap] Got tunneled reply code 3
>     MS-CHAP-Error = "\006E=691 R=1"
>     EAP-Message = 0x04060004
>     Message-Authenticator = 0x00000000000000000000000000000000
> [peap] Got tunneled reply RADIUS code 3
>     MS-CHAP-Error = "\006E=691 R=1"
>     EAP-Message = 0x04060004
>     Message-Authenticator = 0x00000000000000000000000000000000
> [peap] Tunneled authentication was rejected.
> [peap] FAILURE
> ++[eap] returns handled
> Sending Access-Challenge of id 0 to 192.168.125.1 port 1775
>     EAP-Message = 0x010700261900170301001b534d483e287a9968cdaa6c4c90e77d322f929965de5aaeb9f1e730
>     Message-Authenticator = 0x00000000000000000000000000000000
>     State = 0x3c1eda0a3a19c3c7968b7ab5d979eca6
> Finished request 6.
> Going to the next request
> Waking up in 4.9 seconds.
> rad_recv: Access-Request packet from host 192.168.125.1 port 1777, id=0, length=179
>     User-Name = "lionne.stangier"
>     NAS-IP-Address = 192.168.125.1
>     Called-Station-Id = "0016b61397d9"
>     Calling-Station-Id = "00166f09d8c6"
>     NAS-Identifier = "0016b61397d9"
>     NAS-Port = 23
>     Framed-MTU = 1400
>     State = 0x3c1eda0a3a19c3c7968b7ab5d979eca6
>     NAS-Port-Type = Wireless-802.11
>     EAP-Message = 0x020700261900170301001b64279191a0304b7c9d5368282e14d208afc9d009ab37c907338efc
>     Message-Authenticator = 0x3bec56b64a76414e9d6a96bb23433f88
> +- entering group authorize {...}
> ++[chap] returns noop
> ++[mschap] returns noop
> [suffix] No '@' in User-Name = "lionne.stangier", looking up realm NULL [suffix] No such realm "NULL"
> ++[suffix] returns noop
> [ldap] performing user authorization for lionne.stangier [ldap] WARNING: Deprecated conditional expansion ":-".  See "man unlang" for details
> [ldap]     ... expanding second conditional
> [ldap]     expand: %{User-Name} -> lionne.stangier
> [ldap]     expand: (uid=%{Stripped-User-Name:-%{User-Name}}) -> (uid=lionne.stangier)
> [ldap]     expand: dc=allesklar,dc=com -> dc=allesklar,dc=com
>   [ldap] ldap_get_conn: Checking Id: 0
>   [ldap] ldap_get_conn: Got Id: 0
>   [ldap] performing search in dc=allesklar,dc=com, with filter (uid=lionne.stangier) [ldap] looking for check items in directory...
> [ldap] looking for reply items in directory...
> WARNING: No "known good" password was found in LDAP.  Are you sure that the user is configured correctly?
> [ldap] user lionne.stangier authorized to use remote access
>   [ldap] ldap_release_conn: Release Id: 0
> ++[ldap] returns ok
> [eap] EAP packet type response id 7 length 38 [eap] Continuing tunnel setup.
> ++[eap] returns ok
> Found Auth-Type = EAP
> +- entering group authenticate {...}
> [eap] Request found, released from the list [eap] EAP/peap [eap] processing type peap [peap] processing EAP-TLS [peap] eaptls_verify returned 7 [peap] Done initial handshake [peap] eaptls_process returned 7 [peap] EAPTLS_OK [peap] Session established.  Decoding tunneled attributes.
> [peap] Received EAP-TLV response.
> [peap]  The users session was previously rejected: returning reject (again.) [peap]  *** This means you need to read the PREVIOUS messages in the debug output [peap]  *** to find out the reason why the user was rejected.
> [peap]  *** Look for "reject" or "fail".  Those earlier messages will tell you.
> [peap]  *** what went wrong, and how to fix the problem.
> [eap] Handler failed in EAP/peap
> [eap] Failed in EAP select
> ++[eap] returns invalid
> Failed to authenticate the user.
> Using Post-Auth-Type Reject
> +- entering group REJECT {...}
> [attr_filter.access_reject]     expand: %{User-Name} -> lionne.stangier
>  attr_filter: Matched entry DEFAULT at line 11
> ++[attr_filter.access_reject] returns updated
> Delaying reject of request 7 for 1 seconds Going to the next request Waking up in 0.9 seconds.
> Sending delayed reject for request 7
> Sending Access-Reject of id 0 to 192.168.125.1 port 1777
>     EAP-Message = 0x04070004
>     Message-Authenticator = 0x00000000000000000000000000000000
> Waking up in 3.9 seconds.
> 
> Cleaning up request 0 ID 0 with timestamp +31 Cleaning up request 1 ID 0 with timestamp +31 Cleaning up request 2 ID 0 with timestamp +31 Cleaning up request 3 ID 0 with timestamp +31 Cleaning up request 4 ID 0 with timestamp +31 Cleaning up request 5 ID 0 with timestamp +31 Cleaning up request 6 ID 0 with timestamp +31 Waking up in 1.0 seconds.
> Cleaning up request 7 ID 0 with timestamp +31 Ready to process requests.
> 
> modules/ldap ----------------------------------------------------------------------------------------------------------------------------------------------------------
> 
>  
> 
>   ldap {
>                 server = "ldap.#######"
>                 #identity = "cn=admin,o=My Org,c=UA"
>                 #password = mypass
>                 basedn = "dc=#######,dc=com"
>                 filter = "(uid=%{Stripped-User-Name:-%{User-Name}})"
>                 #base_filter = "(objectclass=radiusprofile)"
> 
>                 ldap_connections_number = 5
> 
>                 timeout = 4
>                 timelimit = 3
>                 net_timeout = 1
> 
>          
>                 tls {
>                         start_tls = no
> 
>                         # cacertfile    = /path/to/cacert.pem
>                         # cacertdir             = /path/to/ca/dir/
>                         # certfile              = /path/to/radius.crt
>                         # keyfile               = /path/to/radius.key
>                         # randfile              = /path/to/rnd
>                         # require_cert  = "demand"
>                 }
>         
>          dictionary_mapping = ${raddbdir}/ldap.attrmap
> 
> 
> 
> 
> 
> 
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
> 
> 




More information about the Freeradius-Users mailing list