FreeRadius and FreeIpa integration not working in our Lab setup
Hello All, - *What are we trying to do:* In our environment, we are using FreeIpa for LDAP authentication and network devices don't really use LDAP.So, planning to use freeRadius with FreeIpa. Before rolling out to production, testing is being done in our lab setup. I am Following this link <https://www.freeipa.org/page/Using_FreeIPA_and_FreeRadius_as_a_RADIUS_based_software_token_OTP_system_with_CentOS/RedHat_7> for the same implementation. - * debug output:* After fixing multiple errors when trying to achieve the Integration.I got struck with an error when running a radtest and the same outputs are pasted below. ========================================================================================== *[admin@radiustest ~]$ radtest admin Freeip@1234 122.1.5.84 1812 testing123Sent Access-Request Id 88 from 0.0.0.0:59293 <http://0.0.0.0:59293> to 122.1.5.84:1812 <http://122.1.5.84:1812> length 75 User-Name = "admin" User-Password = "Freeip@1234" NAS-IP-Address = 122.1.5.84 NAS-Port = 1812 Message-Authenticator = 0x00 Cleartext-Password = "Freeip@1234"Received Access-Reject Id 88 from 122.1.5.84:1812 <http://122.1.5.84:1812> to 122.1.5.84:59293 <http://122.1.5.84:59293> length 20(0) -: Expected Access-Accept got Access-Reject* *========================================================================================================================* ^C[admin@radiustest ~]$ sudo radiusd -X 2>&1 | tee debugfile FreeRADIUS Version 3.0.21 Copyright (C) 1999-2019 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 For more information about these matters, see the file named COPYRIGHT Starting - reading configuration files ... including dictionary file /usr/share/freeradius/dictionary including dictionary file /usr/share/freeradius/dictionary.dhcp including dictionary file /usr/share/freeradius/dictionary.vqp including dictionary file /etc/raddb/dictionary including configuration file /etc/raddb/radiusd.conf including configuration file /etc/raddb/proxy.conf including configuration file /etc/raddb/clients.conf including files in directory /etc/raddb/mods-enabled/ including configuration file /etc/raddb/mods-enabled/always including configuration file /etc/raddb/mods-enabled/attr_filter including configuration file /etc/raddb/mods-enabled/cache_eap including configuration file /etc/raddb/mods-enabled/chap including configuration file /etc/raddb/mods-enabled/date including configuration file /etc/raddb/mods-enabled/detail including configuration file /etc/raddb/mods-enabled/detail.log including configuration file /etc/raddb/mods-enabled/digest including configuration file /etc/raddb/mods-enabled/dynamic_clients including configuration file /etc/raddb/mods-enabled/eap including configuration file /etc/raddb/mods-enabled/echo including configuration file /etc/raddb/mods-enabled/exec including configuration file /etc/raddb/mods-enabled/expiration including configuration file /etc/raddb/mods-enabled/expr including configuration file /etc/raddb/mods-enabled/files including configuration file /etc/raddb/mods-enabled/linelog including configuration file /etc/raddb/mods-enabled/logintime including configuration file /etc/raddb/mods-enabled/mschap including configuration file /etc/raddb/mods-enabled/ntlm_auth including configuration file /etc/raddb/mods-enabled/pap including configuration file /etc/raddb/mods-enabled/passwd including configuration file /etc/raddb/mods-enabled/preprocess including configuration file /etc/raddb/mods-enabled/radutmp including configuration file /etc/raddb/mods-enabled/realm including configuration file /etc/raddb/mods-enabled/replicate including configuration file /etc/raddb/mods-enabled/soh including configuration file /etc/raddb/mods-enabled/sradutmp including configuration file /etc/raddb/mods-enabled/unix including configuration file /etc/raddb/mods-enabled/unpack including configuration file /etc/raddb/mods-enabled/utf8 including configuration file /etc/raddb/mods-enabled/ldap including files in directory /etc/raddb/policy.d/ including configuration file /etc/raddb/policy.d/accounting including configuration file /etc/raddb/policy.d/canonicalization including configuration file /etc/raddb/policy.d/control including configuration file /etc/raddb/policy.d/cui including configuration file /etc/raddb/policy.d/debug including configuration file /etc/raddb/policy.d/dhcp including configuration file /etc/raddb/policy.d/eap including configuration file /etc/raddb/policy.d/filter including configuration file /etc/raddb/policy.d/operator-name including configuration file /etc/raddb/policy.d/rfc7542 including files in directory /etc/raddb/sites-enabled/ including configuration file /etc/raddb/sites-enabled/default including configuration file /etc/raddb/sites-enabled/inner-tunnel main { security { user = "radiusd" group = "radiusd" allow_core_dumps = no } name = "radiusd" prefix = "/usr" localstatedir = "/var" logdir = "/var/log/radius" run_dir = "/var/run/radiusd" } main { name = "radiusd" prefix = "/usr" localstatedir = "/var" sbindir = "/usr/sbin" logdir = "/var/log/radius" run_dir = "/var/run/radiusd" libdir = "/usr/lib64/freeradius" radacctdir = "/var/log/radius/radacct" hostname_lookups = no max_request_time = 30 cleanup_delay = 5 max_requests = 16384 pidfile = "/var/run/radiusd/radiusd.pid" checkrad = "/usr/sbin/checkrad" debug_level = 0 proxy_requests = yes log { stripped_names = no auth = no auth_badpass = no auth_goodpass = no colourise = yes msg_denied = "You are already logged in - access denied" } resources { } security { max_attributes = 200 reject_delay = 1.000000 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 = <<< secret >>> response_window = 20.000000 response_timeouts = 1 max_outstanding = 65536 zombie_period = 40 status_check = "status-server" ping_interval = 30 check_interval = 30 check_timeout = 4 num_answers_to_alive = 3 revive_interval = 120 limit { max_connections = 16 max_requests = 0 lifetime = 0 idle_timeout = 0 } coa { 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 = 122.1.5.84 require_message_authenticator = no secret = <<< secret >>> nas_type = "other" proto = "*" limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } client localhost_ipv6 { ipv6addr = ::1 require_message_authenticator = no secret = <<< secret >>> limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } Debugger not attached # Creating Auth-Type = mschap # Creating Auth-Type = digest # Creating Auth-Type = eap # Creating Auth-Type = PAP # Creating Auth-Type = CHAP # Creating Auth-Type = MS-CHAP # Creating Auth-Type = LDAP radiusd: #### Instantiating modules #### modules { # Loaded module rlm_always # Loading module "reject" from file /etc/raddb/mods-enabled/always always reject { rcode = "reject" simulcount = 0 mpp = no } # Loading module "fail" from file /etc/raddb/mods-enabled/always always fail { rcode = "fail" simulcount = 0 mpp = no } # Loading module "ok" from file /etc/raddb/mods-enabled/always always ok { rcode = "ok" simulcount = 0 mpp = no } # Loading module "handled" from file /etc/raddb/mods-enabled/always always handled { rcode = "handled" simulcount = 0 mpp = no } # Loading module "invalid" from file /etc/raddb/mods-enabled/always always invalid { rcode = "invalid" simulcount = 0 mpp = no } # Loading module "userlock" from file /etc/raddb/mods-enabled/always always userlock { rcode = "userlock" simulcount = 0 mpp = no } # Loading module "notfound" from file /etc/raddb/mods-enabled/always always notfound { rcode = "notfound" simulcount = 0 mpp = no } # Loading module "noop" from file /etc/raddb/mods-enabled/always always noop { rcode = "noop" simulcount = 0 mpp = no } # Loading module "updated" from file /etc/raddb/mods-enabled/always always updated { rcode = "updated" simulcount = 0 mpp = no } # Loaded module rlm_attr_filter # Loading module "attr_filter.post-proxy" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.post-proxy { filename = "/etc/raddb/mods-config/attr_filter/post-proxy" key = "%{Realm}" relaxed = no } # Loading module "attr_filter.pre-proxy" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.pre-proxy { filename = "/etc/raddb/mods-config/attr_filter/pre-proxy" key = "%{Realm}" relaxed = no } # Loading module "attr_filter.access_reject" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.access_reject { filename = "/etc/raddb/mods-config/attr_filter/access_reject" key = "%{User-Name}" relaxed = no } # Loading module "attr_filter.access_challenge" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.access_challenge { filename = "/etc/raddb/mods-config/attr_filter/access_challenge" key = "%{User-Name}" relaxed = no } # Loading module "attr_filter.accounting_response" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.accounting_response { filename = "/etc/raddb/mods-config/attr_filter/accounting_response" key = "%{User-Name}" relaxed = no } # Loaded module rlm_cache # Loading module "cache_eap" from file /etc/raddb/mods-enabled/cache_eap cache cache_eap { driver = "rlm_cache_rbtree" key = "%{%{control:State}:-%{%{reply:State}:-%{State}}}" ttl = 15 max_entries = 0 epoch = 0 add_stats = no } # Loaded module rlm_chap # Loading module "chap" from file /etc/raddb/mods-enabled/chap # Loaded module rlm_date # Loading module "date" from file /etc/raddb/mods-enabled/date date { format = "%b %e %Y %H:%M:%S %Z" utc = no } # Loading module "wispr2date" from file /etc/raddb/mods-enabled/date date wispr2date { format = "%Y-%m-%dT%H:%M:%S" utc = no } # Loaded module rlm_detail # Loading module "detail" from file /etc/raddb/mods-enabled/detail detail { filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d" header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "auth_log" from file /etc/raddb/mods-enabled/detail.log detail auth_log { filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d" header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "reply_log" from file /etc/raddb/mods-enabled/detail.log detail reply_log { filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/reply-detail-%Y%m%d" header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "pre_proxy_log" from file /etc/raddb/mods-enabled/detail.log detail pre_proxy_log { filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y%m%d" header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "post_proxy_log" from file /etc/raddb/mods-enabled/detail.log detail post_proxy_log { filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/post-proxy-detail-%Y%m%d" header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loaded module rlm_digest # Loading module "digest" from file /etc/raddb/mods-enabled/digest # Loaded module rlm_dynamic_clients # Loading module "dynamic_clients" from file /etc/raddb/mods-enabled/dynamic_clients # Loaded module rlm_eap # Loading module "eap" from file /etc/raddb/mods-enabled/eap eap { default_eap_type = "md5" timer_expire = 60 ignore_unknown_eap_types = no cisco_accounting_username_bug = no max_sessions = 16384 } # Loaded module rlm_exec # Loading module "echo" from file /etc/raddb/mods-enabled/echo exec echo { wait = yes program = "/bin/echo %{User-Name}" input_pairs = "request" output_pairs = "reply" shell_escape = yes } # Loading module "exec" from file /etc/raddb/mods-enabled/exec exec { wait = no input_pairs = "request" shell_escape = yes timeout = 10 } # Loaded module rlm_expiration # Loading module "expiration" from file /etc/raddb/mods-enabled/expiration # Loaded module rlm_expr # Loading module "expr" from file /etc/raddb/mods-enabled/expr expr { safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /äéöüàâæçèéêëîïôœùûüaÿÄÉÖÜßÀÂÆÇÈÉÊËÎÏÔŒÙÛÜŸ" } # Loaded module rlm_files # Loading module "files" from file /etc/raddb/mods-enabled/files files { filename = "/etc/raddb/mods-config/files/authorize" acctusersfile = "/etc/raddb/mods-config/files/accounting" preproxy_usersfile = "/etc/raddb/mods-config/files/pre-proxy" } # Loaded module rlm_linelog # Loading module "linelog" from file /etc/raddb/mods-enabled/linelog linelog { filename = "/var/log/radius/linelog" escape_filenames = no syslog_severity = "info" permissions = 384 format = "This is a log message for %{User-Name}" reference = "messages.%{%{reply:Packet-Type}:-default}" } # Loading module "log_accounting" from file /etc/raddb/mods-enabled/linelog linelog log_accounting { filename = "/var/log/radius/linelog-accounting" escape_filenames = no syslog_severity = "info" permissions = 384 format = "" reference = "Accounting-Request.%{%{Acct-Status-Type}:-unknown}" } # Loaded module rlm_logintime # Loading module "logintime" from file /etc/raddb/mods-enabled/logintime logintime { minimum_timeout = 60 } # Loaded module rlm_mschap # Loading module "mschap" from file /etc/raddb/mods-enabled/mschap mschap { use_mppe = yes require_encryption = no require_strong = no with_ntdomain_hack = yes passchange { } allow_retry = yes winbind_retry_with_normalised_username = no } # Loading module "ntlm_auth" from file /etc/raddb/mods-enabled/ntlm_auth exec ntlm_auth { wait = yes program = "/path/to/ntlm_auth --request-nt-key --domain=MYDOMAIN --username=%{mschap:User-Name} --password=%{User-Password}" shell_escape = yes } # Loaded module rlm_pap # Loading module "pap" from file /etc/raddb/mods-enabled/pap pap { normalise = yes } # Loaded module rlm_passwd # Loading module "etc_passwd" from file /etc/raddb/mods-enabled/passwd passwd etc_passwd { filename = "/etc/passwd" format = "*User-Name:Crypt-Password:" delimiter = ":" ignore_nislike = no ignore_empty = yes allow_multiple_keys = no hash_size = 100 } # Loaded module rlm_preprocess # Loading module "preprocess" from file /etc/raddb/mods-enabled/preprocess preprocess { huntgroups = "/etc/raddb/mods-config/preprocess/huntgroups" hints = "/etc/raddb/mods-config/preprocess/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 } # Loaded module rlm_radutmp # Loading module "radutmp" from file /etc/raddb/mods-enabled/radutmp radutmp { filename = "/var/log/radius/radutmp" username = "%{User-Name}" case_sensitive = yes check_with_nas = yes permissions = 384 caller_id = yes } # Loaded module rlm_realm # Loading module "IPASS" from file /etc/raddb/mods-enabled/realm realm IPASS { format = "prefix" delimiter = "/" ignore_default = no ignore_null = no } # Loading module "suffix" from file /etc/raddb/mods-enabled/realm realm suffix { format = "suffix" delimiter = "@" ignore_default = no ignore_null = no } # Loading module "bangpath" from file /etc/raddb/mods-enabled/realm realm bangpath { format = "prefix" delimiter = "!" ignore_default = no ignore_null = no } # Loading module "realmpercent" from file /etc/raddb/mods-enabled/realm realm realmpercent { format = "suffix" delimiter = "%" ignore_default = no ignore_null = no } # Loading module "ntdomain" from file /etc/raddb/mods-enabled/realm realm ntdomain { format = "prefix" delimiter = "\\" ignore_default = no ignore_null = no } # Loaded module rlm_replicate # Loading module "replicate" from file /etc/raddb/mods-enabled/replicate # Loaded module rlm_soh # Loading module "soh" from file /etc/raddb/mods-enabled/soh soh { dhcp = yes } # Loading module "sradutmp" from file /etc/raddb/mods-enabled/sradutmp radutmp sradutmp { filename = "/var/log/radius/sradutmp" username = "%{User-Name}" case_sensitive = yes check_with_nas = yes permissions = 420 caller_id = no } # Loaded module rlm_unix # Loading module "unix" from file /etc/raddb/mods-enabled/unix unix { radwtmp = "/var/log/radius/radwtmp" } Creating attribute Unix-Group # Loaded module rlm_unpack # Loading module "unpack" from file /etc/raddb/mods-enabled/unpack # Loaded module rlm_utf8 # Loading module "utf8" from file /etc/raddb/mods-enabled/utf8 # Loaded module rlm_ldap # Loading module "ldap" from file /etc/raddb/mods-enabled/ldap ldap { server = "localhost" sasl { } user_dn = "LDAP-UserDn" user { scope = "sub" access_positive = yes sasl { } } group { filter = "(objectClass=posixGroup)" scope = "sub" name_attribute = "cn" membership_attribute = "memberOf" cacheable_name = no cacheable_dn = no allow_dangling_group_ref = no } client { filter = "(objectClass=radiusClient)" scope = "sub" base_dn = "dc=example,dc=org" } profile { } options { ldap_debug = 40 chase_referrals = yes rebind = yes net_timeout = 1 res_timeout = 10 srv_timelimit = 3 idle = 60 probes = 3 interval = 3 } tls { start_tls = no } } Creating attribute LDAP-Group instantiate { } # Instantiating module "reject" from file /etc/raddb/mods-enabled/always # Instantiating module "fail" from file /etc/raddb/mods-enabled/always # Instantiating module "ok" from file /etc/raddb/mods-enabled/always # Instantiating module "handled" from file /etc/raddb/mods-enabled/always # Instantiating module "invalid" from file /etc/raddb/mods-enabled/always # Instantiating module "userlock" from file /etc/raddb/mods-enabled/always # Instantiating module "notfound" from file /etc/raddb/mods-enabled/always # Instantiating module "noop" from file /etc/raddb/mods-enabled/always # Instantiating module "updated" from file /etc/raddb/mods-enabled/always # Instantiating module "attr_filter.post-proxy" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/post-proxy # Instantiating module "attr_filter.pre-proxy" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/pre-proxy # Instantiating module "attr_filter.access_reject" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/access_reject # Instantiating module "attr_filter.access_challenge" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/access_challenge # Instantiating module "attr_filter.accounting_response" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/accounting_response # Instantiating module "cache_eap" from file /etc/raddb/mods-enabled/cache_eap rlm_cache (cache_eap): Driver rlm_cache_rbtree (module rlm_cache_rbtree) loaded and linked # Instantiating module "detail" from file /etc/raddb/mods-enabled/detail # Instantiating module "auth_log" from file /etc/raddb/mods-enabled/detail.log rlm_detail (auth_log): 'User-Password' suppressed, will not appear in detail output # Instantiating module "reply_log" from file /etc/raddb/mods-enabled/detail.log # Instantiating module "pre_proxy_log" from file /etc/raddb/mods-enabled/detail.log # Instantiating module "post_proxy_log" from file /etc/raddb/mods-enabled/detail.log # Instantiating module "eap" from file /etc/raddb/mods-enabled/eap # Linked to sub-module rlm_eap_md5 # Linked to sub-module rlm_eap_leap # Linked to sub-module rlm_eap_gtc gtc { challenge = "Password: " auth_type = "PAP" } # Linked to sub-module rlm_eap_tls tls { tls = "tls-common" } tls-config tls-common { verify_depth = 0 ca_path = "/etc/raddb/certs" pem_file_type = yes private_key_file = "/etc/raddb/certs/server.pem" certificate_file = "/etc/raddb/certs/server.pem" ca_file = "/etc/raddb/certs/ca.pem" private_key_password = <<< secret >>> dh_file = "/etc/raddb/certs/dh" fragment_size = 1024 include_length = yes auto_chain = yes check_crl = no check_all_crl = no ca_path_reload_interval = 0 cipher_list = "PROFILE=SYSTEM" cipher_server_preference = no reject_unknown_intermediate_ca = no ecdh_curve = "prime256v1" disable_tlsv1 = yes disable_tlsv1_1 = yes tls_max_version = "1.2" tls_min_version = "1.2" cache { enable = no lifetime = 24 max_entries = 255 } verify { skip_if_ocsp_ok = no } ocsp { enable = no override_cert_url = yes url = "http://127.0.0.1/ocsp/" use_nonce = yes timeout = 0 softfail = no } } tls: Please use 'tls_min_version' and 'tls_max_version' instead of 'disable_tlsv1' tls: Please use 'tls_min_version' and 'tls_max_version' instead of 'disable_tlsv1_1' tls: Setting DH parameters from /etc/raddb/certs/dh - this is no longer necessary. tls: You should comment out the 'dh_file' configuration item. # Linked to sub-module rlm_eap_ttls ttls { tls = "tls-common" default_eap_type = "md5" copy_request_to_tunnel = no use_tunneled_reply = no virtual_server = "inner-tunnel" include_length = yes require_client_cert = no } tls: Using cached TLS configuration from previous invocation # Linked to sub-module rlm_eap_peap peap { tls = "tls-common" default_eap_type = "mschapv2" copy_request_to_tunnel = no use_tunneled_reply = no proxy_tunneled_request_as_eap = yes virtual_server = "inner-tunnel" soh = no require_client_cert = no } tls: Using cached TLS configuration from previous invocation # Linked to sub-module rlm_eap_mschapv2 mschapv2 { with_ntdomain_hack = no send_error = no } # Instantiating module "expiration" from file /etc/raddb/mods-enabled/expiration # Instantiating module "files" from file /etc/raddb/mods-enabled/files reading pairlist file /etc/raddb/mods-config/files/authorize reading pairlist file /etc/raddb/mods-config/files/accounting reading pairlist file /etc/raddb/mods-config/files/pre-proxy # Instantiating module "linelog" from file /etc/raddb/mods-enabled/linelog # Instantiating module "log_accounting" from file /etc/raddb/mods-enabled/linelog # Instantiating module "logintime" from file /etc/raddb/mods-enabled/logintime # Instantiating module "mschap" from file /etc/raddb/mods-enabled/mschap rlm_mschap (mschap): using internal authentication # Instantiating module "pap" from file /etc/raddb/mods-enabled/pap # Instantiating module "etc_passwd" from file /etc/raddb/mods-enabled/passwd rlm_passwd: nfields: 3 keyfield 0(User-Name) listable: no # Instantiating module "preprocess" from file /etc/raddb/mods-enabled/preprocess reading pairlist file /etc/raddb/mods-config/preprocess/huntgroups reading pairlist file /etc/raddb/mods-config/preprocess/hints # Instantiating module "IPASS" from file /etc/raddb/mods-enabled/realm # Instantiating module "suffix" from file /etc/raddb/mods-enabled/realm # Instantiating module "bangpath" from file /etc/raddb/mods-enabled/realm # Instantiating module "realmpercent" from file /etc/raddb/mods-enabled/realm # Instantiating module "ntdomain" from file /etc/raddb/mods-enabled/realm # Instantiating module "ldap" from file /etc/raddb/mods-enabled/ldap rlm_ldap: libldap vendor: OpenLDAP, version: 20459 accounting { reference = "%{tolower:type.%{Acct-Status-Type}}" } post-auth { reference = "." } rlm_ldap (ldap): Initialising connection pool pool { start = 5 min = 3 max = 32 spare = 10 uses = 0 lifetime = 0 cleanup_interval = 30 idle_timeout = 60 retry_delay = 30 spread = no } rlm_ldap (ldap): Opening additional connection (0), 1 of 32 pending slots used rlm_ldap (ldap): Connecting to ldap://localhost:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (1), 1 of 31 pending slots used rlm_ldap (ldap): Connecting to ldap://localhost:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (2), 1 of 30 pending slots used rlm_ldap (ldap): Connecting to ldap://localhost:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (3), 1 of 29 pending slots used rlm_ldap (ldap): Connecting to ldap://localhost:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (4), 1 of 28 pending slots used rlm_ldap (ldap): Connecting to ldap://localhost:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful } # modules radiusd: #### Loading Virtual Servers #### server { # from file /etc/raddb/radiusd.conf } # server server default { # from file /etc/raddb/sites-enabled/default # Loading authenticate {...} # Loading authorize {...} Ignoring "sql" (see raddb/mods-available/README.rst) # Loading preacct {...} # Loading accounting {...} # Loading post-proxy {...} # Loading post-auth {...} } # server default server inner-tunnel { # from file /etc/raddb/sites-enabled/inner-tunnel # Loading authenticate {...} # Loading authorize {...} # Loading session {...} # Loading post-proxy {...} # Loading post-auth {...} # Skipping contents of 'if' as it is always 'false' -- /etc/raddb/sites-enabled/inner-tunnel:336 } # server inner-tunnel radiusd: #### Opening IP addresses and Ports #### listen { type = "auth" ipaddr = * port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "acct" ipaddr = * port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "auth" ipv6addr = :: port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "acct" ipv6addr = :: port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "auth" ipaddr = 127.0.0.1 port = 18120 } Listening on auth address * port 1812 bound to server default Listening on acct address * port 1813 bound to server default Listening on auth address :: port 1812 bound to server default Listening on acct address :: port 1813 bound to server default Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel Listening on proxy address * port 47795 Listening on proxy address :: port 46792 Ready to process requests (0) Received Access-Request Id 88 from 122.1.5.84:59293 to 122.1.5.84:1812 length 75 (0) User-Name = "admin" (0) User-Password = "Freeip@1234" (0) NAS-IP-Address = 122.1.5.84 (0) NAS-Port = 1812 (0) Message-Authenticator = 0x9f01d868c7654cac48358f588763ab54 (0) # Executing section authorize from file /etc/raddb/sites-enabled/default (0) authorize { (0) policy filter_username { (0) if (&User-Name) { (0) if (&User-Name) -> TRUE (0) if (&User-Name) { (0) if (&User-Name =~ / /) { (0) if (&User-Name =~ / /) -> FALSE (0) if (&User-Name =~ /@[^@]*@/ ) { (0) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (0) if (&User-Name =~ /\.\./ ) { (0) if (&User-Name =~ /\.\./ ) -> FALSE (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (0) if (&User-Name =~ /\.$/) { (0) if (&User-Name =~ /\.$/) -> FALSE (0) if (&User-Name =~ /@\./) { (0) if (&User-Name =~ /@\./) -> FALSE (0) } # if (&User-Name) = notfound (0) } # policy filter_username = notfound (0) [preprocess] = ok (0) [chap] = noop (0) [mschap] = noop (0) [digest] = noop (0) suffix: Checking for suffix after "@" (0) suffix: No '@' in User-Name = "admin", looking up realm NULL (0) suffix: No such realm "NULL" (0) [suffix] = noop (0) eap: No EAP-Message, not doing EAP (0) [eap] = noop (0) [files] = noop rlm_ldap (ldap): Reserved connection (0) (0) ldap: EXPAND (uid=%{%{Stripped-User-Name}:-%{User-Name}}) (0) ldap: --> (uid=admin) (0) ldap: Performing search in "dc=example,dc=org" with filter "(uid=admin)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results rlm_ldap (ldap): Released connection (0) Need 5 more connections to reach 10 spares rlm_ldap (ldap): Opening additional connection (5), 1 of 27 pending slots used rlm_ldap (ldap): Connecting to ldap://localhost:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful (0) [ldap] = notfound (0) [expiration] = noop (0) [logintime] = noop *(0) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type(0) pap: WARNING: Authentication will fail unless a "known good" password is available* (0) [pap] = noop (0) } # authorize = ok *(0) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type = Reject* (0) Failed to authenticate the user (0) Using Post-Auth-Type Reject (0) # Executing group from file /etc/raddb/sites-enabled/default (0) Post-Auth-Type REJECT { (0) attr_filter.access_reject: EXPAND %{User-Name} (0) attr_filter.access_reject: --> admin (0) attr_filter.access_reject: Matched entry DEFAULT at line 11 (0) [attr_filter.access_reject] = updated (0) [eap] = noop (0) policy remove_reply_message_if_eap { (0) if (&reply:EAP-Message && &reply:Reply-Message) { (0) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE (0) else { (0) [noop] = noop (0) } # else = noop (0) } # policy remove_reply_message_if_eap = noop (0) } # Post-Auth-Type REJECT = updated (0) Delaying response for 1.000000 seconds Waking up in 0.1 seconds. Waking up in 0.8 seconds. (0) Sending delayed response (0) Sent Access-Reject Id 88 from 122.1.5.84:1812 to 122.1.5.84:59293 length 20 Waking up in 3.9 seconds. (0) Cleaning up request packet ID 88 with timestamp +3 Ready to process requests ================================================================================================================================================= *Also Attached a wireshark capture file that shows the attribute values of password as encrypted . However, below is the screenshot of the same.* [image: WhatsApp Image 2022-07-07 at 10.18.24 AM.jpeg] ===================================================================================================================================================== I have followed multiple online forums that address a solution for the issue but none looks like working.And this issue is grinding from past 2-3 weeks. Please help! *Thanks* *Krishna Chaitanya Ala*
On 08/07/2022 10:48, Krishna Chaitanya wrote:
rlm_ldap (ldap): Reserved connection (0) (0) ldap: EXPAND (uid=%{%{Stripped-User-Name}:-%{User-Name}}) (0) ldap: --> (uid=admin) (0) ldap: Performing search in "dc=example,dc=org" with filter "(uid=admin)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found
You've not configured mods-enabled/ldap with your own local settings for base_dn, so searches for example.org (the default) are failing. Test your local settings with ldapsearch to make sure you get LDAP search results back as expected, and then put them into mods-enabled/ldap. -- Matthew
*Matthew,* Thanks very much for the response. I have tried running the same after the suggested changes and below is what I am seeing. *=================================================================================[admin@radiustest ~]$ ldapsearch -x uid=admin* # extended LDIF # # LDAPv3 # base <dc=qi-cap,dc=com> (default) with scope subtree # filter: uid=admin # requesting: ALL # # admin, users, compat, qi-cap.com dn: uid=admin,cn=users,cn=compat,dc=qi-cap,dc=com objectClass: posixAccount objectClass: ipaOverrideTarget objectClass: top gecos: Administrator cn: Administrator uidNumber: 1283800000 gidNumber: 1283800000 loginShell: /bin/bash homeDirectory: /home/admin ipaAnchorUUID:: OklQQTpxaS1jYXAuY29tOmJjMzM0NDcyLWY2YzQtMTFlYy1iNjY4LTA4MDAyNz M2ZWMzOQ== uid: admin # admin, users, accounts, qi-cap.com dn: uid=admin,cn=users,cn=accounts,dc=qi-cap,dc=com objectClass: top objectClass: person objectClass: posixaccount objectClass: krbprincipalaux objectClass: krbticketpolicyaux objectClass: inetuser objectClass: ipaobject objectClass: ipasshuser objectClass: ipaSshGroupOfPubKeys objectClass: ipaNTUserAttrs objectClass: ipauserauthtypeclass objectClass: ipatokenradiusproxyuser uid: admin cn: Administrator sn: Administrator uidNumber: 1283800000 gidNumber: 1283800000 homeDirectory: /home/admin loginShell: /bin/bash gecos: Administrator ipaNTSecurityIdentifier: S-1-5-21-2716401607-2924185208-1841578509-500 # search result search: 2 result: 0 Success # numResponses: 3 # numEntries: 2 ================================================================================================================================== Ready to process requests (0) Received Access-Request Id 0 from 122.1.5.84:44216 to 122.1.5.84:1812 length 75 (0) User-Name = "admin" (0) User-Password = "Freeip@1234" (0) NAS-IP-Address = 122.1.5.84 (0) NAS-Port = 1812 (0) Message-Authenticator = 0xdd3ddd98c48416cc471cdb5dd5fd527e (0) # Executing section authorize from file /etc/raddb/sites-enabled/default (0) authorize { (0) policy filter_username { (0) if (&User-Name) { (0) if (&User-Name) -> TRUE (0) if (&User-Name) { (0) if (&User-Name =~ / /) { (0) if (&User-Name =~ / /) -> FALSE (0) if (&User-Name =~ /@[^@]*@/ ) { (0) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (0) if (&User-Name =~ /\.\./ ) { (0) if (&User-Name =~ /\.\./ ) -> FALSE (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (0) if (&User-Name =~ /\.$/) { (0) if (&User-Name =~ /\.$/) -> FALSE (0) if (&User-Name =~ /@\./) { (0) if (&User-Name =~ /@\./) -> FALSE (0) } # if (&User-Name) = notfound (0) } # policy filter_username = notfound (0) [preprocess] = ok (0) [chap] = noop (0) [mschap] = noop (0) [digest] = noop (0) suffix: Checking for suffix after "@" (0) suffix: No '@' in User-Name = "admin", looking up realm NULL (0) suffix: No such realm "NULL" (0) [suffix] = noop (0) eap: No EAP-Message, not doing EAP (0) [eap] = noop (0) [files] = noop rlm_ldap (ldap): Reserved connection (0) (0) ldap: EXPAND (uid=%{%{Stripped-User-Name}:-%{User-Name}}) (0) ldap: --> (uid=admin) (0) ldap: Performing search in "dc=QI-CAP,dc=COM" with filter "(uid=admin)", scope "sub" (0) ldap: Waiting for search result... *(0) ldap: ERROR: Ambiguous search result, returned 2 unsorted entries (should return 1 or 0). Enable sorting, or specify a more restrictive base_dn, filter or scope(0) ldap: ERROR: The following entries were returned:(0) ldap: ERROR: uid=admin,cn=users,cn=compat,dc=qi-cap,dc=com(0) ldap: ERROR: uid=admin,cn=users,cn=accounts,dc=qi-cap,dc=com* rlm_ldap (ldap): Released connection (0) Need 5 more connections to reach 10 spares rlm_ldap (ldap): Opening additional connection (5), 1 of 27 pending slots used rlm_ldap (ldap): Connecting to ldap://localhost:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful (0) [ldap] = invalid (0) } # authorize = invalid (0) Invalid user (ldap: Ambiguous search result, returned 2 unsorted entries (should return 1 or 0). Enable sorting, or specify a more restrictive base_dn, filter or scope): [admin] (from client localhost port 1812) (0) Using Post-Auth-Type Reject (0) # Executing group from file /etc/raddb/sites-enabled/default (0) Post-Auth-Type REJECT { (0) attr_filter.access_reject: EXPAND %{User-Name} (0) attr_filter.access_reject: --> admin (0) attr_filter.access_reject: Matched entry DEFAULT at line 11 (0) [attr_filter.access_reject] = updated (0) [eap] = noop (0) policy remove_reply_message_if_eap { (0) if (&reply:EAP-Message && &reply:Reply-Message) { (0) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE (0) else { (0) [noop] = noop (0) } # else = noop (0) } # policy remove_reply_message_if_eap = noop (0) } # Post-Auth-Type REJECT = updated (0) Delaying response for 1.000000 seconds Waking up in 0.1 seconds. Waking up in 0.8 seconds. (0) Sending delayed response (0) Sent Access-Reject Id 0 from 122.1.5.84:1812 to 122.1.5.84:44216 length 20 Waking up in 3.9 seconds. (0) Cleaning up request packet ID 0 with timestamp +3 Ready to process requests ================================================= Thanks *Krishna Chaitanya Ala* *Network and Operations Engineer* *QI Cap Markets LLP* *Bangalore,Karnataka* *Slack : krishna.chaitanya@qi-cap.com <krishna.chaitanya@qi-cap.com>* On Fri, 8 Jul 2022 at 15:34, Matthew Newton <mcn@freeradius.org> wrote:
On 08/07/2022 10:48, Krishna Chaitanya wrote:
rlm_ldap (ldap): Reserved connection (0) (0) ldap: EXPAND (uid=%{%{Stripped-User-Name}:-%{User-Name}}) (0) ldap: --> (uid=admin) (0) ldap: Performing search in "dc=example,dc=org" with filter "(uid=admin)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found
You've not configured mods-enabled/ldap with your own local settings for base_dn, so searches for example.org (the default) are failing.
Test your local settings with ldapsearch to make sure you get LDAP search results back as expected, and then put them into mods-enabled/ldap.
-- Matthew - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On 08/07/2022 11:45, Krishna Chaitanya wrote:
# search result search: 2 result: 0 Success
# numResponses: 3 # numEntries: 2
*(0) ldap: ERROR: Ambiguous search result, returned 2 unsorted entries (should return 1 or 0). Enable sorting, or specify a more restrictive base_dn, filter or scope(0) ldap: ERROR: The following entries were returned:(0) ldap: ERROR: uid=admin,cn=users,cn=compat,dc=qi-cap,dc=com(0) ldap: ERROR: uid=admin,cn=users,cn=accounts,dc=qi-cap,dc=com* rlm_ldap (ldap): Released connection (0) Need 5 more connections to reach 10 spares
Did you read the debug output? You have two users with the same uid. FreeRADIUS won't have any idea which one you want. So you need to either not use the same username twice, or configure FreeRADIUS with a more restrictive base DN so that it only finds one of them. -- Matthew
Matthew, Not really,Somehow, I missed reading all of the debug report. I am very new to Linux and having a hard time interpreting all of the Debug report. However, After going through the errors: 1. I can say that the username is not being used twice.Even, created another user profile with username "krishnachaitanya" and getting the same error message when running the radtest. 2. In the next test run, modified "base_dn" details as 'O=QI-CAP.COM,CN=Certificate Authority' and the test resulted in the below error.After reviewing the highlighted errors, finding it confused to understand and not really sure the fix for these errors.As far as I know, PAP can read only clear text passwords and in mycase the passwords are not encrypted when running the radtest command as "radtest krishnachaitanya *Freeip@1234 *122.1.5.84 1812 testing123" and not sure why am seeing PAP password errors. 3. and I am not sure why am seeing the messages "(0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results" when "rlm_ldap bind is successful". Is there any relation between them? *Please help!* [Ready to process requests (0) Received Access-Request Id 252 from 122.1.5.84:55576 to 122.1.5.84:1812 length 86 (0) User-Name = "krishnachaitanya" (0) User-Password = "Freeip@1234" (0) NAS-IP-Address = 122.1.5.84 (0) NAS-Port = 1812 (0) Message-Authenticator = 0x7d7802787a4d84809dbcd42a46873fe6 (0) # Executing section authorize from file /etc/raddb/sites-enabled/default (0) authorize { (0) policy filter_username { (0) if (&User-Name) { (0) if (&User-Name) -> TRUE (0) if (&User-Name) { (0) if (&User-Name =~ / /) { (0) if (&User-Name =~ / /) -> FALSE (0) if (&User-Name =~ /@[^@]*@/ ) { (0) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (0) if (&User-Name =~ /\.\./ ) { (0) if (&User-Name =~ /\.\./ ) -> FALSE (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (0) if (&User-Name =~ /\.$/) { (0) if (&User-Name =~ /\.$/) -> FALSE (0) if (&User-Name =~ /@\./) { (0) if (&User-Name =~ /@\./) -> FALSE (0) } # if (&User-Name) = notfound (0) } # policy filter_username = notfound (0) [preprocess] = ok (0) [chap] = noop (0) [mschap] = noop (0) [digest] = noop (0) suffix: Checking for suffix after "@" (0) suffix: No '@' in User-Name = "krishnachaitanya", looking up realm NULL (0) suffix: No such realm "NULL" (0) [suffix] = noop (0) eap: No EAP-Message, not doing EAP (0) [eap] = noop (0) [files] = noop rlm_ldap (ldap): Reserved connection (0) (0) ldap: EXPAND (uid=%{%{Stripped-User-Name}:-%{User-Name}}) (0) ldap: --> (uid=krishnachaitanya) (0) ldap: Performing search in "O=QI-CAP.COM,CN=Certificate Authority" with filter "(uid=krishnachaitanya)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results rlm_ldap (ldap): Released connection (0) Need 5 more connections to reach 10 spares rlm_ldap (ldap): Opening additional connection (5), 1 of 27 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful (0) [ldap] = notfound (0) if ((ok || updated) && User-Password) { (0) if ((ok || updated) && User-Password) -> FALSE (0) [expiration] = noop (0) [logintime] = noop (0) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type (0) pap: WARNING: Authentication will fail unless a "known good" password is available (0) [pap] = noop (0) } # authorize = ok (0) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type = Reject (0) Failed to authenticate the user (0) Using Post-Auth-Type Reject (0) # Executing group from file /etc/raddb/sites-enabled/default (0) Post-Auth-Type REJECT { (0) attr_filter.access_reject: EXPAND %{User-Name} (0) attr_filter.access_reject: --> krishnachaitanya (0) attr_filter.access_reject: Matched entry DEFAULT at line 11 (0) [attr_filter.access_reject] = updated (0) [eap] = noop (0) policy remove_reply_message_if_eap { (0) if (&reply:EAP-Message && &reply:Reply-Message) { (0) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE (0) else { (0) [noop] = noop (0) } # else = noop (0) } # policy remove_reply_message_if_eap = noop (0) } # Post-Auth-Type REJECT = updated (0) Delaying response for 1.000000 seconds Waking up in 0.2 seconds. Waking up in 0.7 seconds. (0) Sending delayed response (0) Sent Access-Reject Id 252 from 122.1.5.84:1812 to 122.1.5.84:55576 length 20 Waking up in 3.9 seconds. (0) Cleaning up request packet ID 252 with timestamp +5 Ready to process requests *Krishna Chaitanya Ala* *Network and Operations Engineer* On Fri, 8 Jul 2022 at 16:27, Matthew Newton <mcn@freeradius.org> wrote:
On 08/07/2022 11:45, Krishna Chaitanya wrote:
# search result search: 2 result: 0 Success
# numResponses: 3 # numEntries: 2
*(0) ldap: ERROR: Ambiguous search result, returned 2 unsorted entries (should return 1 or 0). Enable sorting, or specify a more restrictive base_dn, filter or scope(0) ldap: ERROR: The following entries were returned:(0) ldap: ERROR: uid=admin,cn=users,cn=compat,dc=qi-cap,dc=com(0) ldap: ERROR: uid=admin,cn=users,cn=accounts,dc=qi-cap,dc=com* rlm_ldap (ldap): Released connection (0) Need 5 more connections to reach 10 spares
Did you read the debug output?
You have two users with the same uid. FreeRADIUS won't have any idea which one you want.
So you need to either not use the same username twice, or configure FreeRADIUS with a more restrictive base DN so that it only finds one of them.
-- Matthew - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On 13.07.22 11:52, Krishna Chaitanya wrote:
Matthew, Not really,Somehow, I missed reading all of the debug report. I am very new to Linux and having a hard time interpreting all of the Debug report. However, After going through the errors:
1. I can say that the username is not being used twice.Even, created another user profile with username "krishnachaitanya" and getting the same error message when running the radtest. 2. In the next test run, modified "base_dn" details as 'O=QI-CAP.COM,CN=Certificate Authority' and the test resulted in the below error.After reviewing the highlighted errors, finding it confused to understand and not really sure the fix for these errors.As far as I know, PAP can read only clear text passwords and in mycase the passwords are not encrypted when running the radtest command as "radtest krishnachaitanya *Freeip@1234 *122.1.5.84 1812 testing123" and not sure why am seeing PAP password errors. 3. and I am not sure why am seeing the messages "(0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results" when "rlm_ldap bind is successful". Is there any relation between them?
*Please help!*
[Ready to process requests (0) Received Access-Request Id 252 from 122.1.5.84:55576 to 122.1.5.84:1812 length 86 (0) User-Name = "krishnachaitanya" (0) User-Password = "Freeip@1234" (0) NAS-IP-Address = 122.1.5.84 (0) NAS-Port = 1812 (0) Message-Authenticator = 0x7d7802787a4d84809dbcd42a46873fe6 (0) # Executing section authorize from file /etc/raddb/sites-enabled/default (0) authorize { (0) policy filter_username { (0) if (&User-Name) { (0) if (&User-Name) -> TRUE (0) if (&User-Name) { (0) if (&User-Name =~ / /) { (0) if (&User-Name =~ / /) -> FALSE (0) if (&User-Name =~ /@[^@]*@/ ) { (0) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (0) if (&User-Name =~ /\.\./ ) { (0) if (&User-Name =~ /\.\./ ) -> FALSE (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (0) if (&User-Name =~ /\.$/) { (0) if (&User-Name =~ /\.$/) -> FALSE (0) if (&User-Name =~ /@\./) { (0) if (&User-Name =~ /@\./) -> FALSE (0) } # if (&User-Name) = notfound (0) } # policy filter_username = notfound (0) [preprocess] = ok (0) [chap] = noop (0) [mschap] = noop (0) [digest] = noop (0) suffix: Checking for suffix after "@" (0) suffix: No '@' in User-Name = "krishnachaitanya", looking up realm NULL (0) suffix: No such realm "NULL" (0) [suffix] = noop (0) eap: No EAP-Message, not doing EAP (0) [eap] = noop (0) [files] = noop rlm_ldap (ldap): Reserved connection (0) (0) ldap: EXPAND (uid=%{%{Stripped-User-Name}:-%{User-Name}}) (0) ldap: --> (uid=krishnachaitanya) (0) ldap: Performing search in "O=QI-CAP.COM,CN=Certificate Authority" with filter "(uid=krishnachaitanya)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results rlm_ldap (ldap): Released connection (0) Need 5 more connections to reach 10 spares rlm_ldap (ldap): Opening additional connection (5), 1 of 27 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful (0) [ldap] = notfound (0) if ((ok || updated) && User-Password) { (0) if ((ok || updated) && User-Password) -> FALSE (0) [expiration] = noop (0) [logintime] = noop (0) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type (0) pap: WARNING: Authentication will fail unless a "known good" password is available (0) [pap] = noop (0) } # authorize = ok (0) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type = Reject (0) Failed to authenticate the user (0) Using Post-Auth-Type Reject (0) # Executing group from file /etc/raddb/sites-enabled/default (0) Post-Auth-Type REJECT { (0) attr_filter.access_reject: EXPAND %{User-Name} (0) attr_filter.access_reject: --> krishnachaitanya (0) attr_filter.access_reject: Matched entry DEFAULT at line 11 (0) [attr_filter.access_reject] = updated (0) [eap] = noop (0) policy remove_reply_message_if_eap { (0) if (&reply:EAP-Message && &reply:Reply-Message) { (0) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE (0) else { (0) [noop] = noop (0) } # else = noop (0) } # policy remove_reply_message_if_eap = noop (0) } # Post-Auth-Type REJECT = updated (0) Delaying response for 1.000000 seconds Waking up in 0.2 seconds. Waking up in 0.7 seconds. (0) Sending delayed response (0) Sent Access-Reject Id 252 from 122.1.5.84:1812 to 122.1.5.84:55576 length 20 Waking up in 3.9 seconds. (0) Cleaning up request packet ID 252 with timestamp +5 Ready to process requests
*Krishna Chaitanya Ala* *Network and Operations Engineer*
On Fri, 8 Jul 2022 at 16:27, Matthew Newton <mcn@freeradius.org> wrote:
On 08/07/2022 11:45, Krishna Chaitanya wrote:
# search result search: 2 result: 0 Success
# numResponses: 3 # numEntries: 2
*(0) ldap: ERROR: Ambiguous search result, returned 2 unsorted entries (should return 1 or 0). Enable sorting, or specify a more restrictive base_dn, filter or scope(0) ldap: ERROR: The following entries were returned:(0) ldap: ERROR: uid=admin,cn=users,cn=compat,dc=qi-cap,dc=com(0) ldap: ERROR: uid=admin,cn=users,cn=accounts,dc=qi-cap,dc=com* rlm_ldap (ldap): Released connection (0) Need 5 more connections to reach 10 spares
Did you read the debug output?
You have two users with the same uid. FreeRADIUS won't have any idea which one you want.
So you need to either not use the same username twice, or configure FreeRADIUS with a more restrictive base DN so that it only finds one of them.
-- Matthew - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
(0) ldap: Performing search in "O=QI-CAP.COM,CN=Certificate Authority" with filter "(uid=krishnachaitanya)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results The user is not found in the LDAP. Do you use uid? oder cn? Wrong part of the tree? Whif is the LDIF of your user? Can you do a manual ldapsearch for the user? Mit freundlichen Grüßen, -- [*] sys4 AG https://sys4.de, +49 (89) 30 90 46 64 Schleißheimer Straße 26/MG,80333 München Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief Aufsichtsratsvorsitzender: Florian Kirstein
Michael, The manual search is giving expected results but not sure why I am seeing 2 search results. Please find the below radtest results along with the manual ldap search report. ================================================================ [admin@freeradius raddb]$ ldapsearch -x uid=*krishnachaitanya* # extended LDIF # # LDAPv3 # base <dc=qi-cap,dc=com> (default) with scope subtree # filter: uid=krishnachaitanya # requesting: ALL # # krishnachaitanya, users, compat, qi-cap.com dn: uid=krishnachaitanya,cn=users,cn=compat,dc=qi-cap,dc=com objectClass: posixAccount objectClass: ipaOverrideTarget objectClass: top gecos: Krishna Ala cn: Krishna Ala uidNumber: 1283800005 gidNumber: 1283800005 loginShell: /bin/sh homeDirectory: /home/krishnachaitanya ipaAnchorUUID:: OklQQTpxaS1jYXAuY29tOmY1N2IxYTcyLWZlYjAtMTFlYy04MWYxLTA4MDAyNz M2ZWMzOQ== uid: krishnachaitanya # krishnachaitanya, users, accounts, qi-cap.com dn: uid=krishnachaitanya,cn=users,cn=accounts,dc=qi-cap,dc=com givenName: Krishna sn: Ala uid: krishnachaitanya cn: Krishna Ala displayName: Krishna Ala initials: KA gecos: Krishna Ala objectClass: top objectClass: person objectClass: organizationalperson objectClass: inetorgperson objectClass: inetuser objectClass: posixaccount objectClass: krbprincipalaux objectClass: krbticketpolicyaux objectClass: ipaobject objectClass: ipasshuser objectClass: ipaSshGroupOfPubKeys objectClass: mepOriginEntry objectClass: ipantuserattrs loginShell: /bin/sh homeDirectory: /home/krishnachaitanya uidNumber: 1283800005 gidNumber: 1283800005 ipaNTSecurityIdentifier: S-1-5-21-2716401607-2924185208-1841578509-1005 # search result search: 2 result: 0 Success # numResponses: 3 # numEntries: 2 =============================================================================================== [root@freeradius admin]# radiusd -X FreeRADIUS Version 3.0.21 Copyright (C) 1999-2019 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 For more information about these matters, see the file named COPYRIGHT Starting - reading configuration files ... including dictionary file /usr/share/freeradius/dictionary including dictionary file /usr/share/freeradius/dictionary.dhcp including dictionary file /usr/share/freeradius/dictionary.vqp including dictionary file /etc/raddb/dictionary including configuration file /etc/raddb/radiusd.conf including configuration file /etc/raddb/proxy.conf including configuration file /etc/raddb/clients.conf including files in directory /etc/raddb/mods-enabled/ including configuration file /etc/raddb/mods-enabled/always including configuration file /etc/raddb/mods-enabled/attr_filter including configuration file /etc/raddb/mods-enabled/cache_eap including configuration file /etc/raddb/mods-enabled/chap including configuration file /etc/raddb/mods-enabled/date including configuration file /etc/raddb/mods-enabled/detail including configuration file /etc/raddb/mods-enabled/detail.log including configuration file /etc/raddb/mods-enabled/digest including configuration file /etc/raddb/mods-enabled/dynamic_clients including configuration file /etc/raddb/mods-enabled/eap including configuration file /etc/raddb/mods-enabled/echo including configuration file /etc/raddb/mods-enabled/exec including configuration file /etc/raddb/mods-enabled/expiration including configuration file /etc/raddb/mods-enabled/expr including configuration file /etc/raddb/mods-enabled/files including configuration file /etc/raddb/mods-enabled/linelog including configuration file /etc/raddb/mods-enabled/logintime including configuration file /etc/raddb/mods-enabled/mschap including configuration file /etc/raddb/mods-enabled/ntlm_auth including configuration file /etc/raddb/mods-enabled/pap including configuration file /etc/raddb/mods-enabled/passwd including configuration file /etc/raddb/mods-enabled/preprocess including configuration file /etc/raddb/mods-enabled/radutmp including configuration file /etc/raddb/mods-enabled/realm including configuration file /etc/raddb/mods-enabled/replicate including configuration file /etc/raddb/mods-enabled/soh including configuration file /etc/raddb/mods-enabled/sradutmp including configuration file /etc/raddb/mods-enabled/unix including configuration file /etc/raddb/mods-enabled/unpack including configuration file /etc/raddb/mods-enabled/utf8 including configuration file /etc/raddb/mods-enabled/ldap including files in directory /etc/raddb/policy.d/ including configuration file /etc/raddb/policy.d/accounting including configuration file /etc/raddb/policy.d/canonicalization including configuration file /etc/raddb/policy.d/control including configuration file /etc/raddb/policy.d/cui including configuration file /etc/raddb/policy.d/debug including configuration file /etc/raddb/policy.d/dhcp including configuration file /etc/raddb/policy.d/eap including configuration file /etc/raddb/policy.d/filter including configuration file /etc/raddb/policy.d/operator-name including configuration file /etc/raddb/policy.d/rfc7542 including files in directory /etc/raddb/sites-enabled/ including configuration file /etc/raddb/sites-enabled/default including configuration file /etc/raddb/sites-enabled/inner-tunnel main { security { user = "radiusd" group = "radiusd" allow_core_dumps = no } name = "radiusd" prefix = "/usr" localstatedir = "/var" logdir = "/var/log/radius" run_dir = "/var/run/radiusd" } main { name = "radiusd" prefix = "/usr" localstatedir = "/var" sbindir = "/usr/sbin" logdir = "/var/log/radius" run_dir = "/var/run/radiusd" libdir = "/usr/lib64/freeradius" radacctdir = "/var/log/radius/radacct" hostname_lookups = no max_request_time = 30 cleanup_delay = 5 max_requests = 16384 pidfile = "/var/run/radiusd/radiusd.pid" checkrad = "/usr/sbin/checkrad" debug_level = 0 proxy_requests = yes log { stripped_names = no auth = no auth_badpass = no auth_goodpass = no colourise = yes msg_denied = "You are already logged in - access denied" } resources { } security { max_attributes = 200 reject_delay = 1.000000 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 = <<< secret >>> response_window = 20.000000 response_timeouts = 1 max_outstanding = 65536 zombie_period = 40 status_check = "status-server" ping_interval = 30 check_interval = 30 check_timeout = 4 num_answers_to_alive = 3 revive_interval = 120 limit { max_connections = 16 max_requests = 0 lifetime = 0 idle_timeout = 0 } coa { 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 = 122.1.5.84 require_message_authenticator = no secret = <<< secret >>> nas_type = "other" proto = "*" limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } client localhost_ipv6 { ipv6addr = ::1 require_message_authenticator = no secret = <<< secret >>> limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } Debugger not attached # Creating Auth-Type = mschap # Creating Auth-Type = digest # Creating Auth-Type = eap # Creating Auth-Type = PAP # Creating Auth-Type = CHAP # Creating Auth-Type = MS-CHAP # Creating Auth-Type = LDAP radiusd: #### Instantiating modules #### modules { # Loaded module rlm_always # Loading module "reject" from file /etc/raddb/mods-enabled/always always reject { rcode = "reject" simulcount = 0 mpp = no } # Loading module "fail" from file /etc/raddb/mods-enabled/always always fail { rcode = "fail" simulcount = 0 mpp = no } # Loading module "ok" from file /etc/raddb/mods-enabled/always always ok { rcode = "ok" simulcount = 0 mpp = no } # Loading module "handled" from file /etc/raddb/mods-enabled/always always handled { rcode = "handled" simulcount = 0 mpp = no } # Loading module "invalid" from file /etc/raddb/mods-enabled/always always invalid { rcode = "invalid" simulcount = 0 mpp = no } # Loading module "userlock" from file /etc/raddb/mods-enabled/always always userlock { rcode = "userlock" simulcount = 0 mpp = no } # Loading module "notfound" from file /etc/raddb/mods-enabled/always always notfound { rcode = "notfound" simulcount = 0 mpp = no } # Loading module "noop" from file /etc/raddb/mods-enabled/always always noop { rcode = "noop" simulcount = 0 mpp = no } # Loading module "updated" from file /etc/raddb/mods-enabled/always always updated { rcode = "updated" simulcount = 0 mpp = no } # Loaded module rlm_attr_filter # Loading module "attr_filter.post-proxy" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.post-proxy { filename = "/etc/raddb/mods-config/attr_filter/post-proxy" key = "%{Realm}" relaxed = no } # Loading module "attr_filter.pre-proxy" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.pre-proxy { filename = "/etc/raddb/mods-config/attr_filter/pre-proxy" key = "%{Realm}" relaxed = no } # Loading module "attr_filter.access_reject" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.access_reject { filename = "/etc/raddb/mods-config/attr_filter/access_reject" key = "%{User-Name}" relaxed = no } # Loading module "attr_filter.access_challenge" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.access_challenge { filename = "/etc/raddb/mods-config/attr_filter/access_challenge" key = "%{User-Name}" relaxed = no } # Loading module "attr_filter.accounting_response" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.accounting_response { filename = "/etc/raddb/mods-config/attr_filter/accounting_response" key = "%{User-Name}" relaxed = no } # Loaded module rlm_cache # Loading module "cache_eap" from file /etc/raddb/mods-enabled/cache_eap cache cache_eap { driver = "rlm_cache_rbtree" key = "%{%{control:State}:-%{%{reply:State}:-%{State}}}" ttl = 15 max_entries = 0 epoch = 0 add_stats = no } # Loaded module rlm_chap # Loading module "chap" from file /etc/raddb/mods-enabled/chap # Loaded module rlm_date # Loading module "date" from file /etc/raddb/mods-enabled/date date { format = "%b %e %Y %H:%M:%S %Z" utc = no } # Loading module "wispr2date" from file /etc/raddb/mods-enabled/date date wispr2date { format = "%Y-%m-%dT%H:%M:%S" utc = no } # Loaded module rlm_detail # Loading module "detail" from file /etc/raddb/mods-enabled/detail detail { filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d" header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "auth_log" from file /etc/raddb/mods-enabled/detail.log detail auth_log { filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d" header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "reply_log" from file /etc/raddb/mods-enabled/detail.log detail reply_log { filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/reply-detail-%Y%m%d" header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "pre_proxy_log" from file /etc/raddb/mods-enabled/detail.log detail pre_proxy_log { filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y%m%d" header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "post_proxy_log" from file /etc/raddb/mods-enabled/detail.log detail post_proxy_log { filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/post-proxy-detail-%Y%m%d" header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loaded module rlm_digest # Loading module "digest" from file /etc/raddb/mods-enabled/digest # Loaded module rlm_dynamic_clients # Loading module "dynamic_clients" from file /etc/raddb/mods-enabled/dynamic_clients # Loaded module rlm_eap # Loading module "eap" from file /etc/raddb/mods-enabled/eap eap { default_eap_type = "md5" timer_expire = 60 ignore_unknown_eap_types = no cisco_accounting_username_bug = no max_sessions = 16384 } # Loaded module rlm_exec # Loading module "echo" from file /etc/raddb/mods-enabled/echo exec echo { wait = yes program = "/bin/echo %{User-Name}" input_pairs = "request" output_pairs = "reply" shell_escape = yes } # Loading module "exec" from file /etc/raddb/mods-enabled/exec exec { wait = no input_pairs = "request" shell_escape = yes timeout = 10 } # Loaded module rlm_expiration # Loading module "expiration" from file /etc/raddb/mods-enabled/expiration # Loaded module rlm_expr # Loading module "expr" from file /etc/raddb/mods-enabled/expr expr { safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /äéöüàâæçèéêëîïôœùûüaÿÄÉÖÜßÀÂÆÇÈÉÊËÎÏÔŒÙÛÜŸ" } # Loaded module rlm_files # Loading module "files" from file /etc/raddb/mods-enabled/files files { filename = "/etc/raddb/mods-config/files/authorize" acctusersfile = "/etc/raddb/mods-config/files/accounting" preproxy_usersfile = "/etc/raddb/mods-config/files/pre-proxy" } # Loaded module rlm_linelog # Loading module "linelog" from file /etc/raddb/mods-enabled/linelog linelog { filename = "/var/log/radius/linelog" escape_filenames = no syslog_severity = "info" permissions = 384 format = "This is a log message for %{User-Name}" reference = "messages.%{%{reply:Packet-Type}:-default}" } # Loading module "log_accounting" from file /etc/raddb/mods-enabled/linelog linelog log_accounting { filename = "/var/log/radius/linelog-accounting" escape_filenames = no syslog_severity = "info" permissions = 384 format = "" reference = "Accounting-Request.%{%{Acct-Status-Type}:-unknown}" } # Loaded module rlm_logintime # Loading module "logintime" from file /etc/raddb/mods-enabled/logintime logintime { minimum_timeout = 60 } # Loaded module rlm_mschap # Loading module "mschap" from file /etc/raddb/mods-enabled/mschap mschap { use_mppe = yes require_encryption = no require_strong = no with_ntdomain_hack = yes passchange { } allow_retry = yes winbind_retry_with_normalised_username = no } # Loading module "ntlm_auth" from file /etc/raddb/mods-enabled/ntlm_auth exec ntlm_auth { wait = yes program = "/path/to/ntlm_auth --request-nt-key --domain=MYDOMAIN --username=%{mschap:User-Name} --password=%{User-Password}" shell_escape = yes } # Loaded module rlm_pap # Loading module "pap" from file /etc/raddb/mods-enabled/pap pap { normalise = yes } # Loaded module rlm_passwd # Loading module "etc_passwd" from file /etc/raddb/mods-enabled/passwd passwd etc_passwd { filename = "/etc/passwd" format = "*User-Name:Crypt-Password:" delimiter = ":" ignore_nislike = no ignore_empty = yes allow_multiple_keys = no hash_size = 100 } # Loaded module rlm_preprocess # Loading module "preprocess" from file /etc/raddb/mods-enabled/preprocess preprocess { huntgroups = "/etc/raddb/mods-config/preprocess/huntgroups" hints = "/etc/raddb/mods-config/preprocess/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 } # Loaded module rlm_radutmp # Loading module "radutmp" from file /etc/raddb/mods-enabled/radutmp radutmp { filename = "/var/log/radius/radutmp" username = "%{User-Name}" case_sensitive = yes check_with_nas = yes permissions = 384 caller_id = yes } # Loaded module rlm_realm # Loading module "IPASS" from file /etc/raddb/mods-enabled/realm realm IPASS { format = "prefix" delimiter = "/" ignore_default = no ignore_null = no } # Loading module "suffix" from file /etc/raddb/mods-enabled/realm realm suffix { format = "suffix" delimiter = "@" ignore_default = no ignore_null = no } # Loading module "bangpath" from file /etc/raddb/mods-enabled/realm realm bangpath { format = "prefix" delimiter = "!" ignore_default = no ignore_null = no } # Loading module "realmpercent" from file /etc/raddb/mods-enabled/realm realm realmpercent { format = "suffix" delimiter = "%" ignore_default = no ignore_null = no } # Loading module "ntdomain" from file /etc/raddb/mods-enabled/realm realm ntdomain { format = "prefix" delimiter = "\\" ignore_default = no ignore_null = no } # Loaded module rlm_replicate # Loading module "replicate" from file /etc/raddb/mods-enabled/replicate # Loaded module rlm_soh # Loading module "soh" from file /etc/raddb/mods-enabled/soh soh { dhcp = yes } # Loading module "sradutmp" from file /etc/raddb/mods-enabled/sradutmp radutmp sradutmp { filename = "/var/log/radius/sradutmp" username = "%{User-Name}" case_sensitive = yes check_with_nas = yes permissions = 420 caller_id = no } # Loaded module rlm_unix # Loading module "unix" from file /etc/raddb/mods-enabled/unix unix { radwtmp = "/var/log/radius/radwtmp" } Creating attribute Unix-Group # Loaded module rlm_unpack # Loading module "unpack" from file /etc/raddb/mods-enabled/unpack # Loaded module rlm_utf8 # Loading module "utf8" from file /etc/raddb/mods-enabled/utf8 # Loaded module rlm_ldap # Loading module "ldap" from file /etc/raddb/mods-enabled/ldap ldap { server = "122.1.5.84" sasl { } user_dn = "LDAP-UserDn" user { scope = "sub" access_positive = yes sasl { } } group { filter = "(objectClass=posixGroup)" scope = "sub" name_attribute = "cn" membership_attribute = "memberOf" cacheable_name = no cacheable_dn = no allow_dangling_group_ref = no } client { filter = "(objectClass=radiusClient)" scope = "sub" base_dn = "O=QI-CAP.COM,CN=Certificate Authority,cn=users,cn=accounts,dc=qi-cap,uid=krishnachaitanya,dc=com" } profile { } options { ldap_debug = 40 chase_referrals = yes rebind = yes net_timeout = 1 res_timeout = 10 srv_timelimit = 3 idle = 60 probes = 3 interval = 3 } tls { start_tls = no } } Creating attribute LDAP-Group instantiate { } # Instantiating module "reject" from file /etc/raddb/mods-enabled/always # Instantiating module "fail" from file /etc/raddb/mods-enabled/always # Instantiating module "ok" from file /etc/raddb/mods-enabled/always # Instantiating module "handled" from file /etc/raddb/mods-enabled/always # Instantiating module "invalid" from file /etc/raddb/mods-enabled/always # Instantiating module "userlock" from file /etc/raddb/mods-enabled/always # Instantiating module "notfound" from file /etc/raddb/mods-enabled/always # Instantiating module "noop" from file /etc/raddb/mods-enabled/always # Instantiating module "updated" from file /etc/raddb/mods-enabled/always # Instantiating module "attr_filter.post-proxy" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/post-proxy # Instantiating module "attr_filter.pre-proxy" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/pre-proxy # Instantiating module "attr_filter.access_reject" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/access_reject # Instantiating module "attr_filter.access_challenge" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/access_challenge # Instantiating module "attr_filter.accounting_response" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/accounting_response # Instantiating module "cache_eap" from file /etc/raddb/mods-enabled/cache_eap rlm_cache (cache_eap): Driver rlm_cache_rbtree (module rlm_cache_rbtree) loaded and linked # Instantiating module "detail" from file /etc/raddb/mods-enabled/detail # Instantiating module "auth_log" from file /etc/raddb/mods-enabled/detail.log rlm_detail (auth_log): 'User-Password' suppressed, will not appear in detail output # Instantiating module "reply_log" from file /etc/raddb/mods-enabled/detail.log # Instantiating module "pre_proxy_log" from file /etc/raddb/mods-enabled/detail.log # Instantiating module "post_proxy_log" from file /etc/raddb/mods-enabled/detail.log # Instantiating module "eap" from file /etc/raddb/mods-enabled/eap # Linked to sub-module rlm_eap_md5 # Linked to sub-module rlm_eap_leap # Linked to sub-module rlm_eap_gtc gtc { challenge = "Password: " auth_type = "PAP" } # Linked to sub-module rlm_eap_tls tls { tls = "tls-common" } tls-config tls-common { verify_depth = 0 ca_path = "/etc/raddb/certs" pem_file_type = yes private_key_file = "/etc/raddb/certs/server.pem" certificate_file = "/etc/raddb/certs/server.pem" ca_file = "/etc/raddb/certs/ca.pem" private_key_password = <<< secret >>> dh_file = "/etc/raddb/certs/dh" fragment_size = 1024 include_length = yes auto_chain = yes check_crl = no check_all_crl = no ca_path_reload_interval = 0 cipher_list = "PROFILE=SYSTEM" cipher_server_preference = no reject_unknown_intermediate_ca = no ecdh_curve = "prime256v1" disable_tlsv1 = yes disable_tlsv1_1 = yes tls_max_version = "1.2" tls_min_version = "1.2" cache { enable = no lifetime = 24 max_entries = 255 } verify { skip_if_ocsp_ok = no } ocsp { enable = no override_cert_url = yes url = "http://127.0.0.1/ocsp/" use_nonce = yes timeout = 0 softfail = no } } tls: Please use 'tls_min_version' and 'tls_max_version' instead of 'disable_tlsv1' tls: Please use 'tls_min_version' and 'tls_max_version' instead of 'disable_tlsv1_1' tls: Setting DH parameters from /etc/raddb/certs/dh - this is no longer necessary. tls: You should comment out the 'dh_file' configuration item. # Linked to sub-module rlm_eap_ttls ttls { tls = "tls-common" default_eap_type = "md5" copy_request_to_tunnel = no use_tunneled_reply = no virtual_server = "inner-tunnel" include_length = yes require_client_cert = no } tls: Using cached TLS configuration from previous invocation # Linked to sub-module rlm_eap_peap peap { tls = "tls-common" default_eap_type = "mschapv2" copy_request_to_tunnel = no use_tunneled_reply = no proxy_tunneled_request_as_eap = yes virtual_server = "inner-tunnel" soh = no require_client_cert = no } tls: Using cached TLS configuration from previous invocation # Linked to sub-module rlm_eap_mschapv2 mschapv2 { with_ntdomain_hack = no send_error = no } # Instantiating module "expiration" from file /etc/raddb/mods-enabled/expiration # Instantiating module "files" from file /etc/raddb/mods-enabled/files reading pairlist file /etc/raddb/mods-config/files/authorize reading pairlist file /etc/raddb/mods-config/files/accounting reading pairlist file /etc/raddb/mods-config/files/pre-proxy # Instantiating module "linelog" from file /etc/raddb/mods-enabled/linelog # Instantiating module "log_accounting" from file /etc/raddb/mods-enabled/linelog # Instantiating module "logintime" from file /etc/raddb/mods-enabled/logintime # Instantiating module "mschap" from file /etc/raddb/mods-enabled/mschap rlm_mschap (mschap): using internal authentication # Instantiating module "pap" from file /etc/raddb/mods-enabled/pap # Instantiating module "etc_passwd" from file /etc/raddb/mods-enabled/passwd rlm_passwd: nfields: 3 keyfield 0(User-Name) listable: no # Instantiating module "preprocess" from file /etc/raddb/mods-enabled/preprocess reading pairlist file /etc/raddb/mods-config/preprocess/huntgroups reading pairlist file /etc/raddb/mods-config/preprocess/hints # Instantiating module "IPASS" from file /etc/raddb/mods-enabled/realm # Instantiating module "suffix" from file /etc/raddb/mods-enabled/realm # Instantiating module "bangpath" from file /etc/raddb/mods-enabled/realm # Instantiating module "realmpercent" from file /etc/raddb/mods-enabled/realm # Instantiating module "ntdomain" from file /etc/raddb/mods-enabled/realm # Instantiating module "ldap" from file /etc/raddb/mods-enabled/ldap rlm_ldap: libldap vendor: OpenLDAP, version: 20459 accounting { reference = "%{tolower:type.%{Acct-Status-Type}}" } post-auth { reference = "." } rlm_ldap (ldap): Initialising connection pool pool { start = 5 min = 3 max = 32 spare = 10 uses = 0 lifetime = 0 cleanup_interval = 30 idle_timeout = 60 retry_delay = 30 spread = no } rlm_ldap (ldap): Opening additional connection (0), 1 of 32 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (1), 1 of 31 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (2), 1 of 30 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (3), 1 of 29 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (4), 1 of 28 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful } # modules radiusd: #### Loading Virtual Servers #### server { # from file /etc/raddb/radiusd.conf } # server server default { # from file /etc/raddb/sites-enabled/default # Loading authenticate {...} # Loading authorize {...} Ignoring "sql" (see raddb/mods-available/README.rst) # Loading preacct {...} # Loading accounting {...} # Loading post-proxy {...} # Loading post-auth {...} } # server default server inner-tunnel { # from file /etc/raddb/sites-enabled/inner-tunnel # Loading authenticate {...} # Loading authorize {...} # Loading session {...} # Loading post-proxy {...} # Loading post-auth {...} # Skipping contents of 'if' as it is always 'false' -- /etc/raddb/sites-enabled/inner-tunnel:341 } # server inner-tunnel radiusd: #### Opening IP addresses and Ports #### listen { type = "auth" ipaddr = * port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "acct" ipaddr = * port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "auth" ipv6addr = :: port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "acct" ipv6addr = :: port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "auth" ipaddr = 127.0.0.1 port = 18120 } Listening on auth address * port 1812 bound to server default Listening on acct address * port 1813 bound to server default Listening on auth address :: port 1812 bound to server default Listening on acct address :: port 1813 bound to server default Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel Listening on proxy address * port 43356 Listening on proxy address :: port 50675 Ready to process requests (0) Received Access-Request Id 11 from 122.1.5.84:43809 to 122.1.5.84:1812 length 86 (0) User-Name = "krishnachaitanya" (0) User-Password = "Freeip@1234" (0) NAS-IP-Address = 122.1.5.84 (0) NAS-Port = 1812 (0) Message-Authenticator = 0x9162e9e3154076ccc69ddab02d33be4e (0) # Executing section authorize from file /etc/raddb/sites-enabled/default (0) authorize { (0) policy filter_username { (0) if (&User-Name) { (0) if (&User-Name) -> TRUE (0) if (&User-Name) { (0) if (&User-Name =~ / /) { (0) if (&User-Name =~ / /) -> FALSE (0) if (&User-Name =~ /@[^@]*@/ ) { (0) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (0) if (&User-Name =~ /\.\./ ) { (0) if (&User-Name =~ /\.\./ ) -> FALSE (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (0) if (&User-Name =~ /\.$/) { (0) if (&User-Name =~ /\.$/) -> FALSE (0) if (&User-Name =~ /@\./) { (0) if (&User-Name =~ /@\./) -> FALSE (0) } # if (&User-Name) = notfound (0) } # policy filter_username = notfound (0) [preprocess] = ok (0) [chap] = noop (0) [mschap] = noop (0) [digest] = noop (0) suffix: Checking for suffix after "@" (0) suffix: No '@' in User-Name = "krishnachaitanya", looking up realm NULL (0) suffix: No such realm "NULL" (0) [suffix] = noop (0) eap: No EAP-Message, not doing EAP (0) [eap] = noop (0) [files] = noop rlm_ldap (ldap): Reserved connection (0) (0) ldap: EXPAND (uid=%{%{Stripped-User-Name}:-%{User-Name}}) (0) ldap: --> (uid=krishnachaitanya) (0) ldap: Performing search in "O=QI-CAP.COM,CN=Certificate Authority,cn=users,cn=accounts,dc=qi-cap,uid=krishnachaitanya,dc=com" with filter "(uid=krishnachaitanya)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results rlm_ldap (ldap): Released connection (0) Need 5 more connections to reach 10 spares rlm_ldap (ldap): Opening additional connection (5), 1 of 27 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful (0) [ldap] = notfound (0) if ((ok || updated) && User-Password) { (0) if ((ok || updated) && User-Password) -> FALSE (0) [expiration] = noop (0) [logintime] = noop (0) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type (0) pap: WARNING: Authentication will fail unless a "known good" password is available (0) [pap] = noop (0) } # authorize = ok (0) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type = Reject (0) Failed to authenticate the user (0) Using Post-Auth-Type Reject (0) # Executing group from file /etc/raddb/sites-enabled/default (0) Post-Auth-Type REJECT { (0) attr_filter.access_reject: EXPAND %{User-Name} (0) attr_filter.access_reject: --> krishnachaitanya (0) attr_filter.access_reject: Matched entry DEFAULT at line 11 (0) [attr_filter.access_reject] = updated (0) [eap] = noop (0) policy remove_reply_message_if_eap { (0) if (&reply:EAP-Message && &reply:Reply-Message) { (0) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE (0) else { (0) [noop] = noop (0) } # else = noop (0) } # policy remove_reply_message_if_eap = noop (0) } # Post-Auth-Type REJECT = updated (0) Delaying response for 1.000000 seconds Waking up in 0.1 seconds. Waking up in 0.8 seconds. (0) Sending delayed response (0) Sent Access-Reject Id 11 from 122.1.5.84:1812 to 122.1.5.84:43809 length 20 Waking up in 3.9 seconds. (0) Cleaning up request packet ID 11 with timestamp +10 Ready to process requests ============================================================================ *Krishna Chaitanya Ala* *Network and Operations Engineer* *QI Cap Markets LLP* *Bangalore,Karnataka* *Slack : krishna.chaitanya@qi-cap.com <krishna.chaitanya@qi-cap.com>* On Wed, 13 Jul 2022 at 15:25, Michael Schwartzkopff via Freeradius-Users < freeradius-users@lists.freeradius.org> wrote:
On 13.07.22 11:52, Krishna Chaitanya wrote:
Matthew, Not really,Somehow, I missed reading all of the debug report. I am very new to Linux and having a hard time interpreting all of the Debug report. However, After going through the errors:
1. I can say that the username is not being used twice.Even, created another user profile with username "krishnachaitanya" and getting the same error message when running the radtest. 2. In the next test run, modified "base_dn" details as 'O=QI-CAP.COM,CN=Certificate Authority' and the test resulted in the below error.After reviewing the highlighted errors, finding it confused to understand and not really sure the fix for these errors.As far as I know, PAP can read only clear text passwords and in mycase the passwords are not encrypted when running the radtest command as "radtest krishnachaitanya *Freeip@1234 *122.1.5.84 1812 testing123" and not sure why am seeing PAP password errors. 3. and I am not sure why am seeing the messages "(0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results" when "rlm_ldap bind is successful". Is there any relation between them?
*Please help!*
[Ready to process requests (0) Received Access-Request Id 252 from 122.1.5.84:55576 to 122.1.5.84:1812 length 86 (0) User-Name = "krishnachaitanya" (0) User-Password = "Freeip@1234" (0) NAS-IP-Address = 122.1.5.84 (0) NAS-Port = 1812 (0) Message-Authenticator = 0x7d7802787a4d84809dbcd42a46873fe6 (0) # Executing section authorize from file /etc/raddb/sites-enabled/default (0) authorize { (0) policy filter_username { (0) if (&User-Name) { (0) if (&User-Name) -> TRUE (0) if (&User-Name) { (0) if (&User-Name =~ / /) { (0) if (&User-Name =~ / /) -> FALSE (0) if (&User-Name =~ /@[^@]*@/ ) { (0) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (0) if (&User-Name =~ /\.\./ ) { (0) if (&User-Name =~ /\.\./ ) -> FALSE (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (0) if (&User-Name =~ /\.$/) { (0) if (&User-Name =~ /\.$/) -> FALSE (0) if (&User-Name =~ /@\./) { (0) if (&User-Name =~ /@\./) -> FALSE (0) } # if (&User-Name) = notfound (0) } # policy filter_username = notfound (0) [preprocess] = ok (0) [chap] = noop (0) [mschap] = noop (0) [digest] = noop (0) suffix: Checking for suffix after "@" (0) suffix: No '@' in User-Name = "krishnachaitanya", looking up realm NULL (0) suffix: No such realm "NULL" (0) [suffix] = noop (0) eap: No EAP-Message, not doing EAP (0) [eap] = noop (0) [files] = noop rlm_ldap (ldap): Reserved connection (0) (0) ldap: EXPAND (uid=%{%{Stripped-User-Name}:-%{User-Name}}) (0) ldap: --> (uid=krishnachaitanya) (0) ldap: Performing search in "O=QI-CAP.COM,CN=Certificate Authority" with filter "(uid=krishnachaitanya)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results rlm_ldap (ldap): Released connection (0) Need 5 more connections to reach 10 spares rlm_ldap (ldap): Opening additional connection (5), 1 of 27 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful (0) [ldap] = notfound (0) if ((ok || updated) && User-Password) { (0) if ((ok || updated) && User-Password) -> FALSE (0) [expiration] = noop (0) [logintime] = noop (0) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type (0) pap: WARNING: Authentication will fail unless a "known good" password is available (0) [pap] = noop (0) } # authorize = ok (0) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type = Reject (0) Failed to authenticate the user (0) Using Post-Auth-Type Reject (0) # Executing group from file /etc/raddb/sites-enabled/default (0) Post-Auth-Type REJECT { (0) attr_filter.access_reject: EXPAND %{User-Name} (0) attr_filter.access_reject: --> krishnachaitanya (0) attr_filter.access_reject: Matched entry DEFAULT at line 11 (0) [attr_filter.access_reject] = updated (0) [eap] = noop (0) policy remove_reply_message_if_eap { (0) if (&reply:EAP-Message && &reply:Reply-Message) { (0) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE (0) else { (0) [noop] = noop (0) } # else = noop (0) } # policy remove_reply_message_if_eap = noop (0) } # Post-Auth-Type REJECT = updated (0) Delaying response for 1.000000 seconds Waking up in 0.2 seconds. Waking up in 0.7 seconds. (0) Sending delayed response (0) Sent Access-Reject Id 252 from 122.1.5.84:1812 to 122.1.5.84:55576 length 20 Waking up in 3.9 seconds. (0) Cleaning up request packet ID 252 with timestamp +5 Ready to process requests
*Krishna Chaitanya Ala* *Network and Operations Engineer*
On Fri, 8 Jul 2022 at 16:27, Matthew Newton <mcn@freeradius.org> wrote:
On 08/07/2022 11:45, Krishna Chaitanya wrote:
# search result search: 2 result: 0 Success
# numResponses: 3 # numEntries: 2
*(0) ldap: ERROR: Ambiguous search result, returned 2 unsorted entries (should return 1 or 0). Enable sorting, or specify a more restrictive base_dn, filter or scope(0) ldap: ERROR: The following entries were returned:(0) ldap: ERROR: uid=admin,cn=users,cn=compat,dc=qi-cap,dc=com(0) ldap: ERROR: uid=admin,cn=users,cn=accounts,dc=qi-cap,dc=com* rlm_ldap (ldap): Released connection (0) Need 5 more connections to reach 10 spares
Did you read the debug output?
You have two users with the same uid. FreeRADIUS won't have any idea which one you want.
So you need to either not use the same username twice, or configure FreeRADIUS with a more restrictive base DN so that it only finds one of them.
-- Matthew - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
(0) ldap: Performing search in "O=QI-CAP.COM,CN=Certificate Authority" with filter "(uid=krishnachaitanya)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results
The user is not found in the LDAP. Do you use uid? oder cn? Wrong part of the tree? Whif is the LDIF of your user? Can you do a manual ldapsearch for the user?
Mit freundlichen Grüßen,
--
[*] sys4 AG
https://sys4.de, +49 (89) 30 90 46 64 Schleißheimer Straße 26/MG,80333 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief Aufsichtsratsvorsitzender: Florian Kirstein
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On 13.07.22 12:59, Krishna Chaitanya wrote:
Michael, The manual search is giving expected results but not sure why I am seeing 2 search results. Please find the below radtest results along with the manual ldap search report.
================================================================ [admin@freeradius raddb]$ ldapsearch -x uid=*krishnachaitanya* # extended LDIF # # LDAPv3 # base <dc=qi-cap,dc=com> (default) with scope subtree # filter: uid=krishnachaitanya # requesting: ALL #
# krishnachaitanya, users, compat, qi-cap.com dn: uid=krishnachaitanya,cn=users,cn=compat,dc=qi-cap,dc=com objectClass: posixAccount objectClass: ipaOverrideTarget objectClass: top gecos: Krishna Ala cn: Krishna Ala uidNumber: 1283800005 gidNumber: 1283800005 loginShell: /bin/sh homeDirectory: /home/krishnachaitanya ipaAnchorUUID:: OklQQTpxaS1jYXAuY29tOmY1N2IxYTcyLWZlYjAtMTFlYy04MWYxLTA4MDAyNz M2ZWMzOQ== uid: krishnachaitanya
# krishnachaitanya, users, accounts, qi-cap.com dn: uid=krishnachaitanya,cn=users,cn=accounts,dc=qi-cap,dc=com givenName: Krishna sn: Ala uid: krishnachaitanya cn: Krishna Ala displayName: Krishna Ala initials: KA gecos: Krishna Ala objectClass: top objectClass: person objectClass: organizationalperson objectClass: inetorgperson objectClass: inetuser objectClass: posixaccount objectClass: krbprincipalaux objectClass: krbticketpolicyaux objectClass: ipaobject objectClass: ipasshuser objectClass: ipaSshGroupOfPubKeys objectClass: mepOriginEntry objectClass: ipantuserattrs loginShell: /bin/sh homeDirectory: /home/krishnachaitanya uidNumber: 1283800005 gidNumber: 1283800005 ipaNTSecurityIdentifier: S-1-5-21-2716401607-2924185208-1841578509-1005
# search result search: 2 result: 0 Success
# numResponses: 3 # numEntries: 2 =============================================================================================== [root@freeradius admin]# radiusd -X FreeRADIUS Version 3.0.21 Copyright (C) 1999-2019 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 For more information about these matters, see the file named COPYRIGHT Starting - reading configuration files ... including dictionary file /usr/share/freeradius/dictionary including dictionary file /usr/share/freeradius/dictionary.dhcp including dictionary file /usr/share/freeradius/dictionary.vqp including dictionary file /etc/raddb/dictionary including configuration file /etc/raddb/radiusd.conf including configuration file /etc/raddb/proxy.conf including configuration file /etc/raddb/clients.conf including files in directory /etc/raddb/mods-enabled/ including configuration file /etc/raddb/mods-enabled/always including configuration file /etc/raddb/mods-enabled/attr_filter including configuration file /etc/raddb/mods-enabled/cache_eap including configuration file /etc/raddb/mods-enabled/chap including configuration file /etc/raddb/mods-enabled/date including configuration file /etc/raddb/mods-enabled/detail including configuration file /etc/raddb/mods-enabled/detail.log including configuration file /etc/raddb/mods-enabled/digest including configuration file /etc/raddb/mods-enabled/dynamic_clients including configuration file /etc/raddb/mods-enabled/eap including configuration file /etc/raddb/mods-enabled/echo including configuration file /etc/raddb/mods-enabled/exec including configuration file /etc/raddb/mods-enabled/expiration including configuration file /etc/raddb/mods-enabled/expr including configuration file /etc/raddb/mods-enabled/files including configuration file /etc/raddb/mods-enabled/linelog including configuration file /etc/raddb/mods-enabled/logintime including configuration file /etc/raddb/mods-enabled/mschap including configuration file /etc/raddb/mods-enabled/ntlm_auth including configuration file /etc/raddb/mods-enabled/pap including configuration file /etc/raddb/mods-enabled/passwd including configuration file /etc/raddb/mods-enabled/preprocess including configuration file /etc/raddb/mods-enabled/radutmp including configuration file /etc/raddb/mods-enabled/realm including configuration file /etc/raddb/mods-enabled/replicate including configuration file /etc/raddb/mods-enabled/soh including configuration file /etc/raddb/mods-enabled/sradutmp including configuration file /etc/raddb/mods-enabled/unix including configuration file /etc/raddb/mods-enabled/unpack including configuration file /etc/raddb/mods-enabled/utf8 including configuration file /etc/raddb/mods-enabled/ldap including files in directory /etc/raddb/policy.d/ including configuration file /etc/raddb/policy.d/accounting including configuration file /etc/raddb/policy.d/canonicalization including configuration file /etc/raddb/policy.d/control including configuration file /etc/raddb/policy.d/cui including configuration file /etc/raddb/policy.d/debug including configuration file /etc/raddb/policy.d/dhcp including configuration file /etc/raddb/policy.d/eap including configuration file /etc/raddb/policy.d/filter including configuration file /etc/raddb/policy.d/operator-name including configuration file /etc/raddb/policy.d/rfc7542 including files in directory /etc/raddb/sites-enabled/ including configuration file /etc/raddb/sites-enabled/default including configuration file /etc/raddb/sites-enabled/inner-tunnel main { security { user = "radiusd" group = "radiusd" allow_core_dumps = no } name = "radiusd" prefix = "/usr" localstatedir = "/var" logdir = "/var/log/radius" run_dir = "/var/run/radiusd" } main { name = "radiusd" prefix = "/usr" localstatedir = "/var" sbindir = "/usr/sbin" logdir = "/var/log/radius" run_dir = "/var/run/radiusd" libdir = "/usr/lib64/freeradius" radacctdir = "/var/log/radius/radacct" hostname_lookups = no max_request_time = 30 cleanup_delay = 5 max_requests = 16384 pidfile = "/var/run/radiusd/radiusd.pid" checkrad = "/usr/sbin/checkrad" debug_level = 0 proxy_requests = yes log { stripped_names = no auth = no auth_badpass = no auth_goodpass = no colourise = yes msg_denied = "You are already logged in - access denied" } resources { } security { max_attributes = 200 reject_delay = 1.000000 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 = <<< secret >>> response_window = 20.000000 response_timeouts = 1 max_outstanding = 65536 zombie_period = 40 status_check = "status-server" ping_interval = 30 check_interval = 30 check_timeout = 4 num_answers_to_alive = 3 revive_interval = 120 limit { max_connections = 16 max_requests = 0 lifetime = 0 idle_timeout = 0 } coa { 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 = 122.1.5.84 require_message_authenticator = no secret = <<< secret >>> nas_type = "other" proto = "*" limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } client localhost_ipv6 { ipv6addr = ::1 require_message_authenticator = no secret = <<< secret >>> limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } Debugger not attached # Creating Auth-Type = mschap # Creating Auth-Type = digest # Creating Auth-Type = eap # Creating Auth-Type = PAP # Creating Auth-Type = CHAP # Creating Auth-Type = MS-CHAP # Creating Auth-Type = LDAP radiusd: #### Instantiating modules #### modules { # Loaded module rlm_always # Loading module "reject" from file /etc/raddb/mods-enabled/always always reject { rcode = "reject" simulcount = 0 mpp = no } # Loading module "fail" from file /etc/raddb/mods-enabled/always always fail { rcode = "fail" simulcount = 0 mpp = no } # Loading module "ok" from file /etc/raddb/mods-enabled/always always ok { rcode = "ok" simulcount = 0 mpp = no } # Loading module "handled" from file /etc/raddb/mods-enabled/always always handled { rcode = "handled" simulcount = 0 mpp = no } # Loading module "invalid" from file /etc/raddb/mods-enabled/always always invalid { rcode = "invalid" simulcount = 0 mpp = no } # Loading module "userlock" from file /etc/raddb/mods-enabled/always always userlock { rcode = "userlock" simulcount = 0 mpp = no } # Loading module "notfound" from file /etc/raddb/mods-enabled/always always notfound { rcode = "notfound" simulcount = 0 mpp = no } # Loading module "noop" from file /etc/raddb/mods-enabled/always always noop { rcode = "noop" simulcount = 0 mpp = no } # Loading module "updated" from file /etc/raddb/mods-enabled/always always updated { rcode = "updated" simulcount = 0 mpp = no } # Loaded module rlm_attr_filter # Loading module "attr_filter.post-proxy" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.post-proxy { filename = "/etc/raddb/mods-config/attr_filter/post-proxy" key = "%{Realm}" relaxed = no } # Loading module "attr_filter.pre-proxy" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.pre-proxy { filename = "/etc/raddb/mods-config/attr_filter/pre-proxy" key = "%{Realm}" relaxed = no } # Loading module "attr_filter.access_reject" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.access_reject { filename = "/etc/raddb/mods-config/attr_filter/access_reject" key = "%{User-Name}" relaxed = no } # Loading module "attr_filter.access_challenge" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.access_challenge { filename = "/etc/raddb/mods-config/attr_filter/access_challenge" key = "%{User-Name}" relaxed = no } # Loading module "attr_filter.accounting_response" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.accounting_response { filename = "/etc/raddb/mods-config/attr_filter/accounting_response" key = "%{User-Name}" relaxed = no } # Loaded module rlm_cache # Loading module "cache_eap" from file /etc/raddb/mods-enabled/cache_eap cache cache_eap { driver = "rlm_cache_rbtree" key = "%{%{control:State}:-%{%{reply:State}:-%{State}}}" ttl = 15 max_entries = 0 epoch = 0 add_stats = no } # Loaded module rlm_chap # Loading module "chap" from file /etc/raddb/mods-enabled/chap # Loaded module rlm_date # Loading module "date" from file /etc/raddb/mods-enabled/date date { format = "%b %e %Y %H:%M:%S %Z" utc = no } # Loading module "wispr2date" from file /etc/raddb/mods-enabled/date date wispr2date { format = "%Y-%m-%dT%H:%M:%S" utc = no } # Loaded module rlm_detail # Loading module "detail" from file /etc/raddb/mods-enabled/detail detail { filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d" header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "auth_log" from file /etc/raddb/mods-enabled/detail.log detail auth_log { filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d" header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "reply_log" from file /etc/raddb/mods-enabled/detail.log detail reply_log { filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/reply-detail-%Y%m%d" header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "pre_proxy_log" from file /etc/raddb/mods-enabled/detail.log detail pre_proxy_log { filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y%m%d" header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "post_proxy_log" from file /etc/raddb/mods-enabled/detail.log detail post_proxy_log { filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/post-proxy-detail-%Y%m%d" header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loaded module rlm_digest # Loading module "digest" from file /etc/raddb/mods-enabled/digest # Loaded module rlm_dynamic_clients # Loading module "dynamic_clients" from file /etc/raddb/mods-enabled/dynamic_clients # Loaded module rlm_eap # Loading module "eap" from file /etc/raddb/mods-enabled/eap eap { default_eap_type = "md5" timer_expire = 60 ignore_unknown_eap_types = no cisco_accounting_username_bug = no max_sessions = 16384 } # Loaded module rlm_exec # Loading module "echo" from file /etc/raddb/mods-enabled/echo exec echo { wait = yes program = "/bin/echo %{User-Name}" input_pairs = "request" output_pairs = "reply" shell_escape = yes } # Loading module "exec" from file /etc/raddb/mods-enabled/exec exec { wait = no input_pairs = "request" shell_escape = yes timeout = 10 } # Loaded module rlm_expiration # Loading module "expiration" from file /etc/raddb/mods-enabled/expiration # Loaded module rlm_expr # Loading module "expr" from file /etc/raddb/mods-enabled/expr expr { safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /äéöüàâæçèéêëîïôœùûüaÿÄÉÖÜßÀÂÆÇÈÉÊËÎÏÔŒÙÛÜŸ" } # Loaded module rlm_files # Loading module "files" from file /etc/raddb/mods-enabled/files files { filename = "/etc/raddb/mods-config/files/authorize" acctusersfile = "/etc/raddb/mods-config/files/accounting" preproxy_usersfile = "/etc/raddb/mods-config/files/pre-proxy" } # Loaded module rlm_linelog # Loading module "linelog" from file /etc/raddb/mods-enabled/linelog linelog { filename = "/var/log/radius/linelog" escape_filenames = no syslog_severity = "info" permissions = 384 format = "This is a log message for %{User-Name}" reference = "messages.%{%{reply:Packet-Type}:-default}" } # Loading module "log_accounting" from file /etc/raddb/mods-enabled/linelog linelog log_accounting { filename = "/var/log/radius/linelog-accounting" escape_filenames = no syslog_severity = "info" permissions = 384 format = "" reference = "Accounting-Request.%{%{Acct-Status-Type}:-unknown}" } # Loaded module rlm_logintime # Loading module "logintime" from file /etc/raddb/mods-enabled/logintime logintime { minimum_timeout = 60 } # Loaded module rlm_mschap # Loading module "mschap" from file /etc/raddb/mods-enabled/mschap mschap { use_mppe = yes require_encryption = no require_strong = no with_ntdomain_hack = yes passchange { } allow_retry = yes winbind_retry_with_normalised_username = no } # Loading module "ntlm_auth" from file /etc/raddb/mods-enabled/ntlm_auth exec ntlm_auth { wait = yes program = "/path/to/ntlm_auth --request-nt-key --domain=MYDOMAIN --username=%{mschap:User-Name} --password=%{User-Password}" shell_escape = yes } # Loaded module rlm_pap # Loading module "pap" from file /etc/raddb/mods-enabled/pap pap { normalise = yes } # Loaded module rlm_passwd # Loading module "etc_passwd" from file /etc/raddb/mods-enabled/passwd passwd etc_passwd { filename = "/etc/passwd" format = "*User-Name:Crypt-Password:" delimiter = ":" ignore_nislike = no ignore_empty = yes allow_multiple_keys = no hash_size = 100 } # Loaded module rlm_preprocess # Loading module "preprocess" from file /etc/raddb/mods-enabled/preprocess preprocess { huntgroups = "/etc/raddb/mods-config/preprocess/huntgroups" hints = "/etc/raddb/mods-config/preprocess/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 } # Loaded module rlm_radutmp # Loading module "radutmp" from file /etc/raddb/mods-enabled/radutmp radutmp { filename = "/var/log/radius/radutmp" username = "%{User-Name}" case_sensitive = yes check_with_nas = yes permissions = 384 caller_id = yes } # Loaded module rlm_realm # Loading module "IPASS" from file /etc/raddb/mods-enabled/realm realm IPASS { format = "prefix" delimiter = "/" ignore_default = no ignore_null = no } # Loading module "suffix" from file /etc/raddb/mods-enabled/realm realm suffix { format = "suffix" delimiter = "@" ignore_default = no ignore_null = no } # Loading module "bangpath" from file /etc/raddb/mods-enabled/realm realm bangpath { format = "prefix" delimiter = "!" ignore_default = no ignore_null = no } # Loading module "realmpercent" from file /etc/raddb/mods-enabled/realm realm realmpercent { format = "suffix" delimiter = "%" ignore_default = no ignore_null = no } # Loading module "ntdomain" from file /etc/raddb/mods-enabled/realm realm ntdomain { format = "prefix" delimiter = "\\" ignore_default = no ignore_null = no } # Loaded module rlm_replicate # Loading module "replicate" from file /etc/raddb/mods-enabled/replicate # Loaded module rlm_soh # Loading module "soh" from file /etc/raddb/mods-enabled/soh soh { dhcp = yes } # Loading module "sradutmp" from file /etc/raddb/mods-enabled/sradutmp radutmp sradutmp { filename = "/var/log/radius/sradutmp" username = "%{User-Name}" case_sensitive = yes check_with_nas = yes permissions = 420 caller_id = no } # Loaded module rlm_unix # Loading module "unix" from file /etc/raddb/mods-enabled/unix unix { radwtmp = "/var/log/radius/radwtmp" } Creating attribute Unix-Group # Loaded module rlm_unpack # Loading module "unpack" from file /etc/raddb/mods-enabled/unpack # Loaded module rlm_utf8 # Loading module "utf8" from file /etc/raddb/mods-enabled/utf8 # Loaded module rlm_ldap # Loading module "ldap" from file /etc/raddb/mods-enabled/ldap ldap { server = "122.1.5.84" sasl { } user_dn = "LDAP-UserDn" user { scope = "sub" access_positive = yes sasl { } } group { filter = "(objectClass=posixGroup)" scope = "sub" name_attribute = "cn" membership_attribute = "memberOf" cacheable_name = no cacheable_dn = no allow_dangling_group_ref = no } client { filter = "(objectClass=radiusClient)" scope = "sub" base_dn = "O=QI-CAP.COM,CN=Certificate Authority,cn=users,cn=accounts,dc=qi-cap,uid=krishnachaitanya,dc=com" } profile { } options { ldap_debug = 40 chase_referrals = yes rebind = yes net_timeout = 1 res_timeout = 10 srv_timelimit = 3 idle = 60 probes = 3 interval = 3 } tls { start_tls = no } } Creating attribute LDAP-Group instantiate { } # Instantiating module "reject" from file /etc/raddb/mods-enabled/always # Instantiating module "fail" from file /etc/raddb/mods-enabled/always # Instantiating module "ok" from file /etc/raddb/mods-enabled/always # Instantiating module "handled" from file /etc/raddb/mods-enabled/always # Instantiating module "invalid" from file /etc/raddb/mods-enabled/always # Instantiating module "userlock" from file /etc/raddb/mods-enabled/always # Instantiating module "notfound" from file /etc/raddb/mods-enabled/always # Instantiating module "noop" from file /etc/raddb/mods-enabled/always # Instantiating module "updated" from file /etc/raddb/mods-enabled/always # Instantiating module "attr_filter.post-proxy" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/post-proxy # Instantiating module "attr_filter.pre-proxy" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/pre-proxy # Instantiating module "attr_filter.access_reject" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/access_reject # Instantiating module "attr_filter.access_challenge" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/access_challenge # Instantiating module "attr_filter.accounting_response" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/accounting_response # Instantiating module "cache_eap" from file /etc/raddb/mods-enabled/cache_eap rlm_cache (cache_eap): Driver rlm_cache_rbtree (module rlm_cache_rbtree) loaded and linked # Instantiating module "detail" from file /etc/raddb/mods-enabled/detail # Instantiating module "auth_log" from file /etc/raddb/mods-enabled/detail.log rlm_detail (auth_log): 'User-Password' suppressed, will not appear in detail output # Instantiating module "reply_log" from file /etc/raddb/mods-enabled/detail.log # Instantiating module "pre_proxy_log" from file /etc/raddb/mods-enabled/detail.log # Instantiating module "post_proxy_log" from file /etc/raddb/mods-enabled/detail.log # Instantiating module "eap" from file /etc/raddb/mods-enabled/eap # Linked to sub-module rlm_eap_md5 # Linked to sub-module rlm_eap_leap # Linked to sub-module rlm_eap_gtc gtc { challenge = "Password: " auth_type = "PAP" } # Linked to sub-module rlm_eap_tls tls { tls = "tls-common" } tls-config tls-common { verify_depth = 0 ca_path = "/etc/raddb/certs" pem_file_type = yes private_key_file = "/etc/raddb/certs/server.pem" certificate_file = "/etc/raddb/certs/server.pem" ca_file = "/etc/raddb/certs/ca.pem" private_key_password = <<< secret >>> dh_file = "/etc/raddb/certs/dh" fragment_size = 1024 include_length = yes auto_chain = yes check_crl = no check_all_crl = no ca_path_reload_interval = 0 cipher_list = "PROFILE=SYSTEM" cipher_server_preference = no reject_unknown_intermediate_ca = no ecdh_curve = "prime256v1" disable_tlsv1 = yes disable_tlsv1_1 = yes tls_max_version = "1.2" tls_min_version = "1.2" cache { enable = no lifetime = 24 max_entries = 255 } verify { skip_if_ocsp_ok = no } ocsp { enable = no override_cert_url = yes url = "http://127.0.0.1/ocsp/" use_nonce = yes timeout = 0 softfail = no } } tls: Please use 'tls_min_version' and 'tls_max_version' instead of 'disable_tlsv1' tls: Please use 'tls_min_version' and 'tls_max_version' instead of 'disable_tlsv1_1' tls: Setting DH parameters from /etc/raddb/certs/dh - this is no longer necessary. tls: You should comment out the 'dh_file' configuration item. # Linked to sub-module rlm_eap_ttls ttls { tls = "tls-common" default_eap_type = "md5" copy_request_to_tunnel = no use_tunneled_reply = no virtual_server = "inner-tunnel" include_length = yes require_client_cert = no } tls: Using cached TLS configuration from previous invocation # Linked to sub-module rlm_eap_peap peap { tls = "tls-common" default_eap_type = "mschapv2" copy_request_to_tunnel = no use_tunneled_reply = no proxy_tunneled_request_as_eap = yes virtual_server = "inner-tunnel" soh = no require_client_cert = no } tls: Using cached TLS configuration from previous invocation # Linked to sub-module rlm_eap_mschapv2 mschapv2 { with_ntdomain_hack = no send_error = no } # Instantiating module "expiration" from file /etc/raddb/mods-enabled/expiration # Instantiating module "files" from file /etc/raddb/mods-enabled/files reading pairlist file /etc/raddb/mods-config/files/authorize reading pairlist file /etc/raddb/mods-config/files/accounting reading pairlist file /etc/raddb/mods-config/files/pre-proxy # Instantiating module "linelog" from file /etc/raddb/mods-enabled/linelog # Instantiating module "log_accounting" from file /etc/raddb/mods-enabled/linelog # Instantiating module "logintime" from file /etc/raddb/mods-enabled/logintime # Instantiating module "mschap" from file /etc/raddb/mods-enabled/mschap rlm_mschap (mschap): using internal authentication # Instantiating module "pap" from file /etc/raddb/mods-enabled/pap # Instantiating module "etc_passwd" from file /etc/raddb/mods-enabled/passwd rlm_passwd: nfields: 3 keyfield 0(User-Name) listable: no # Instantiating module "preprocess" from file /etc/raddb/mods-enabled/preprocess reading pairlist file /etc/raddb/mods-config/preprocess/huntgroups reading pairlist file /etc/raddb/mods-config/preprocess/hints # Instantiating module "IPASS" from file /etc/raddb/mods-enabled/realm # Instantiating module "suffix" from file /etc/raddb/mods-enabled/realm # Instantiating module "bangpath" from file /etc/raddb/mods-enabled/realm # Instantiating module "realmpercent" from file /etc/raddb/mods-enabled/realm # Instantiating module "ntdomain" from file /etc/raddb/mods-enabled/realm # Instantiating module "ldap" from file /etc/raddb/mods-enabled/ldap rlm_ldap: libldap vendor: OpenLDAP, version: 20459 accounting { reference = "%{tolower:type.%{Acct-Status-Type}}" } post-auth { reference = "." } rlm_ldap (ldap): Initialising connection pool pool { start = 5 min = 3 max = 32 spare = 10 uses = 0 lifetime = 0 cleanup_interval = 30 idle_timeout = 60 retry_delay = 30 spread = no } rlm_ldap (ldap): Opening additional connection (0), 1 of 32 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (1), 1 of 31 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (2), 1 of 30 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (3), 1 of 29 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (4), 1 of 28 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful } # modules radiusd: #### Loading Virtual Servers #### server { # from file /etc/raddb/radiusd.conf } # server server default { # from file /etc/raddb/sites-enabled/default # Loading authenticate {...} # Loading authorize {...} Ignoring "sql" (see raddb/mods-available/README.rst) # Loading preacct {...} # Loading accounting {...} # Loading post-proxy {...} # Loading post-auth {...} } # server default server inner-tunnel { # from file /etc/raddb/sites-enabled/inner-tunnel # Loading authenticate {...} # Loading authorize {...} # Loading session {...} # Loading post-proxy {...} # Loading post-auth {...} # Skipping contents of 'if' as it is always 'false' -- /etc/raddb/sites-enabled/inner-tunnel:341 } # server inner-tunnel radiusd: #### Opening IP addresses and Ports #### listen { type = "auth" ipaddr = * port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "acct" ipaddr = * port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "auth" ipv6addr = :: port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "acct" ipv6addr = :: port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "auth" ipaddr = 127.0.0.1 port = 18120 } Listening on auth address * port 1812 bound to server default Listening on acct address * port 1813 bound to server default Listening on auth address :: port 1812 bound to server default Listening on acct address :: port 1813 bound to server default Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel Listening on proxy address * port 43356 Listening on proxy address :: port 50675 Ready to process requests (0) Received Access-Request Id 11 from 122.1.5.84:43809 to 122.1.5.84:1812 length 86 (0) User-Name = "krishnachaitanya" (0) User-Password = "Freeip@1234" (0) NAS-IP-Address = 122.1.5.84 (0) NAS-Port = 1812 (0) Message-Authenticator = 0x9162e9e3154076ccc69ddab02d33be4e (0) # Executing section authorize from file /etc/raddb/sites-enabled/default (0) authorize { (0) policy filter_username { (0) if (&User-Name) { (0) if (&User-Name) -> TRUE (0) if (&User-Name) { (0) if (&User-Name =~ / /) { (0) if (&User-Name =~ / /) -> FALSE (0) if (&User-Name =~ /@[^@]*@/ ) { (0) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (0) if (&User-Name =~ /\.\./ ) { (0) if (&User-Name =~ /\.\./ ) -> FALSE (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (0) if (&User-Name =~ /\.$/) { (0) if (&User-Name =~ /\.$/) -> FALSE (0) if (&User-Name =~ /@\./) { (0) if (&User-Name =~ /@\./) -> FALSE (0) } # if (&User-Name) = notfound (0) } # policy filter_username = notfound (0) [preprocess] = ok (0) [chap] = noop (0) [mschap] = noop (0) [digest] = noop (0) suffix: Checking for suffix after "@" (0) suffix: No '@' in User-Name = "krishnachaitanya", looking up realm NULL (0) suffix: No such realm "NULL" (0) [suffix] = noop (0) eap: No EAP-Message, not doing EAP (0) [eap] = noop (0) [files] = noop rlm_ldap (ldap): Reserved connection (0) (0) ldap: EXPAND (uid=%{%{Stripped-User-Name}:-%{User-Name}}) (0) ldap: --> (uid=krishnachaitanya) (0) ldap: Performing search in "O=QI-CAP.COM,CN=Certificate Authority,cn=users,cn=accounts,dc=qi-cap,uid=krishnachaitanya,dc=com" with filter "(uid=krishnachaitanya)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results rlm_ldap (ldap): Released connection (0) Need 5 more connections to reach 10 spares rlm_ldap (ldap): Opening additional connection (5), 1 of 27 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful (0) [ldap] = notfound (0) if ((ok || updated) && User-Password) { (0) if ((ok || updated) && User-Password) -> FALSE (0) [expiration] = noop (0) [logintime] = noop (0) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type (0) pap: WARNING: Authentication will fail unless a "known good" password is available (0) [pap] = noop (0) } # authorize = ok (0) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type = Reject (0) Failed to authenticate the user (0) Using Post-Auth-Type Reject (0) # Executing group from file /etc/raddb/sites-enabled/default (0) Post-Auth-Type REJECT { (0) attr_filter.access_reject: EXPAND %{User-Name} (0) attr_filter.access_reject: --> krishnachaitanya (0) attr_filter.access_reject: Matched entry DEFAULT at line 11 (0) [attr_filter.access_reject] = updated (0) [eap] = noop (0) policy remove_reply_message_if_eap { (0) if (&reply:EAP-Message && &reply:Reply-Message) { (0) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE (0) else { (0) [noop] = noop (0) } # else = noop (0) } # policy remove_reply_message_if_eap = noop (0) } # Post-Auth-Type REJECT = updated (0) Delaying response for 1.000000 seconds Waking up in 0.1 seconds. Waking up in 0.8 seconds. (0) Sending delayed response (0) Sent Access-Reject Id 11 from 122.1.5.84:1812 to 122.1.5.84:43809 length 20 Waking up in 3.9 seconds. (0) Cleaning up request packet ID 11 with timestamp +10 Ready to process requests ============================================================================
*Krishna Chaitanya Ala* *Network and Operations Engineer*
*QI Cap Markets LLP* *Bangalore,Karnataka* *Slack : krishna.chaitanya@qi-cap.com <krishna.chaitanya@qi-cap.com>*
On Wed, 13 Jul 2022 at 15:25, Michael Schwartzkopff via Freeradius-Users < freeradius-users@lists.freeradius.org> wrote:
On 13.07.22 11:52, Krishna Chaitanya wrote:
Matthew, Not really,Somehow, I missed reading all of the debug report. I am very new to Linux and having a hard time interpreting all of the Debug report. However, After going through the errors:
1. I can say that the username is not being used twice.Even, created another user profile with username "krishnachaitanya" and getting the same error message when running the radtest. 2. In the next test run, modified "base_dn" details as 'O=QI-CAP.COM,CN=Certificate Authority' and the test resulted in the below error.After reviewing the highlighted errors, finding it confused to understand and not really sure the fix for these errors.As far as I know, PAP can read only clear text passwords and in mycase the passwords are not encrypted when running the radtest command as "radtest krishnachaitanya *Freeip@1234 *122.1.5.84 1812 testing123" and not sure why am seeing PAP password errors. 3. and I am not sure why am seeing the messages "(0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results" when "rlm_ldap bind is successful". Is there any relation between them?
*Please help!*
[Ready to process requests (0) Received Access-Request Id 252 from 122.1.5.84:55576 to 122.1.5.84:1812 length 86 (0) User-Name = "krishnachaitanya" (0) User-Password = "Freeip@1234" (0) NAS-IP-Address = 122.1.5.84 (0) NAS-Port = 1812 (0) Message-Authenticator = 0x7d7802787a4d84809dbcd42a46873fe6 (0) # Executing section authorize from file /etc/raddb/sites-enabled/default (0) authorize { (0) policy filter_username { (0) if (&User-Name) { (0) if (&User-Name) -> TRUE (0) if (&User-Name) { (0) if (&User-Name =~ / /) { (0) if (&User-Name =~ / /) -> FALSE (0) if (&User-Name =~ /@[^@]*@/ ) { (0) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (0) if (&User-Name =~ /\.\./ ) { (0) if (&User-Name =~ /\.\./ ) -> FALSE (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (0) if (&User-Name =~ /\.$/) { (0) if (&User-Name =~ /\.$/) -> FALSE (0) if (&User-Name =~ /@\./) { (0) if (&User-Name =~ /@\./) -> FALSE (0) } # if (&User-Name) = notfound (0) } # policy filter_username = notfound (0) [preprocess] = ok (0) [chap] = noop (0) [mschap] = noop (0) [digest] = noop (0) suffix: Checking for suffix after "@" (0) suffix: No '@' in User-Name = "krishnachaitanya", looking up realm NULL (0) suffix: No such realm "NULL" (0) [suffix] = noop (0) eap: No EAP-Message, not doing EAP (0) [eap] = noop (0) [files] = noop rlm_ldap (ldap): Reserved connection (0) (0) ldap: EXPAND (uid=%{%{Stripped-User-Name}:-%{User-Name}}) (0) ldap: --> (uid=krishnachaitanya) (0) ldap: Performing search in "O=QI-CAP.COM,CN=Certificate Authority" with filter "(uid=krishnachaitanya)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results rlm_ldap (ldap): Released connection (0) Need 5 more connections to reach 10 spares rlm_ldap (ldap): Opening additional connection (5), 1 of 27 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful (0) [ldap] = notfound (0) if ((ok || updated) && User-Password) { (0) if ((ok || updated) && User-Password) -> FALSE (0) [expiration] = noop (0) [logintime] = noop (0) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type (0) pap: WARNING: Authentication will fail unless a "known good" password is available (0) [pap] = noop (0) } # authorize = ok (0) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type = Reject (0) Failed to authenticate the user (0) Using Post-Auth-Type Reject (0) # Executing group from file /etc/raddb/sites-enabled/default (0) Post-Auth-Type REJECT { (0) attr_filter.access_reject: EXPAND %{User-Name} (0) attr_filter.access_reject: --> krishnachaitanya (0) attr_filter.access_reject: Matched entry DEFAULT at line 11 (0) [attr_filter.access_reject] = updated (0) [eap] = noop (0) policy remove_reply_message_if_eap { (0) if (&reply:EAP-Message && &reply:Reply-Message) { (0) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE (0) else { (0) [noop] = noop (0) } # else = noop (0) } # policy remove_reply_message_if_eap = noop (0) } # Post-Auth-Type REJECT = updated (0) Delaying response for 1.000000 seconds Waking up in 0.2 seconds. Waking up in 0.7 seconds. (0) Sending delayed response (0) Sent Access-Reject Id 252 from 122.1.5.84:1812 to 122.1.5.84:55576 length 20 Waking up in 3.9 seconds. (0) Cleaning up request packet ID 252 with timestamp +5 Ready to process requests
*Krishna Chaitanya Ala* *Network and Operations Engineer*
On Fri, 8 Jul 2022 at 16:27, Matthew Newton <mcn@freeradius.org> wrote:
On 08/07/2022 11:45, Krishna Chaitanya wrote:
# search result search: 2 result: 0 Success
# numResponses: 3 # numEntries: 2 *(0) ldap: ERROR: Ambiguous search result, returned 2 unsorted entries (should return 1 or 0). Enable sorting, or specify a more restrictive base_dn, filter or scope(0) ldap: ERROR: The following entries were returned:(0) ldap: ERROR: uid=admin,cn=users,cn=compat,dc=qi-cap,dc=com(0) ldap: ERROR: uid=admin,cn=users,cn=accounts,dc=qi-cap,dc=com* rlm_ldap (ldap): Released connection (0) Need 5 more connections to reach 10 spares Did you read the debug output?
You have two users with the same uid. FreeRADIUS won't have any idea which one you want.
So you need to either not use the same username twice, or configure FreeRADIUS with a more restrictive base DN so that it only finds one of them.
-- Matthew - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
(0) ldap: Performing search in "O=QI-CAP.COM,CN=Certificate Authority" with filter "(uid=krishnachaitanya)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results
The user is not found in the LDAP. Do you use uid? oder cn? Wrong part of the tree? Whif is the LDIF of your user? Can you do a manual ldapsearch for the user?
Mit freundlichen Grüßen,
--
[*] sys4 AG
https://sys4.de, +49 (89) 30 90 46 64 Schleißheimer Straße 26/MG,80333 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief Aufsichtsratsvorsitzender: Florian Kirstein
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
With ldapsearch you find the object in: dn: uid=krishnachaitanya,cn=users,cn=compat,dc=qi-cap,dc=com FR searches in (from the logging): (0) ldap: Performing search in "O=QI-CAP.COM,CN=Certificate Authority,cn=users,cn=accounts,dc=qi-cap,uid=krishnachaitanya,dc=com" with filter "(uid=krishnachaitanya)", scope "sub" You see the difference? Mit freundlichen Grüßen, -- [*] sys4 AG https://sys4.de, +49 (89) 30 90 46 64 Schleißheimer Straße 26/MG,80333 München Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief Aufsichtsratsvorsitzender: Florian Kirstein
Thanks very much Michael for your help and after making those changes, I was able to see an Accept message from FreeRadius. However, when trying to authenticate wireless using Freeradius I can see something like below. Please suggest!! ============================================== Listening on auth address * port 1812 bound to server default Listening on acct address * port 1813 bound to server default Listening on auth address :: port 1812 bound to server default Listening on acct address :: port 1813 bound to server default Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel Listening on proxy address * port 34082 Listening on proxy address :: port 42473 Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.136 port 37235 proto udp Ready to process requests Thanks Krishna On Wed, 13 Jul 2022 at 17:03, Michael Schwartzkopff <ms@sys4.de> wrote:
On 13.07.22 12:59, Krishna Chaitanya wrote:
Michael, The manual search is giving expected results but not sure why I am seeing 2 search results. Please find the below radtest results along with the manual ldap search report.
================================================================ [admin@freeradius raddb]$ ldapsearch -x uid=*krishnachaitanya* # extended LDIF # # LDAPv3 # base <dc=qi-cap,dc=com> (default) with scope subtree # filter: uid=krishnachaitanya # requesting: ALL #
# krishnachaitanya, users, compat, qi-cap.com dn: uid=krishnachaitanya,cn=users,cn=compat,dc=qi-cap,dc=com objectClass: posixAccount objectClass: ipaOverrideTarget objectClass: top gecos: Krishna Ala cn: Krishna Ala uidNumber: 1283800005 gidNumber: 1283800005 loginShell: /bin/sh homeDirectory: /home/krishnachaitanya ipaAnchorUUID:: OklQQTpxaS1jYXAuY29tOmY1N2IxYTcyLWZlYjAtMTFlYy04MWYxLTA4MDAyNz M2ZWMzOQ== uid: krishnachaitanya
# krishnachaitanya, users, accounts, qi-cap.com dn: uid=krishnachaitanya,cn=users,cn=accounts,dc=qi-cap,dc=com givenName: Krishna sn: Ala uid: krishnachaitanya cn: Krishna Ala displayName: Krishna Ala initials: KA gecos: Krishna Ala objectClass: top objectClass: person objectClass: organizationalperson objectClass: inetorgperson objectClass: inetuser objectClass: posixaccount objectClass: krbprincipalaux objectClass: krbticketpolicyaux objectClass: ipaobject objectClass: ipasshuser objectClass: ipaSshGroupOfPubKeys objectClass: mepOriginEntry objectClass: ipantuserattrs loginShell: /bin/sh homeDirectory: /home/krishnachaitanya uidNumber: 1283800005 gidNumber: 1283800005 ipaNTSecurityIdentifier: S-1-5-21-2716401607-2924185208-1841578509-1005
# search result search: 2 result: 0 Success
# numResponses: 3 # numEntries: 2
===============================================================================================
[root@freeradius admin]# radiusd -X FreeRADIUS Version 3.0.21 Copyright (C) 1999-2019 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 For more information about these matters, see the file named COPYRIGHT Starting - reading configuration files ... including dictionary file /usr/share/freeradius/dictionary including dictionary file /usr/share/freeradius/dictionary.dhcp including dictionary file /usr/share/freeradius/dictionary.vqp including dictionary file /etc/raddb/dictionary including configuration file /etc/raddb/radiusd.conf including configuration file /etc/raddb/proxy.conf including configuration file /etc/raddb/clients.conf including files in directory /etc/raddb/mods-enabled/ including configuration file /etc/raddb/mods-enabled/always including configuration file /etc/raddb/mods-enabled/attr_filter including configuration file /etc/raddb/mods-enabled/cache_eap including configuration file /etc/raddb/mods-enabled/chap including configuration file /etc/raddb/mods-enabled/date including configuration file /etc/raddb/mods-enabled/detail including configuration file /etc/raddb/mods-enabled/detail.log including configuration file /etc/raddb/mods-enabled/digest including configuration file /etc/raddb/mods-enabled/dynamic_clients including configuration file /etc/raddb/mods-enabled/eap including configuration file /etc/raddb/mods-enabled/echo including configuration file /etc/raddb/mods-enabled/exec including configuration file /etc/raddb/mods-enabled/expiration including configuration file /etc/raddb/mods-enabled/expr including configuration file /etc/raddb/mods-enabled/files including configuration file /etc/raddb/mods-enabled/linelog including configuration file /etc/raddb/mods-enabled/logintime including configuration file /etc/raddb/mods-enabled/mschap including configuration file /etc/raddb/mods-enabled/ntlm_auth including configuration file /etc/raddb/mods-enabled/pap including configuration file /etc/raddb/mods-enabled/passwd including configuration file /etc/raddb/mods-enabled/preprocess including configuration file /etc/raddb/mods-enabled/radutmp including configuration file /etc/raddb/mods-enabled/realm including configuration file /etc/raddb/mods-enabled/replicate including configuration file /etc/raddb/mods-enabled/soh including configuration file /etc/raddb/mods-enabled/sradutmp including configuration file /etc/raddb/mods-enabled/unix including configuration file /etc/raddb/mods-enabled/unpack including configuration file /etc/raddb/mods-enabled/utf8 including configuration file /etc/raddb/mods-enabled/ldap including files in directory /etc/raddb/policy.d/ including configuration file /etc/raddb/policy.d/accounting including configuration file /etc/raddb/policy.d/canonicalization including configuration file /etc/raddb/policy.d/control including configuration file /etc/raddb/policy.d/cui including configuration file /etc/raddb/policy.d/debug including configuration file /etc/raddb/policy.d/dhcp including configuration file /etc/raddb/policy.d/eap including configuration file /etc/raddb/policy.d/filter including configuration file /etc/raddb/policy.d/operator-name including configuration file /etc/raddb/policy.d/rfc7542 including files in directory /etc/raddb/sites-enabled/ including configuration file /etc/raddb/sites-enabled/default including configuration file /etc/raddb/sites-enabled/inner-tunnel main { security { user = "radiusd" group = "radiusd" allow_core_dumps = no } name = "radiusd" prefix = "/usr" localstatedir = "/var" logdir = "/var/log/radius" run_dir = "/var/run/radiusd" } main { name = "radiusd" prefix = "/usr" localstatedir = "/var" sbindir = "/usr/sbin" logdir = "/var/log/radius" run_dir = "/var/run/radiusd" libdir = "/usr/lib64/freeradius" radacctdir = "/var/log/radius/radacct" hostname_lookups = no max_request_time = 30 cleanup_delay = 5 max_requests = 16384 pidfile = "/var/run/radiusd/radiusd.pid" checkrad = "/usr/sbin/checkrad" debug_level = 0 proxy_requests = yes log { stripped_names = no auth = no auth_badpass = no auth_goodpass = no colourise = yes msg_denied = "You are already logged in - access denied" } resources { } security { max_attributes = 200 reject_delay = 1.000000 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 = <<< secret >>> response_window = 20.000000 response_timeouts = 1 max_outstanding = 65536 zombie_period = 40 status_check = "status-server" ping_interval = 30 check_interval = 30 check_timeout = 4 num_answers_to_alive = 3 revive_interval = 120 limit { max_connections = 16 max_requests = 0 lifetime = 0 idle_timeout = 0 } coa { 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 = 122.1.5.84 require_message_authenticator = no secret = <<< secret >>> nas_type = "other" proto = "*" limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } client localhost_ipv6 { ipv6addr = ::1 require_message_authenticator = no secret = <<< secret >>> limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } Debugger not attached # Creating Auth-Type = mschap # Creating Auth-Type = digest # Creating Auth-Type = eap # Creating Auth-Type = PAP # Creating Auth-Type = CHAP # Creating Auth-Type = MS-CHAP # Creating Auth-Type = LDAP radiusd: #### Instantiating modules #### modules { # Loaded module rlm_always # Loading module "reject" from file /etc/raddb/mods-enabled/always always reject { rcode = "reject" simulcount = 0 mpp = no } # Loading module "fail" from file /etc/raddb/mods-enabled/always always fail { rcode = "fail" simulcount = 0 mpp = no } # Loading module "ok" from file /etc/raddb/mods-enabled/always always ok { rcode = "ok" simulcount = 0 mpp = no } # Loading module "handled" from file /etc/raddb/mods-enabled/always always handled { rcode = "handled" simulcount = 0 mpp = no } # Loading module "invalid" from file /etc/raddb/mods-enabled/always always invalid { rcode = "invalid" simulcount = 0 mpp = no } # Loading module "userlock" from file /etc/raddb/mods-enabled/always always userlock { rcode = "userlock" simulcount = 0 mpp = no } # Loading module "notfound" from file /etc/raddb/mods-enabled/always always notfound { rcode = "notfound" simulcount = 0 mpp = no } # Loading module "noop" from file /etc/raddb/mods-enabled/always always noop { rcode = "noop" simulcount = 0 mpp = no } # Loading module "updated" from file /etc/raddb/mods-enabled/always always updated { rcode = "updated" simulcount = 0 mpp = no } # Loaded module rlm_attr_filter # Loading module "attr_filter.post-proxy" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.post-proxy { filename = "/etc/raddb/mods-config/attr_filter/post-proxy" key = "%{Realm}" relaxed = no } # Loading module "attr_filter.pre-proxy" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.pre-proxy { filename = "/etc/raddb/mods-config/attr_filter/pre-proxy" key = "%{Realm}" relaxed = no } # Loading module "attr_filter.access_reject" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.access_reject { filename = "/etc/raddb/mods-config/attr_filter/access_reject" key = "%{User-Name}" relaxed = no } # Loading module "attr_filter.access_challenge" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.access_challenge { filename = "/etc/raddb/mods-config/attr_filter/access_challenge" key = "%{User-Name}" relaxed = no } # Loading module "attr_filter.accounting_response" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.accounting_response { filename = "/etc/raddb/mods-config/attr_filter/accounting_response" key = "%{User-Name}" relaxed = no } # Loaded module rlm_cache # Loading module "cache_eap" from file /etc/raddb/mods-enabled/cache_eap cache cache_eap { driver = "rlm_cache_rbtree" key = "%{%{control:State}:-%{%{reply:State}:-%{State}}}" ttl = 15 max_entries = 0 epoch = 0 add_stats = no } # Loaded module rlm_chap # Loading module "chap" from file /etc/raddb/mods-enabled/chap # Loaded module rlm_date # Loading module "date" from file /etc/raddb/mods-enabled/date date { format = "%b %e %Y %H:%M:%S %Z" utc = no } # Loading module "wispr2date" from file /etc/raddb/mods-enabled/date date wispr2date { format = "%Y-%m-%dT%H:%M:%S" utc = no } # Loaded module rlm_detail # Loading module "detail" from file /etc/raddb/mods-enabled/detail detail { filename =
"/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d"
header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "auth_log" from file /etc/raddb/mods-enabled/detail.log detail auth_log { filename =
"/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d"
header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "reply_log" from file /etc/raddb/mods-enabled/detail.log detail reply_log { filename =
"/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/reply-detail-%Y%m%d"
header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "pre_proxy_log" from file /etc/raddb/mods-enabled/detail.log detail pre_proxy_log { filename =
"/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y%m%d"
header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "post_proxy_log" from file /etc/raddb/mods-enabled/detail.log detail post_proxy_log { filename =
"/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/post-proxy-detail-%Y%m%d"
header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loaded module rlm_digest # Loading module "digest" from file /etc/raddb/mods-enabled/digest # Loaded module rlm_dynamic_clients # Loading module "dynamic_clients" from file /etc/raddb/mods-enabled/dynamic_clients # Loaded module rlm_eap # Loading module "eap" from file /etc/raddb/mods-enabled/eap eap { default_eap_type = "md5" timer_expire = 60 ignore_unknown_eap_types = no cisco_accounting_username_bug = no max_sessions = 16384 } # Loaded module rlm_exec # Loading module "echo" from file /etc/raddb/mods-enabled/echo exec echo { wait = yes program = "/bin/echo %{User-Name}" input_pairs = "request" output_pairs = "reply" shell_escape = yes } # Loading module "exec" from file /etc/raddb/mods-enabled/exec exec { wait = no input_pairs = "request" shell_escape = yes timeout = 10 } # Loaded module rlm_expiration # Loading module "expiration" from file /etc/raddb/mods-enabled/expiration # Loaded module rlm_expr # Loading module "expr" from file /etc/raddb/mods-enabled/expr expr { safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /äéöüàâæçèéêëîïôœùûüaÿÄÉÖÜßÀÂÆÇÈÉÊËÎÏÔŒÙÛÜŸ" } # Loaded module rlm_files # Loading module "files" from file /etc/raddb/mods-enabled/files files { filename = "/etc/raddb/mods-config/files/authorize" acctusersfile = "/etc/raddb/mods-config/files/accounting" preproxy_usersfile = "/etc/raddb/mods-config/files/pre-proxy" } # Loaded module rlm_linelog # Loading module "linelog" from file /etc/raddb/mods-enabled/linelog linelog { filename = "/var/log/radius/linelog" escape_filenames = no syslog_severity = "info" permissions = 384 format = "This is a log message for %{User-Name}" reference = "messages.%{%{reply:Packet-Type}:-default}" } # Loading module "log_accounting" from file /etc/raddb/mods-enabled/linelog linelog log_accounting { filename = "/var/log/radius/linelog-accounting" escape_filenames = no syslog_severity = "info" permissions = 384 format = "" reference = "Accounting-Request.%{%{Acct-Status-Type}:-unknown}" } # Loaded module rlm_logintime # Loading module "logintime" from file /etc/raddb/mods-enabled/logintime logintime { minimum_timeout = 60 } # Loaded module rlm_mschap # Loading module "mschap" from file /etc/raddb/mods-enabled/mschap mschap { use_mppe = yes require_encryption = no require_strong = no with_ntdomain_hack = yes passchange { } allow_retry = yes winbind_retry_with_normalised_username = no } # Loading module "ntlm_auth" from file /etc/raddb/mods-enabled/ntlm_auth exec ntlm_auth { wait = yes program = "/path/to/ntlm_auth --request-nt-key --domain=MYDOMAIN --username=%{mschap:User-Name} --password=%{User-Password}" shell_escape = yes } # Loaded module rlm_pap # Loading module "pap" from file /etc/raddb/mods-enabled/pap pap { normalise = yes } # Loaded module rlm_passwd # Loading module "etc_passwd" from file /etc/raddb/mods-enabled/passwd passwd etc_passwd { filename = "/etc/passwd" format = "*User-Name:Crypt-Password:" delimiter = ":" ignore_nislike = no ignore_empty = yes allow_multiple_keys = no hash_size = 100 } # Loaded module rlm_preprocess # Loading module "preprocess" from file /etc/raddb/mods-enabled/preprocess preprocess { huntgroups = "/etc/raddb/mods-config/preprocess/huntgroups" hints = "/etc/raddb/mods-config/preprocess/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 } # Loaded module rlm_radutmp # Loading module "radutmp" from file /etc/raddb/mods-enabled/radutmp radutmp { filename = "/var/log/radius/radutmp" username = "%{User-Name}" case_sensitive = yes check_with_nas = yes permissions = 384 caller_id = yes } # Loaded module rlm_realm # Loading module "IPASS" from file /etc/raddb/mods-enabled/realm realm IPASS { format = "prefix" delimiter = "/" ignore_default = no ignore_null = no } # Loading module "suffix" from file /etc/raddb/mods-enabled/realm realm suffix { format = "suffix" delimiter = "@" ignore_default = no ignore_null = no } # Loading module "bangpath" from file /etc/raddb/mods-enabled/realm realm bangpath { format = "prefix" delimiter = "!" ignore_default = no ignore_null = no } # Loading module "realmpercent" from file /etc/raddb/mods-enabled/realm realm realmpercent { format = "suffix" delimiter = "%" ignore_default = no ignore_null = no } # Loading module "ntdomain" from file /etc/raddb/mods-enabled/realm realm ntdomain { format = "prefix" delimiter = "\\" ignore_default = no ignore_null = no } # Loaded module rlm_replicate # Loading module "replicate" from file /etc/raddb/mods-enabled/replicate # Loaded module rlm_soh # Loading module "soh" from file /etc/raddb/mods-enabled/soh soh { dhcp = yes } # Loading module "sradutmp" from file /etc/raddb/mods-enabled/sradutmp radutmp sradutmp { filename = "/var/log/radius/sradutmp" username = "%{User-Name}" case_sensitive = yes check_with_nas = yes permissions = 420 caller_id = no } # Loaded module rlm_unix # Loading module "unix" from file /etc/raddb/mods-enabled/unix unix { radwtmp = "/var/log/radius/radwtmp" } Creating attribute Unix-Group # Loaded module rlm_unpack # Loading module "unpack" from file /etc/raddb/mods-enabled/unpack # Loaded module rlm_utf8 # Loading module "utf8" from file /etc/raddb/mods-enabled/utf8 # Loaded module rlm_ldap # Loading module "ldap" from file /etc/raddb/mods-enabled/ldap ldap { server = "122.1.5.84" sasl { } user_dn = "LDAP-UserDn" user { scope = "sub" access_positive = yes sasl { } } group { filter = "(objectClass=posixGroup)" scope = "sub" name_attribute = "cn" membership_attribute = "memberOf" cacheable_name = no cacheable_dn = no allow_dangling_group_ref = no } client { filter = "(objectClass=radiusClient)" scope = "sub" base_dn = "O=QI-CAP.COM,CN=Certificate Authority,cn=users,cn=accounts,dc=qi-cap,uid=krishnachaitanya,dc=com" } profile { } options { ldap_debug = 40 chase_referrals = yes rebind = yes net_timeout = 1 res_timeout = 10 srv_timelimit = 3 idle = 60 probes = 3 interval = 3 } tls { start_tls = no } } Creating attribute LDAP-Group instantiate { } # Instantiating module "reject" from file /etc/raddb/mods-enabled/always # Instantiating module "fail" from file /etc/raddb/mods-enabled/always # Instantiating module "ok" from file /etc/raddb/mods-enabled/always # Instantiating module "handled" from file /etc/raddb/mods-enabled/always # Instantiating module "invalid" from file /etc/raddb/mods-enabled/always # Instantiating module "userlock" from file /etc/raddb/mods-enabled/always # Instantiating module "notfound" from file /etc/raddb/mods-enabled/always # Instantiating module "noop" from file /etc/raddb/mods-enabled/always # Instantiating module "updated" from file /etc/raddb/mods-enabled/always # Instantiating module "attr_filter.post-proxy" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/post-proxy # Instantiating module "attr_filter.pre-proxy" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/pre-proxy # Instantiating module "attr_filter.access_reject" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/access_reject # Instantiating module "attr_filter.access_challenge" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/access_challenge # Instantiating module "attr_filter.accounting_response" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/accounting_response # Instantiating module "cache_eap" from file /etc/raddb/mods-enabled/cache_eap rlm_cache (cache_eap): Driver rlm_cache_rbtree (module rlm_cache_rbtree) loaded and linked # Instantiating module "detail" from file /etc/raddb/mods-enabled/detail # Instantiating module "auth_log" from file /etc/raddb/mods-enabled/detail.log rlm_detail (auth_log): 'User-Password' suppressed, will not appear in detail output # Instantiating module "reply_log" from file /etc/raddb/mods-enabled/detail.log # Instantiating module "pre_proxy_log" from file /etc/raddb/mods-enabled/detail.log # Instantiating module "post_proxy_log" from file /etc/raddb/mods-enabled/detail.log # Instantiating module "eap" from file /etc/raddb/mods-enabled/eap # Linked to sub-module rlm_eap_md5 # Linked to sub-module rlm_eap_leap # Linked to sub-module rlm_eap_gtc gtc { challenge = "Password: " auth_type = "PAP" } # Linked to sub-module rlm_eap_tls tls { tls = "tls-common" } tls-config tls-common { verify_depth = 0 ca_path = "/etc/raddb/certs" pem_file_type = yes private_key_file = "/etc/raddb/certs/server.pem" certificate_file = "/etc/raddb/certs/server.pem" ca_file = "/etc/raddb/certs/ca.pem" private_key_password = <<< secret >>> dh_file = "/etc/raddb/certs/dh" fragment_size = 1024 include_length = yes auto_chain = yes check_crl = no check_all_crl = no ca_path_reload_interval = 0 cipher_list = "PROFILE=SYSTEM" cipher_server_preference = no reject_unknown_intermediate_ca = no ecdh_curve = "prime256v1" disable_tlsv1 = yes disable_tlsv1_1 = yes tls_max_version = "1.2" tls_min_version = "1.2" cache { enable = no lifetime = 24 max_entries = 255 } verify { skip_if_ocsp_ok = no } ocsp { enable = no override_cert_url = yes url = "http://127.0.0.1/ocsp/" use_nonce = yes timeout = 0 softfail = no } } tls: Please use 'tls_min_version' and 'tls_max_version' instead of 'disable_tlsv1' tls: Please use 'tls_min_version' and 'tls_max_version' instead of 'disable_tlsv1_1' tls: Setting DH parameters from /etc/raddb/certs/dh - this is no longer necessary. tls: You should comment out the 'dh_file' configuration item. # Linked to sub-module rlm_eap_ttls ttls { tls = "tls-common" default_eap_type = "md5" copy_request_to_tunnel = no use_tunneled_reply = no virtual_server = "inner-tunnel" include_length = yes require_client_cert = no } tls: Using cached TLS configuration from previous invocation # Linked to sub-module rlm_eap_peap peap { tls = "tls-common" default_eap_type = "mschapv2" copy_request_to_tunnel = no use_tunneled_reply = no proxy_tunneled_request_as_eap = yes virtual_server = "inner-tunnel" soh = no require_client_cert = no } tls: Using cached TLS configuration from previous invocation # Linked to sub-module rlm_eap_mschapv2 mschapv2 { with_ntdomain_hack = no send_error = no } # Instantiating module "expiration" from file /etc/raddb/mods-enabled/expiration # Instantiating module "files" from file /etc/raddb/mods-enabled/files reading pairlist file /etc/raddb/mods-config/files/authorize reading pairlist file /etc/raddb/mods-config/files/accounting reading pairlist file /etc/raddb/mods-config/files/pre-proxy # Instantiating module "linelog" from file /etc/raddb/mods-enabled/linelog # Instantiating module "log_accounting" from file /etc/raddb/mods-enabled/linelog # Instantiating module "logintime" from file /etc/raddb/mods-enabled/logintime # Instantiating module "mschap" from file /etc/raddb/mods-enabled/mschap rlm_mschap (mschap): using internal authentication # Instantiating module "pap" from file /etc/raddb/mods-enabled/pap # Instantiating module "etc_passwd" from file /etc/raddb/mods-enabled/passwd rlm_passwd: nfields: 3 keyfield 0(User-Name) listable: no # Instantiating module "preprocess" from file /etc/raddb/mods-enabled/preprocess reading pairlist file /etc/raddb/mods-config/preprocess/huntgroups reading pairlist file /etc/raddb/mods-config/preprocess/hints # Instantiating module "IPASS" from file /etc/raddb/mods-enabled/realm # Instantiating module "suffix" from file /etc/raddb/mods-enabled/realm # Instantiating module "bangpath" from file /etc/raddb/mods-enabled/realm # Instantiating module "realmpercent" from file /etc/raddb/mods-enabled/realm # Instantiating module "ntdomain" from file /etc/raddb/mods-enabled/realm # Instantiating module "ldap" from file /etc/raddb/mods-enabled/ldap rlm_ldap: libldap vendor: OpenLDAP, version: 20459 accounting { reference = "%{tolower:type.%{Acct-Status-Type}}" } post-auth { reference = "." } rlm_ldap (ldap): Initialising connection pool pool { start = 5 min = 3 max = 32 spare = 10 uses = 0 lifetime = 0 cleanup_interval = 30 idle_timeout = 60 retry_delay = 30 spread = no } rlm_ldap (ldap): Opening additional connection (0), 1 of 32 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (1), 1 of 31 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (2), 1 of 30 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (3), 1 of 29 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (4), 1 of 28 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful } # modules radiusd: #### Loading Virtual Servers #### server { # from file /etc/raddb/radiusd.conf } # server server default { # from file /etc/raddb/sites-enabled/default # Loading authenticate {...} # Loading authorize {...} Ignoring "sql" (see raddb/mods-available/README.rst) # Loading preacct {...} # Loading accounting {...} # Loading post-proxy {...} # Loading post-auth {...} } # server default server inner-tunnel { # from file /etc/raddb/sites-enabled/inner-tunnel # Loading authenticate {...} # Loading authorize {...} # Loading session {...} # Loading post-proxy {...} # Loading post-auth {...} # Skipping contents of 'if' as it is always 'false' -- /etc/raddb/sites-enabled/inner-tunnel:341 } # server inner-tunnel radiusd: #### Opening IP addresses and Ports #### listen { type = "auth" ipaddr = * port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "acct" ipaddr = * port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "auth" ipv6addr = :: port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "acct" ipv6addr = :: port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "auth" ipaddr = 127.0.0.1 port = 18120 } Listening on auth address * port 1812 bound to server default Listening on acct address * port 1813 bound to server default Listening on auth address :: port 1812 bound to server default Listening on acct address :: port 1813 bound to server default Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel Listening on proxy address * port 43356 Listening on proxy address :: port 50675 Ready to process requests (0) Received Access-Request Id 11 from 122.1.5.84:43809 to 122.1.5.84:1812 length 86 (0) User-Name = "krishnachaitanya" (0) User-Password = "Freeip@1234" (0) NAS-IP-Address = 122.1.5.84 (0) NAS-Port = 1812 (0) Message-Authenticator = 0x9162e9e3154076ccc69ddab02d33be4e (0) # Executing section authorize from file /etc/raddb/sites-enabled/default (0) authorize { (0) policy filter_username { (0) if (&User-Name) { (0) if (&User-Name) -> TRUE (0) if (&User-Name) { (0) if (&User-Name =~ / /) { (0) if (&User-Name =~ / /) -> FALSE (0) if (&User-Name =~ /@[^@]*@/ ) { (0) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (0) if (&User-Name =~ /\.\./ ) { (0) if (&User-Name =~ /\.\./ ) -> FALSE (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (0) if (&User-Name =~ /\.$/) { (0) if (&User-Name =~ /\.$/) -> FALSE (0) if (&User-Name =~ /@\./) { (0) if (&User-Name =~ /@\./) -> FALSE (0) } # if (&User-Name) = notfound (0) } # policy filter_username = notfound (0) [preprocess] = ok (0) [chap] = noop (0) [mschap] = noop (0) [digest] = noop (0) suffix: Checking for suffix after "@" (0) suffix: No '@' in User-Name = "krishnachaitanya", looking up realm NULL (0) suffix: No such realm "NULL" (0) [suffix] = noop (0) eap: No EAP-Message, not doing EAP (0) [eap] = noop (0) [files] = noop rlm_ldap (ldap): Reserved connection (0) (0) ldap: EXPAND (uid=%{%{Stripped-User-Name}:-%{User-Name}}) (0) ldap: --> (uid=krishnachaitanya) (0) ldap: Performing search in "O=QI-CAP.COM,CN=Certificate Authority,cn=users,cn=accounts,dc=qi-cap,uid=krishnachaitanya,dc=com" with filter "(uid=krishnachaitanya)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results rlm_ldap (ldap): Released connection (0) Need 5 more connections to reach 10 spares rlm_ldap (ldap): Opening additional connection (5), 1 of 27 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful (0) [ldap] = notfound (0) if ((ok || updated) && User-Password) { (0) if ((ok || updated) && User-Password) -> FALSE (0) [expiration] = noop (0) [logintime] = noop (0) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type (0) pap: WARNING: Authentication will fail unless a "known good" password is available (0) [pap] = noop (0) } # authorize = ok (0) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type = Reject (0) Failed to authenticate the user (0) Using Post-Auth-Type Reject (0) # Executing group from file /etc/raddb/sites-enabled/default (0) Post-Auth-Type REJECT { (0) attr_filter.access_reject: EXPAND %{User-Name} (0) attr_filter.access_reject: --> krishnachaitanya (0) attr_filter.access_reject: Matched entry DEFAULT at line 11 (0) [attr_filter.access_reject] = updated (0) [eap] = noop (0) policy remove_reply_message_if_eap { (0) if (&reply:EAP-Message && &reply:Reply-Message) { (0) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE (0) else { (0) [noop] = noop (0) } # else = noop (0) } # policy remove_reply_message_if_eap = noop (0) } # Post-Auth-Type REJECT = updated (0) Delaying response for 1.000000 seconds Waking up in 0.1 seconds. Waking up in 0.8 seconds. (0) Sending delayed response (0) Sent Access-Reject Id 11 from 122.1.5.84:1812 to 122.1.5.84:43809 length 20 Waking up in 3.9 seconds. (0) Cleaning up request packet ID 11 with timestamp +10 Ready to process requests
============================================================================
*Krishna Chaitanya Ala* *Network and Operations Engineer*
*QI Cap Markets LLP* *Bangalore,Karnataka* *Slack : krishna.chaitanya@qi-cap.com <krishna.chaitanya@qi-cap.com>*
On Wed, 13 Jul 2022 at 15:25, Michael Schwartzkopff via Freeradius-Users
<
freeradius-users@lists.freeradius.org> wrote:
On 13.07.22 11:52, Krishna Chaitanya wrote:
Matthew, Not really,Somehow, I missed reading all of the debug report. I am very new to Linux and having a hard time interpreting all of the Debug report. However, After going through the errors:
1. I can say that the username is not being used twice.Even, created another user profile with username "krishnachaitanya" and getting the same error message when running the radtest. 2. In the next test run, modified "base_dn" details as 'O=QI-CAP.COM,CN=Certificate Authority' and the test resulted in the below error.After reviewing the highlighted errors, finding it confused to understand and not really sure the fix for these errors.As far as I know, PAP can read only clear text passwords and in mycase the passwords are not encrypted when running the radtest command as "radtest krishnachaitanya *Freeip@1234 *122.1.5.84 1812 testing123" and not sure why am seeing PAP password errors. 3. and I am not sure why am seeing the messages "(0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results" when "rlm_ldap bind is successful". Is there any relation between them?
*Please help!*
[Ready to process requests (0) Received Access-Request Id 252 from 122.1.5.84:55576 to 122.1.5.84:1812 length 86 (0) User-Name = "krishnachaitanya" (0) User-Password = "Freeip@1234" (0) NAS-IP-Address = 122.1.5.84 (0) NAS-Port = 1812 (0) Message-Authenticator = 0x7d7802787a4d84809dbcd42a46873fe6 (0) # Executing section authorize from file /etc/raddb/sites-enabled/default (0) authorize { (0) policy filter_username { (0) if (&User-Name) { (0) if (&User-Name) -> TRUE (0) if (&User-Name) { (0) if (&User-Name =~ / /) { (0) if (&User-Name =~ / /) -> FALSE (0) if (&User-Name =~ /@[^@]*@/ ) { (0) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (0) if (&User-Name =~ /\.\./ ) { (0) if (&User-Name =~ /\.\./ ) -> FALSE (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (0) if (&User-Name =~ /\.$/) { (0) if (&User-Name =~ /\.$/) -> FALSE (0) if (&User-Name =~ /@\./) { (0) if (&User-Name =~ /@\./) -> FALSE (0) } # if (&User-Name) = notfound (0) } # policy filter_username = notfound (0) [preprocess] = ok (0) [chap] = noop (0) [mschap] = noop (0) [digest] = noop (0) suffix: Checking for suffix after "@" (0) suffix: No '@' in User-Name = "krishnachaitanya", looking up realm NULL (0) suffix: No such realm "NULL" (0) [suffix] = noop (0) eap: No EAP-Message, not doing EAP (0) [eap] = noop (0) [files] = noop rlm_ldap (ldap): Reserved connection (0) (0) ldap: EXPAND (uid=%{%{Stripped-User-Name}:-%{User-Name}}) (0) ldap: --> (uid=krishnachaitanya) (0) ldap: Performing search in "O=QI-CAP.COM,CN=Certificate Authority" with filter "(uid=krishnachaitanya)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results rlm_ldap (ldap): Released connection (0) Need 5 more connections to reach 10 spares rlm_ldap (ldap): Opening additional connection (5), 1 of 27 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful (0) [ldap] = notfound (0) if ((ok || updated) && User-Password) { (0) if ((ok || updated) && User-Password) -> FALSE (0) [expiration] = noop (0) [logintime] = noop (0) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type (0) pap: WARNING: Authentication will fail unless a "known good" password is available (0) [pap] = noop (0) } # authorize = ok (0) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type = Reject (0) Failed to authenticate the user (0) Using Post-Auth-Type Reject (0) # Executing group from file /etc/raddb/sites-enabled/default (0) Post-Auth-Type REJECT { (0) attr_filter.access_reject: EXPAND %{User-Name} (0) attr_filter.access_reject: --> krishnachaitanya (0) attr_filter.access_reject: Matched entry DEFAULT at line 11 (0) [attr_filter.access_reject] = updated (0) [eap] = noop (0) policy remove_reply_message_if_eap { (0) if (&reply:EAP-Message && &reply:Reply-Message) { (0) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE (0) else { (0) [noop] = noop (0) } # else = noop (0) } # policy remove_reply_message_if_eap = noop (0) } # Post-Auth-Type REJECT = updated (0) Delaying response for 1.000000 seconds Waking up in 0.2 seconds. Waking up in 0.7 seconds. (0) Sending delayed response (0) Sent Access-Reject Id 252 from 122.1.5.84:1812 to 122.1.5.84:55576 length 20 Waking up in 3.9 seconds. (0) Cleaning up request packet ID 252 with timestamp +5 Ready to process requests
*Krishna Chaitanya Ala* *Network and Operations Engineer*
On Fri, 8 Jul 2022 at 16:27, Matthew Newton <mcn@freeradius.org> wrote:
On 08/07/2022 11:45, Krishna Chaitanya wrote:
# search result search: 2 result: 0 Success
# numResponses: 3 # numEntries: 2 *(0) ldap: ERROR: Ambiguous search result, returned 2 unsorted entries (should return 1 or 0). Enable sorting, or specify a more restrictive base_dn, filter or scope(0) ldap: ERROR: The following entries were returned:(0) ldap: ERROR: uid=admin,cn=users,cn=compat,dc=qi-cap,dc=com(0) ldap: ERROR: uid=admin,cn=users,cn=accounts,dc=qi-cap,dc=com* rlm_ldap (ldap): Released connection (0) Need 5 more connections to reach 10 spares Did you read the debug output?
You have two users with the same uid. FreeRADIUS won't have any idea which one you want.
So you need to either not use the same username twice, or configure FreeRADIUS with a more restrictive base DN so that it only finds one of them.
-- Matthew - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
(0) ldap: Performing search in "O=QI-CAP.COM,CN=Certificate Authority" with filter "(uid=krishnachaitanya)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results
The user is not found in the LDAP. Do you use uid? oder cn? Wrong part of the tree? Whif is the LDIF of your user? Can you do a manual ldapsearch for the user?
Mit freundlichen Grüßen,
--
[*] sys4 AG
https://sys4.de, +49 (89) 30 90 46 64 Schleißheimer Straße 26/MG,80333 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief Aufsichtsratsvorsitzender: Florian Kirstein
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
With ldapsearch you find the object in:
dn: uid=krishnachaitanya,cn=users,cn=compat,dc=qi-cap,dc=com
FR searches in (from the logging):
(0) ldap: Performing search in "O=QI-CAP.COM,CN=Certificate Authority,cn=users,cn=accounts,dc=qi-cap,uid=krishnachaitanya,dc=com" with filter "(uid=krishnachaitanya)", scope "sub"
You see the difference?
Mit freundlichen Grüßen,
--
[*] sys4 AG
https://sys4.de, +49 (89) 30 90 46 64 Schleißheimer Straße 26/MG,80333 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief Aufsichtsratsvorsitzender: Florian Kirstein
What is unclear about the log message: Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.136 Muchael 14.07.2022 08:47:56 Krishna Chaitanya <krishna.chaitanya@qi-cap.com>:
Thanks very much Michael for your help and after making those changes, I was able to see an Accept message from FreeRadius. However, when trying to authenticate wireless using Freeradius I can see something like below. Please suggest!! ============================================== Listening on auth address * port 1812 bound to server default Listening on acct address * port 1813 bound to server default Listening on auth address :: port 1812 bound to server default Listening on acct address :: port 1813 bound to server default Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel Listening on proxy address * port 34082 Listening on proxy address :: port 42473 Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.136 port 37235 proto udp Ready to process requests
Thanks Krishna
* *
On Wed, 13 Jul 2022 at 17:03, Michael Schwartzkopff <ms@sys4.de> wrote:
On 13.07.22 12:59, Krishna Chaitanya wrote:
Michael, The manual search is giving expected results but not sure why I am seeing 2 search results. Please find the below radtest results along with the manual ldap search report.
================================================================ [admin@freeradius raddb]$ ldapsearch -x uid=*krishnachaitanya* # extended LDIF # # LDAPv3 # base <dc=qi-cap,dc=com> (default) with scope subtree # filter: uid=krishnachaitanya # requesting: ALL #
# krishnachaitanya, users, compat, qi-cap.com[http://qi-cap.com] dn: uid=krishnachaitanya,cn=users,cn=compat,dc=qi-cap,dc=com objectClass: posixAccount objectClass: ipaOverrideTarget objectClass: top gecos: Krishna Ala cn: Krishna Ala uidNumber: 1283800005 gidNumber: 1283800005 loginShell: /bin/sh homeDirectory: /home/krishnachaitanya ipaAnchorUUID:: OklQQTpxaS1jYXAuY29tOmY1N2IxYTcyLWZlYjAtMTFlYy04MWYxLTA4MDAyNz M2ZWMzOQ== uid: krishnachaitanya
# krishnachaitanya, users, accounts, qi-cap.com[http://qi-cap.com] dn: uid=krishnachaitanya,cn=users,cn=accounts,dc=qi-cap,dc=com givenName: Krishna sn: Ala uid: krishnachaitanya cn: Krishna Ala displayName: Krishna Ala initials: KA gecos: Krishna Ala objectClass: top objectClass: person objectClass: organizationalperson objectClass: inetorgperson objectClass: inetuser objectClass: posixaccount objectClass: krbprincipalaux objectClass: krbticketpolicyaux objectClass: ipaobject objectClass: ipasshuser objectClass: ipaSshGroupOfPubKeys objectClass: mepOriginEntry objectClass: ipantuserattrs loginShell: /bin/sh homeDirectory: /home/krishnachaitanya uidNumber: 1283800005 gidNumber: 1283800005 ipaNTSecurityIdentifier: S-1-5-21-2716401607-2924185208-1841578509-1005
# search result search: 2 result: 0 Success
# numResponses: 3 # numEntries: 2 =============================================================================================== [root@freeradius admin]# radiusd -X FreeRADIUS Version 3.0.21 Copyright (C) 1999-2019 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 For more information about these matters, see the file named COPYRIGHT Starting - reading configuration files ... including dictionary file /usr/share/freeradius/dictionary including dictionary file /usr/share/freeradius/dictionary.dhcp including dictionary file /usr/share/freeradius/dictionary.vqp including dictionary file /etc/raddb/dictionary including configuration file /etc/raddb/radiusd.conf including configuration file /etc/raddb/proxy.conf including configuration file /etc/raddb/clients.conf including files in directory /etc/raddb/mods-enabled/ including configuration file /etc/raddb/mods-enabled/always including configuration file /etc/raddb/mods-enabled/attr_filter including configuration file /etc/raddb/mods-enabled/cache_eap including configuration file /etc/raddb/mods-enabled/chap including configuration file /etc/raddb/mods-enabled/date including configuration file /etc/raddb/mods-enabled/detail including configuration file /etc/raddb/mods-enabled/detail.log including configuration file /etc/raddb/mods-enabled/digest including configuration file /etc/raddb/mods-enabled/dynamic_clients including configuration file /etc/raddb/mods-enabled/eap including configuration file /etc/raddb/mods-enabled/echo including configuration file /etc/raddb/mods-enabled/exec including configuration file /etc/raddb/mods-enabled/expiration including configuration file /etc/raddb/mods-enabled/expr including configuration file /etc/raddb/mods-enabled/files including configuration file /etc/raddb/mods-enabled/linelog including configuration file /etc/raddb/mods-enabled/logintime including configuration file /etc/raddb/mods-enabled/mschap including configuration file /etc/raddb/mods-enabled/ntlm_auth including configuration file /etc/raddb/mods-enabled/pap including configuration file /etc/raddb/mods-enabled/passwd including configuration file /etc/raddb/mods-enabled/preprocess including configuration file /etc/raddb/mods-enabled/radutmp including configuration file /etc/raddb/mods-enabled/realm including configuration file /etc/raddb/mods-enabled/replicate including configuration file /etc/raddb/mods-enabled/soh including configuration file /etc/raddb/mods-enabled/sradutmp including configuration file /etc/raddb/mods-enabled/unix including configuration file /etc/raddb/mods-enabled/unpack including configuration file /etc/raddb/mods-enabled/utf8 including configuration file /etc/raddb/mods-enabled/ldap including files in directory /etc/raddb/policy.d/ including configuration file /etc/raddb/policy.d/accounting including configuration file /etc/raddb/policy.d/canonicalization including configuration file /etc/raddb/policy.d/control including configuration file /etc/raddb/policy.d/cui including configuration file /etc/raddb/policy.d/debug including configuration file /etc/raddb/policy.d/dhcp including configuration file /etc/raddb/policy.d/eap including configuration file /etc/raddb/policy.d/filter including configuration file /etc/raddb/policy.d/operator-name including configuration file /etc/raddb/policy.d/rfc7542 including files in directory /etc/raddb/sites-enabled/ including configuration file /etc/raddb/sites-enabled/default including configuration file /etc/raddb/sites-enabled/inner-tunnel main { security { user = "radiusd" group = "radiusd" allow_core_dumps = no } name = "radiusd" prefix = "/usr" localstatedir = "/var" logdir = "/var/log/radius" run_dir = "/var/run/radiusd" } main { name = "radiusd" prefix = "/usr" localstatedir = "/var" sbindir = "/usr/sbin" logdir = "/var/log/radius" run_dir = "/var/run/radiusd" libdir = "/usr/lib64/freeradius" radacctdir = "/var/log/radius/radacct" hostname_lookups = no max_request_time = 30 cleanup_delay = 5 max_requests = 16384 pidfile = "/var/run/radiusd/radiusd.pid" checkrad = "/usr/sbin/checkrad" debug_level = 0 proxy_requests = yes log { stripped_names = no auth = no auth_badpass = no auth_goodpass = no colourise = yes msg_denied = "You are already logged in - access denied" } resources { } security { max_attributes = 200 reject_delay = 1.000000 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 = <<< secret >>> response_window = 20.000000 response_timeouts = 1 max_outstanding = 65536 zombie_period = 40 status_check = "status-server" ping_interval = 30 check_interval = 30 check_timeout = 4 num_answers_to_alive = 3 revive_interval = 120 limit { max_connections = 16 max_requests = 0 lifetime = 0 idle_timeout = 0 } coa { irt = 2 mrt = 16 mrc = 5 mrd = 30 } } home_server_pool my_auth_failover { type = fail-over home_server = localhost } realm example.com[http://example.com] { auth_pool = my_auth_failover } realm LOCAL { } radiusd: #### Loading Clients #### client localhost { ipaddr = 122.1.5.84 require_message_authenticator = no secret = <<< secret >>> nas_type = "other" proto = "*" limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } client localhost_ipv6 { ipv6addr = ::1 require_message_authenticator = no secret = <<< secret >>> limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } Debugger not attached # Creating Auth-Type = mschap # Creating Auth-Type = digest # Creating Auth-Type = eap # Creating Auth-Type = PAP # Creating Auth-Type = CHAP # Creating Auth-Type = MS-CHAP # Creating Auth-Type = LDAP radiusd: #### Instantiating modules #### modules { # Loaded module rlm_always # Loading module "reject" from file /etc/raddb/mods-enabled/always always reject { rcode = "reject" simulcount = 0 mpp = no } # Loading module "fail" from file /etc/raddb/mods-enabled/always always fail { rcode = "fail" simulcount = 0 mpp = no } # Loading module "ok" from file /etc/raddb/mods-enabled/always always ok { rcode = "ok" simulcount = 0 mpp = no } # Loading module "handled" from file /etc/raddb/mods-enabled/always always handled { rcode = "handled" simulcount = 0 mpp = no } # Loading module "invalid" from file /etc/raddb/mods-enabled/always always invalid { rcode = "invalid" simulcount = 0 mpp = no } # Loading module "userlock" from file /etc/raddb/mods-enabled/always always userlock { rcode = "userlock" simulcount = 0 mpp = no } # Loading module "notfound" from file /etc/raddb/mods-enabled/always always notfound { rcode = "notfound" simulcount = 0 mpp = no } # Loading module "noop" from file /etc/raddb/mods-enabled/always always noop { rcode = "noop" simulcount = 0 mpp = no } # Loading module "updated" from file /etc/raddb/mods-enabled/always always updated { rcode = "updated" simulcount = 0 mpp = no } # Loaded module rlm_attr_filter # Loading module "attr_filter.post-proxy" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.post-proxy { filename = "/etc/raddb/mods-config/attr_filter/post-proxy" key = "%{Realm}" relaxed = no } # Loading module "attr_filter.pre-proxy" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.pre-proxy { filename = "/etc/raddb/mods-config/attr_filter/pre-proxy" key = "%{Realm}" relaxed = no } # Loading module "attr_filter.access_reject" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.access_reject { filename = "/etc/raddb/mods-config/attr_filter/access_reject" key = "%{User-Name}" relaxed = no } # Loading module "attr_filter.access_challenge" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.access_challenge { filename = "/etc/raddb/mods-config/attr_filter/access_challenge" key = "%{User-Name}" relaxed = no } # Loading module "attr_filter.accounting_response" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.accounting_response { filename = "/etc/raddb/mods-config/attr_filter/accounting_response" key = "%{User-Name}" relaxed = no } # Loaded module rlm_cache # Loading module "cache_eap" from file /etc/raddb/mods-enabled/cache_eap cache cache_eap { driver = "rlm_cache_rbtree" key = "%{%{control:State}:-%{%{reply:State}:-%{State}}}" ttl = 15 max_entries = 0 epoch = 0 add_stats = no } # Loaded module rlm_chap # Loading module "chap" from file /etc/raddb/mods-enabled/chap # Loaded module rlm_date # Loading module "date" from file /etc/raddb/mods-enabled/date date { format = "%b %e %Y %H:%M:%S %Z" utc = no } # Loading module "wispr2date" from file /etc/raddb/mods-enabled/date date wispr2date { format = "%Y-%m-%dT%H:%M:%S" utc = no } # Loaded module rlm_detail # Loading module "detail" from file /etc/raddb/mods-enabled/detail detail { filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d" header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "auth_log" from file /etc/raddb/mods-enabled/detail.log detail auth_log { filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d" header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "reply_log" from file /etc/raddb/mods-enabled/detail.log detail reply_log { filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/reply-detail-%Y%m%d" header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "pre_proxy_log" from file /etc/raddb/mods-enabled/detail.log detail pre_proxy_log { filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y%m%d" header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "post_proxy_log" from file /etc/raddb/mods-enabled/detail.log detail post_proxy_log { filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/post-proxy-detail-%Y%m%d" header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loaded module rlm_digest # Loading module "digest" from file /etc/raddb/mods-enabled/digest # Loaded module rlm_dynamic_clients # Loading module "dynamic_clients" from file /etc/raddb/mods-enabled/dynamic_clients # Loaded module rlm_eap # Loading module "eap" from file /etc/raddb/mods-enabled/eap eap { default_eap_type = "md5" timer_expire = 60 ignore_unknown_eap_types = no cisco_accounting_username_bug = no max_sessions = 16384 } # Loaded module rlm_exec # Loading module "echo" from file /etc/raddb/mods-enabled/echo exec echo { wait = yes program = "/bin/echo %{User-Name}" input_pairs = "request" output_pairs = "reply" shell_escape = yes } # Loading module "exec" from file /etc/raddb/mods-enabled/exec exec { wait = no input_pairs = "request" shell_escape = yes timeout = 10 } # Loaded module rlm_expiration # Loading module "expiration" from file /etc/raddb/mods-enabled/expiration # Loaded module rlm_expr # Loading module "expr" from file /etc/raddb/mods-enabled/expr expr { safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /äéöüàâæçèéêëîïôœùûüaÿÄÉÖÜßÀÂÆÇÈÉÊËÎÏÔŒÙÛÜŸ" } # Loaded module rlm_files # Loading module "files" from file /etc/raddb/mods-enabled/files files { filename = "/etc/raddb/mods-config/files/authorize" acctusersfile = "/etc/raddb/mods-config/files/accounting" preproxy_usersfile = "/etc/raddb/mods-config/files/pre-proxy" } # Loaded module rlm_linelog # Loading module "linelog" from file /etc/raddb/mods-enabled/linelog linelog { filename = "/var/log/radius/linelog" escape_filenames = no syslog_severity = "info" permissions = 384 format = "This is a log message for %{User-Name}" reference = "messages.%{%{reply:Packet-Type}:-default}" } # Loading module "log_accounting" from file /etc/raddb/mods-enabled/linelog linelog log_accounting { filename = "/var/log/radius/linelog-accounting" escape_filenames = no syslog_severity = "info" permissions = 384 format = "" reference = "Accounting-Request.%{%{Acct-Status-Type}:-unknown}" } # Loaded module rlm_logintime # Loading module "logintime" from file /etc/raddb/mods-enabled/logintime logintime { minimum_timeout = 60 } # Loaded module rlm_mschap # Loading module "mschap" from file /etc/raddb/mods-enabled/mschap mschap { use_mppe = yes require_encryption = no require_strong = no with_ntdomain_hack = yes passchange { } allow_retry = yes winbind_retry_with_normalised_username = no } # Loading module "ntlm_auth" from file /etc/raddb/mods-enabled/ntlm_auth exec ntlm_auth { wait = yes program = "/path/to/ntlm_auth --request-nt-key --domain=MYDOMAIN --username=%{mschap:User-Name} --password=%{User-Password}" shell_escape = yes } # Loaded module rlm_pap # Loading module "pap" from file /etc/raddb/mods-enabled/pap pap { normalise = yes } # Loaded module rlm_passwd # Loading module "etc_passwd" from file /etc/raddb/mods-enabled/passwd passwd etc_passwd { filename = "/etc/passwd" format = "*User-Name:Crypt-Password:" delimiter = ":" ignore_nislike = no ignore_empty = yes allow_multiple_keys = no hash_size = 100 } # Loaded module rlm_preprocess # Loading module "preprocess" from file /etc/raddb/mods-enabled/preprocess preprocess { huntgroups = "/etc/raddb/mods-config/preprocess/huntgroups" hints = "/etc/raddb/mods-config/preprocess/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 } # Loaded module rlm_radutmp # Loading module "radutmp" from file /etc/raddb/mods-enabled/radutmp radutmp { filename = "/var/log/radius/radutmp" username = "%{User-Name}" case_sensitive = yes check_with_nas = yes permissions = 384 caller_id = yes } # Loaded module rlm_realm # Loading module "IPASS" from file /etc/raddb/mods-enabled/realm realm IPASS { format = "prefix" delimiter = "/" ignore_default = no ignore_null = no } # Loading module "suffix" from file /etc/raddb/mods-enabled/realm realm suffix { format = "suffix" delimiter = "@" ignore_default = no ignore_null = no } # Loading module "bangpath" from file /etc/raddb/mods-enabled/realm realm bangpath { format = "prefix" delimiter = "!" ignore_default = no ignore_null = no } # Loading module "realmpercent" from file /etc/raddb/mods-enabled/realm realm realmpercent { format = "suffix" delimiter = "%" ignore_default = no ignore_null = no } # Loading module "ntdomain" from file /etc/raddb/mods-enabled/realm realm ntdomain { format = "prefix" delimiter = "\\" ignore_default = no ignore_null = no } # Loaded module rlm_replicate # Loading module "replicate" from file /etc/raddb/mods-enabled/replicate # Loaded module rlm_soh # Loading module "soh" from file /etc/raddb/mods-enabled/soh soh { dhcp = yes } # Loading module "sradutmp" from file /etc/raddb/mods-enabled/sradutmp radutmp sradutmp { filename = "/var/log/radius/sradutmp" username = "%{User-Name}" case_sensitive = yes check_with_nas = yes permissions = 420 caller_id = no } # Loaded module rlm_unix # Loading module "unix" from file /etc/raddb/mods-enabled/unix unix { radwtmp = "/var/log/radius/radwtmp" } Creating attribute Unix-Group # Loaded module rlm_unpack # Loading module "unpack" from file /etc/raddb/mods-enabled/unpack # Loaded module rlm_utf8 # Loading module "utf8" from file /etc/raddb/mods-enabled/utf8 # Loaded module rlm_ldap # Loading module "ldap" from file /etc/raddb/mods-enabled/ldap ldap { server = "122.1.5.84" sasl { } user_dn = "LDAP-UserDn" user { scope = "sub" access_positive = yes sasl { } } group { filter = "(objectClass=posixGroup)" scope = "sub" name_attribute = "cn" membership_attribute = "memberOf" cacheable_name = no cacheable_dn = no allow_dangling_group_ref = no } client { filter = "(objectClass=radiusClient)" scope = "sub" base_dn = "O=QI-CAP.COM[http://QI-CAP.COM],CN=Certificate Authority,cn=users,cn=accounts,dc=qi-cap,uid=krishnachaitanya,dc=com" } profile { } options { ldap_debug = 40 chase_referrals = yes rebind = yes net_timeout = 1 res_timeout = 10 srv_timelimit = 3 idle = 60 probes = 3 interval = 3 } tls { start_tls = no } } Creating attribute LDAP-Group instantiate { } # Instantiating module "reject" from file /etc/raddb/mods-enabled/always # Instantiating module "fail" from file /etc/raddb/mods-enabled/always # Instantiating module "ok" from file /etc/raddb/mods-enabled/always # Instantiating module "handled" from file /etc/raddb/mods-enabled/always # Instantiating module "invalid" from file /etc/raddb/mods-enabled/always # Instantiating module "userlock" from file /etc/raddb/mods-enabled/always # Instantiating module "notfound" from file /etc/raddb/mods-enabled/always # Instantiating module "noop" from file /etc/raddb/mods-enabled/always # Instantiating module "updated" from file /etc/raddb/mods-enabled/always # Instantiating module "attr_filter.post-proxy" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/post-proxy # Instantiating module "attr_filter.pre-proxy" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/pre-proxy # Instantiating module "attr_filter.access_reject" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/access_reject # Instantiating module "attr_filter.access_challenge" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/access_challenge # Instantiating module "attr_filter.accounting_response" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/accounting_response # Instantiating module "cache_eap" from file /etc/raddb/mods-enabled/cache_eap rlm_cache (cache_eap): Driver rlm_cache_rbtree (module rlm_cache_rbtree) loaded and linked # Instantiating module "detail" from file /etc/raddb/mods-enabled/detail # Instantiating module "auth_log" from file /etc/raddb/mods-enabled/detail.log rlm_detail (auth_log): 'User-Password' suppressed, will not appear in detail output # Instantiating module "reply_log" from file /etc/raddb/mods-enabled/detail.log # Instantiating module "pre_proxy_log" from file /etc/raddb/mods-enabled/detail.log # Instantiating module "post_proxy_log" from file /etc/raddb/mods-enabled/detail.log # Instantiating module "eap" from file /etc/raddb/mods-enabled/eap # Linked to sub-module rlm_eap_md5 # Linked to sub-module rlm_eap_leap # Linked to sub-module rlm_eap_gtc gtc { challenge = "Password: " auth_type = "PAP" } # Linked to sub-module rlm_eap_tls tls { tls = "tls-common" } tls-config tls-common { verify_depth = 0 ca_path = "/etc/raddb/certs" pem_file_type = yes private_key_file = "/etc/raddb/certs/server.pem" certificate_file = "/etc/raddb/certs/server.pem" ca_file = "/etc/raddb/certs/ca.pem" private_key_password = <<< secret >>> dh_file = "/etc/raddb/certs/dh" fragment_size = 1024 include_length = yes auto_chain = yes check_crl = no check_all_crl = no ca_path_reload_interval = 0 cipher_list = "PROFILE=SYSTEM" cipher_server_preference = no reject_unknown_intermediate_ca = no ecdh_curve = "prime256v1" disable_tlsv1 = yes disable_tlsv1_1 = yes tls_max_version = "1.2" tls_min_version = "1.2" cache { enable = no lifetime = 24 max_entries = 255 } verify { skip_if_ocsp_ok = no } ocsp { enable = no override_cert_url = yes url = "http://127.0.0.1/ocsp/" use_nonce = yes timeout = 0 softfail = no } } tls: Please use 'tls_min_version' and 'tls_max_version' instead of 'disable_tlsv1' tls: Please use 'tls_min_version' and 'tls_max_version' instead of 'disable_tlsv1_1' tls: Setting DH parameters from /etc/raddb/certs/dh - this is no longer necessary. tls: You should comment out the 'dh_file' configuration item. # Linked to sub-module rlm_eap_ttls ttls { tls = "tls-common" default_eap_type = "md5" copy_request_to_tunnel = no use_tunneled_reply = no virtual_server = "inner-tunnel" include_length = yes require_client_cert = no } tls: Using cached TLS configuration from previous invocation # Linked to sub-module rlm_eap_peap peap { tls = "tls-common" default_eap_type = "mschapv2" copy_request_to_tunnel = no use_tunneled_reply = no proxy_tunneled_request_as_eap = yes virtual_server = "inner-tunnel" soh = no require_client_cert = no } tls: Using cached TLS configuration from previous invocation # Linked to sub-module rlm_eap_mschapv2 mschapv2 { with_ntdomain_hack = no send_error = no } # Instantiating module "expiration" from file /etc/raddb/mods-enabled/expiration # Instantiating module "files" from file /etc/raddb/mods-enabled/files reading pairlist file /etc/raddb/mods-config/files/authorize reading pairlist file /etc/raddb/mods-config/files/accounting reading pairlist file /etc/raddb/mods-config/files/pre-proxy # Instantiating module "linelog" from file /etc/raddb/mods-enabled/linelog # Instantiating module "log_accounting" from file /etc/raddb/mods-enabled/linelog # Instantiating module "logintime" from file /etc/raddb/mods-enabled/logintime # Instantiating module "mschap" from file /etc/raddb/mods-enabled/mschap rlm_mschap (mschap): using internal authentication # Instantiating module "pap" from file /etc/raddb/mods-enabled/pap # Instantiating module "etc_passwd" from file /etc/raddb/mods-enabled/passwd rlm_passwd: nfields: 3 keyfield 0(User-Name) listable: no # Instantiating module "preprocess" from file /etc/raddb/mods-enabled/preprocess reading pairlist file /etc/raddb/mods-config/preprocess/huntgroups reading pairlist file /etc/raddb/mods-config/preprocess/hints # Instantiating module "IPASS" from file /etc/raddb/mods-enabled/realm # Instantiating module "suffix" from file /etc/raddb/mods-enabled/realm # Instantiating module "bangpath" from file /etc/raddb/mods-enabled/realm # Instantiating module "realmpercent" from file /etc/raddb/mods-enabled/realm # Instantiating module "ntdomain" from file /etc/raddb/mods-enabled/realm # Instantiating module "ldap" from file /etc/raddb/mods-enabled/ldap rlm_ldap: libldap vendor: OpenLDAP, version: 20459 accounting { reference = "%{tolower:type.%{Acct-Status-Type}}" } post-auth { reference = "." } rlm_ldap (ldap): Initialising connection pool pool { start = 5 min = 3 max = 32 spare = 10 uses = 0 lifetime = 0 cleanup_interval = 30 idle_timeout = 60 retry_delay = 30 spread = no } rlm_ldap (ldap): Opening additional connection (0), 1 of 32 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389[http://122.1.5.84:389] rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (1), 1 of 31 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389[http://122.1.5.84:389] rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (2), 1 of 30 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389[http://122.1.5.84:389] rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (3), 1 of 29 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389[http://122.1.5.84:389] rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (4), 1 of 28 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389[http://122.1.5.84:389] rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful } # modules radiusd: #### Loading Virtual Servers #### server { # from file /etc/raddb/radiusd.conf } # server server default { # from file /etc/raddb/sites-enabled/default # Loading authenticate {...} # Loading authorize {...} Ignoring "sql" (see raddb/mods-available/README.rst) # Loading preacct {...} # Loading accounting {...} # Loading post-proxy {...} # Loading post-auth {...} } # server default server inner-tunnel { # from file /etc/raddb/sites-enabled/inner-tunnel # Loading authenticate {...} # Loading authorize {...} # Loading session {...} # Loading post-proxy {...} # Loading post-auth {...} # Skipping contents of 'if' as it is always 'false' -- /etc/raddb/sites-enabled/inner-tunnel:341 } # server inner-tunnel radiusd: #### Opening IP addresses and Ports #### listen { type = "auth" ipaddr = * port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "acct" ipaddr = * port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "auth" ipv6addr = :: port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "acct" ipv6addr = :: port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "auth" ipaddr = 127.0.0.1 port = 18120 } Listening on auth address * port 1812 bound to server default Listening on acct address * port 1813 bound to server default Listening on auth address :: port 1812 bound to server default Listening on acct address :: port 1813 bound to server default Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel Listening on proxy address * port 43356 Listening on proxy address :: port 50675 Ready to process requests (0) Received Access-Request Id 11 from 122.1.5.84:43809[http://122.1.5.84:43809] to 122.1.5.84:1812[http://122.1.5.84:1812] length 86 (0) User-Name = "krishnachaitanya" (0) User-Password = "Freeip@1234" (0) NAS-IP-Address = 122.1.5.84 (0) NAS-Port = 1812 (0) Message-Authenticator = 0x9162e9e3154076ccc69ddab02d33be4e (0) # Executing section authorize from file /etc/raddb/sites-enabled/default (0) authorize { (0) policy filter_username { (0) if (&User-Name) { (0) if (&User-Name) -> TRUE (0) if (&User-Name) { (0) if (&User-Name =~ / /) { (0) if (&User-Name =~ / /) -> FALSE (0) if (&User-Name =~ /@[^@]*@/ ) { (0) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (0) if (&User-Name =~ /\.\./ ) { (0) if (&User-Name =~ /\.\./ ) -> FALSE (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (0) if (&User-Name =~ /\.$/) { (0) if (&User-Name =~ /\.$/) -> FALSE (0) if (&User-Name =~ /@\./) { (0) if (&User-Name =~ /@\./) -> FALSE (0) } # if (&User-Name) = notfound (0) } # policy filter_username = notfound (0) [preprocess] = ok (0) [chap] = noop (0) [mschap] = noop (0) [digest] = noop (0) suffix: Checking for suffix after "@" (0) suffix: No '@' in User-Name = "krishnachaitanya", looking up realm NULL (0) suffix: No such realm "NULL" (0) [suffix] = noop (0) eap: No EAP-Message, not doing EAP (0) [eap] = noop (0) [files] = noop rlm_ldap (ldap): Reserved connection (0) (0) ldap: EXPAND (uid=%{%{Stripped-User-Name}:-%{User-Name}}) (0) ldap: --> (uid=krishnachaitanya) (0) ldap: Performing search in "O=QI-CAP.COM[http://QI-CAP.COM],CN=Certificate Authority,cn=users,cn=accounts,dc=qi-cap,uid=krishnachaitanya,dc=com" with filter "(uid=krishnachaitanya)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results rlm_ldap (ldap): Released connection (0) Need 5 more connections to reach 10 spares rlm_ldap (ldap): Opening additional connection (5), 1 of 27 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389[http://122.1.5.84:389] rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful (0) [ldap] = notfound (0) if ((ok || updated) && User-Password) { (0) if ((ok || updated) && User-Password) -> FALSE (0) [expiration] = noop (0) [logintime] = noop (0) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type (0) pap: WARNING: Authentication will fail unless a "known good" password is available (0) [pap] = noop (0) } # authorize = ok (0) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type = Reject (0) Failed to authenticate the user (0) Using Post-Auth-Type Reject (0) # Executing group from file /etc/raddb/sites-enabled/default (0) Post-Auth-Type REJECT { (0) attr_filter.access_reject: EXPAND %{User-Name} (0) attr_filter.access_reject: --> krishnachaitanya (0) attr_filter.access_reject: Matched entry DEFAULT at line 11 (0) [attr_filter.access_reject] = updated (0) [eap] = noop (0) policy remove_reply_message_if_eap { (0) if (&reply:EAP-Message && &reply:Reply-Message) { (0) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE (0) else { (0) [noop] = noop (0) } # else = noop (0) } # policy remove_reply_message_if_eap = noop (0) } # Post-Auth-Type REJECT = updated (0) Delaying response for 1.000000 seconds Waking up in 0.1 seconds. Waking up in 0.8 seconds. (0) Sending delayed response (0) Sent Access-Reject Id 11 from 122.1.5.84:1812[http://122.1.5.84:1812] to 122.1.5.84:43809[http://122.1.5.84:43809] length 20 Waking up in 3.9 seconds. (0) Cleaning up request packet ID 11 with timestamp +10 Ready to process requests ============================================================================
*Krishna Chaitanya Ala* *Network and Operations Engineer*
*QI Cap Markets LLP* *Bangalore,Karnataka* *Slack : krishna.chaitanya@qi-cap.com <krishna.chaitanya@qi-cap.com>*
On Wed, 13 Jul 2022 at 15:25, Michael Schwartzkopff via Freeradius-Users < freeradius-users@lists.freeradius.org> wrote:
On 13.07.22 11:52, Krishna Chaitanya wrote:
Matthew, Not really,Somehow, I missed reading all of the debug report. I am very new to Linux and having a hard time interpreting all of the Debug report. However, After going through the errors:
1. I can say that the username is not being used twice.Even, created another user profile with username "krishnachaitanya" and getting the same error message when running the radtest. 2. In the next test run, modified "base_dn" details as 'O=QI-CAP.COM[http://QI-CAP.COM],CN=Certificate Authority' and the test resulted in the below error.After reviewing the highlighted errors, finding it confused to understand and not really sure the fix for these errors.As far as I know, PAP can read only clear text passwords and in mycase the passwords are not encrypted when running the radtest command as "radtest krishnachaitanya *Freeip@1234 *122.1.5.84 1812 testing123" and not sure why am seeing PAP password errors. 3. and I am not sure why am seeing the messages "(0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results" when "rlm_ldap bind is successful". Is there any relation between them?
*Please help!*
[Ready to process requests (0) Received Access-Request Id 252 from 122.1.5.84:55576[http://122.1.5.84:55576] to 122.1.5.84:1812[http://122.1.5.84:1812] length 86 (0) User-Name = "krishnachaitanya" (0) User-Password = "Freeip@1234" (0) NAS-IP-Address = 122.1.5.84 (0) NAS-Port = 1812 (0) Message-Authenticator = 0x7d7802787a4d84809dbcd42a46873fe6 (0) # Executing section authorize from file /etc/raddb/sites-enabled/default (0) authorize { (0) policy filter_username { (0) if (&User-Name) { (0) if (&User-Name) -> TRUE (0) if (&User-Name) { (0) if (&User-Name =~ / /) { (0) if (&User-Name =~ / /) -> FALSE (0) if (&User-Name =~ /@[^@]*@/ ) { (0) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (0) if (&User-Name =~ /\.\./ ) { (0) if (&User-Name =~ /\.\./ ) -> FALSE (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (0) if (&User-Name =~ /\.$/) { (0) if (&User-Name =~ /\.$/) -> FALSE (0) if (&User-Name =~ /@\./) { (0) if (&User-Name =~ /@\./) -> FALSE (0) } # if (&User-Name) = notfound (0) } # policy filter_username = notfound (0) [preprocess] = ok (0) [chap] = noop (0) [mschap] = noop (0) [digest] = noop (0) suffix: Checking for suffix after "@" (0) suffix: No '@' in User-Name = "krishnachaitanya", looking up realm NULL (0) suffix: No such realm "NULL" (0) [suffix] = noop (0) eap: No EAP-Message, not doing EAP (0) [eap] = noop (0) [files] = noop rlm_ldap (ldap): Reserved connection (0) (0) ldap: EXPAND (uid=%{%{Stripped-User-Name}:-%{User-Name}}) (0) ldap: --> (uid=krishnachaitanya) (0) ldap: Performing search in "O=QI-CAP.COM[http://QI-CAP.COM],CN=Certificate Authority" with filter "(uid=krishnachaitanya)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results rlm_ldap (ldap): Released connection (0) Need 5 more connections to reach 10 spares rlm_ldap (ldap): Opening additional connection (5), 1 of 27 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389[http://122.1.5.84:389] rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful (0) [ldap] = notfound (0) if ((ok || updated) && User-Password) { (0) if ((ok || updated) && User-Password) -> FALSE (0) [expiration] = noop (0) [logintime] = noop (0) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type (0) pap: WARNING: Authentication will fail unless a "known good" password is available (0) [pap] = noop (0) } # authorize = ok (0) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type = Reject (0) Failed to authenticate the user (0) Using Post-Auth-Type Reject (0) # Executing group from file /etc/raddb/sites-enabled/default (0) Post-Auth-Type REJECT { (0) attr_filter.access_reject: EXPAND %{User-Name} (0) attr_filter.access_reject: --> krishnachaitanya (0) attr_filter.access_reject: Matched entry DEFAULT at line 11 (0) [attr_filter.access_reject] = updated (0) [eap] = noop (0) policy remove_reply_message_if_eap { (0) if (&reply:EAP-Message && &reply:Reply-Message) { (0) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE (0) else { (0) [noop] = noop (0) } # else = noop (0) } # policy remove_reply_message_if_eap = noop (0) } # Post-Auth-Type REJECT = updated (0) Delaying response for 1.000000 seconds Waking up in 0.2 seconds. Waking up in 0.7 seconds. (0) Sending delayed response (0) Sent Access-Reject Id 252 from 122.1.5.84:1812[http://122.1.5.84:1812] to 122.1.5.84:55576[http://122.1.5.84:55576] length 20 Waking up in 3.9 seconds. (0) Cleaning up request packet ID 252 with timestamp +5 Ready to process requests
*Krishna Chaitanya Ala* *Network and Operations Engineer*
On Fri, 8 Jul 2022 at 16:27, Matthew Newton <mcn@freeradius.org> wrote:
On 08/07/2022 11:45, Krishna Chaitanya wrote: > # search result > search: 2 > result: 0 Success > > # numResponses: 3 > # numEntries: 2 > *(0) ldap: ERROR: Ambiguous search result, returned 2 unsorted entries > (should return 1 or 0). Enable sorting, or specify a more restrictive > base_dn, filter or scope(0) ldap: ERROR: The following entries were > returned:(0) ldap: ERROR: > uid=admin,cn=users,cn=compat,dc=qi-cap,dc=com(0) ldap: ERROR: > uid=admin,cn=users,cn=accounts,dc=qi-cap,dc=com* > rlm_ldap (ldap): Released connection (0) > Need 5 more connections to reach 10 spares Did you read the debug output?
You have two users with the same uid. FreeRADIUS won't have any idea which one you want.
So you need to either not use the same username twice, or configure FreeRADIUS with a more restrictive base DN so that it only finds one of them.
-- Matthew - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
(0) ldap: Performing search in "O=QI-CAP.COM[http://QI-CAP.COM],CN=Certificate Authority" with filter "(uid=krishnachaitanya)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results
The user is not found in the LDAP. Do you use uid? oder cn? Wrong part of the tree? Whif is the LDIF of your user? Can you do a manual ldapsearch for the user?
Mit freundlichen Grüßen,
--
[*] sys4 AG
https://sys4.de, +49 (89) 30 90 46 64 Schleißheimer Straße 26/MG,80333 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief Aufsichtsratsvorsitzender: Florian Kirstein
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
With ldapsearch you find the object in:
dn: uid=krishnachaitanya,cn=users,cn=compat,dc=qi-cap,dc=com
FR searches in (from the logging):
(0) ldap: Performing search in "O=QI-CAP.COM[http://QI-CAP.COM],CN=Certificate Authority,cn=users,cn=accounts,dc=qi-cap,uid=krishnachaitanya,dc=com" with filter "(uid=krishnachaitanya)", scope "sub"
You see the difference?
Mit freundlichen Grüßen,
--
[*] sys4 AG
https://sys4.de, +49 (89) 30 90 46 64 Schleißheimer Straße 26/MG,80333 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief Aufsichtsratsvorsitzender: Florian Kirstein
My Question is like, Why is the request being Ignored? *Krishna Chaitanya Ala* *Network and Operations Engineer* *QI Cap Markets LLP* *Bangalore,Karnataka* *Slack : krishna.chaitanya@qi-cap.com <krishna.chaitanya@qi-cap.com>* On Thu, 14 Jul 2022 at 12:27, Michael Schwartzkopff <ms@sys4.de> wrote:
What is unclear about the log message:
Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.136
Muchael
14.07.2022 08:47:56 Krishna Chaitanya <krishna.chaitanya@qi-cap.com>:
Thanks very much Michael for your help and after making those changes, I was able to see an Accept message from FreeRadius. However, when trying to authenticate wireless using Freeradius I can see something like below. Please suggest!! ============================================== Listening on auth address * port 1812 bound to server default Listening on acct address * port 1813 bound to server default Listening on auth address :: port 1812 bound to server default Listening on acct address :: port 1813 bound to server default Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel Listening on proxy address * port 34082 Listening on proxy address :: port 42473 Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.136 port 37235 proto udp Ready to process requests
Thanks Krishna
On Wed, 13 Jul 2022 at 17:03, Michael Schwartzkopff <ms@sys4.de> wrote:
On 13.07.22 12:59, Krishna Chaitanya wrote:
Michael, The manual search is giving expected results but not sure why I am seeing 2 search results. Please find the below radtest results along with the manual ldap search report.
================================================================ [admin@freeradius raddb]$ ldapsearch -x uid=*krishnachaitanya* # extended LDIF # # LDAPv3 # base <dc=qi-cap,dc=com> (default) with scope subtree # filter: uid=krishnachaitanya # requesting: ALL #
# krishnachaitanya, users, compat, qi-cap.com dn: uid=krishnachaitanya,cn=users,cn=compat,dc=qi-cap,dc=com objectClass: posixAccount objectClass: ipaOverrideTarget objectClass: top gecos: Krishna Ala cn: Krishna Ala uidNumber: 1283800005 gidNumber: 1283800005 loginShell: /bin/sh homeDirectory: /home/krishnachaitanya ipaAnchorUUID:: OklQQTpxaS1jYXAuY29tOmY1N2IxYTcyLWZlYjAtMTFlYy04MWYxLTA4MDAyNz M2ZWMzOQ== uid: krishnachaitanya
# krishnachaitanya, users, accounts, qi-cap.com dn: uid=krishnachaitanya,cn=users,cn=accounts,dc=qi-cap,dc=com givenName: Krishna sn: Ala uid: krishnachaitanya cn: Krishna Ala displayName: Krishna Ala initials: KA gecos: Krishna Ala objectClass: top objectClass: person objectClass: organizationalperson objectClass: inetorgperson objectClass: inetuser objectClass: posixaccount objectClass: krbprincipalaux objectClass: krbticketpolicyaux objectClass: ipaobject objectClass: ipasshuser objectClass: ipaSshGroupOfPubKeys objectClass: mepOriginEntry objectClass: ipantuserattrs loginShell: /bin/sh homeDirectory: /home/krishnachaitanya uidNumber: 1283800005 gidNumber: 1283800005 ipaNTSecurityIdentifier: S-1-5-21-2716401607-2924185208-1841578509-1005
# search result search: 2 result: 0 Success
# numResponses: 3 # numEntries: 2
===============================================================================================
[root@freeradius admin]# radiusd -X FreeRADIUS Version 3.0.21 Copyright (C) 1999-2019 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 For more information about these matters, see the file named COPYRIGHT Starting - reading configuration files ... including dictionary file /usr/share/freeradius/dictionary including dictionary file /usr/share/freeradius/dictionary.dhcp including dictionary file /usr/share/freeradius/dictionary.vqp including dictionary file /etc/raddb/dictionary including configuration file /etc/raddb/radiusd.conf including configuration file /etc/raddb/proxy.conf including configuration file /etc/raddb/clients.conf including files in directory /etc/raddb/mods-enabled/ including configuration file /etc/raddb/mods-enabled/always including configuration file /etc/raddb/mods-enabled/attr_filter including configuration file /etc/raddb/mods-enabled/cache_eap including configuration file /etc/raddb/mods-enabled/chap including configuration file /etc/raddb/mods-enabled/date including configuration file /etc/raddb/mods-enabled/detail including configuration file /etc/raddb/mods-enabled/detail.log including configuration file /etc/raddb/mods-enabled/digest including configuration file /etc/raddb/mods-enabled/dynamic_clients including configuration file /etc/raddb/mods-enabled/eap including configuration file /etc/raddb/mods-enabled/echo including configuration file /etc/raddb/mods-enabled/exec including configuration file /etc/raddb/mods-enabled/expiration including configuration file /etc/raddb/mods-enabled/expr including configuration file /etc/raddb/mods-enabled/files including configuration file /etc/raddb/mods-enabled/linelog including configuration file /etc/raddb/mods-enabled/logintime including configuration file /etc/raddb/mods-enabled/mschap including configuration file /etc/raddb/mods-enabled/ntlm_auth including configuration file /etc/raddb/mods-enabled/pap including configuration file /etc/raddb/mods-enabled/passwd including configuration file /etc/raddb/mods-enabled/preprocess including configuration file /etc/raddb/mods-enabled/radutmp including configuration file /etc/raddb/mods-enabled/realm including configuration file /etc/raddb/mods-enabled/replicate including configuration file /etc/raddb/mods-enabled/soh including configuration file /etc/raddb/mods-enabled/sradutmp including configuration file /etc/raddb/mods-enabled/unix including configuration file /etc/raddb/mods-enabled/unpack including configuration file /etc/raddb/mods-enabled/utf8 including configuration file /etc/raddb/mods-enabled/ldap including files in directory /etc/raddb/policy.d/ including configuration file /etc/raddb/policy.d/accounting including configuration file /etc/raddb/policy.d/canonicalization including configuration file /etc/raddb/policy.d/control including configuration file /etc/raddb/policy.d/cui including configuration file /etc/raddb/policy.d/debug including configuration file /etc/raddb/policy.d/dhcp including configuration file /etc/raddb/policy.d/eap including configuration file /etc/raddb/policy.d/filter including configuration file /etc/raddb/policy.d/operator-name including configuration file /etc/raddb/policy.d/rfc7542 including files in directory /etc/raddb/sites-enabled/ including configuration file /etc/raddb/sites-enabled/default including configuration file /etc/raddb/sites-enabled/inner-tunnel main { security { user = "radiusd" group = "radiusd" allow_core_dumps = no } name = "radiusd" prefix = "/usr" localstatedir = "/var" logdir = "/var/log/radius" run_dir = "/var/run/radiusd" } main { name = "radiusd" prefix = "/usr" localstatedir = "/var" sbindir = "/usr/sbin" logdir = "/var/log/radius" run_dir = "/var/run/radiusd" libdir = "/usr/lib64/freeradius" radacctdir = "/var/log/radius/radacct" hostname_lookups = no max_request_time = 30 cleanup_delay = 5 max_requests = 16384 pidfile = "/var/run/radiusd/radiusd.pid" checkrad = "/usr/sbin/checkrad" debug_level = 0 proxy_requests = yes log { stripped_names = no auth = no auth_badpass = no auth_goodpass = no colourise = yes msg_denied = "You are already logged in - access denied" } resources { } security { max_attributes = 200 reject_delay = 1.000000 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 = <<< secret >>> response_window = 20.000000 response_timeouts = 1 max_outstanding = 65536 zombie_period = 40 status_check = "status-server" ping_interval = 30 check_interval = 30 check_timeout = 4 num_answers_to_alive = 3 revive_interval = 120 limit { max_connections = 16 max_requests = 0 lifetime = 0 idle_timeout = 0 } coa { 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 = 122.1.5.84 require_message_authenticator = no secret = <<< secret >>> nas_type = "other" proto = "*" limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } client localhost_ipv6 { ipv6addr = ::1 require_message_authenticator = no secret = <<< secret >>> limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } Debugger not attached # Creating Auth-Type = mschap # Creating Auth-Type = digest # Creating Auth-Type = eap # Creating Auth-Type = PAP # Creating Auth-Type = CHAP # Creating Auth-Type = MS-CHAP # Creating Auth-Type = LDAP radiusd: #### Instantiating modules #### modules { # Loaded module rlm_always # Loading module "reject" from file /etc/raddb/mods-enabled/always always reject { rcode = "reject" simulcount = 0 mpp = no } # Loading module "fail" from file /etc/raddb/mods-enabled/always always fail { rcode = "fail" simulcount = 0 mpp = no } # Loading module "ok" from file /etc/raddb/mods-enabled/always always ok { rcode = "ok" simulcount = 0 mpp = no } # Loading module "handled" from file /etc/raddb/mods-enabled/always always handled { rcode = "handled" simulcount = 0 mpp = no } # Loading module "invalid" from file /etc/raddb/mods-enabled/always always invalid { rcode = "invalid" simulcount = 0 mpp = no } # Loading module "userlock" from file /etc/raddb/mods-enabled/always always userlock { rcode = "userlock" simulcount = 0 mpp = no } # Loading module "notfound" from file /etc/raddb/mods-enabled/always always notfound { rcode = "notfound" simulcount = 0 mpp = no } # Loading module "noop" from file /etc/raddb/mods-enabled/always always noop { rcode = "noop" simulcount = 0 mpp = no } # Loading module "updated" from file /etc/raddb/mods-enabled/always always updated { rcode = "updated" simulcount = 0 mpp = no } # Loaded module rlm_attr_filter # Loading module "attr_filter.post-proxy" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.post-proxy { filename = "/etc/raddb/mods-config/attr_filter/post-proxy" key = "%{Realm}" relaxed = no } # Loading module "attr_filter.pre-proxy" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.pre-proxy { filename = "/etc/raddb/mods-config/attr_filter/pre-proxy" key = "%{Realm}" relaxed = no } # Loading module "attr_filter.access_reject" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.access_reject { filename = "/etc/raddb/mods-config/attr_filter/access_reject" key = "%{User-Name}" relaxed = no } # Loading module "attr_filter.access_challenge" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.access_challenge { filename = "/etc/raddb/mods-config/attr_filter/access_challenge" key = "%{User-Name}" relaxed = no } # Loading module "attr_filter.accounting_response" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.accounting_response { filename = "/etc/raddb/mods-config/attr_filter/accounting_response" key = "%{User-Name}" relaxed = no } # Loaded module rlm_cache # Loading module "cache_eap" from file /etc/raddb/mods-enabled/cache_eap cache cache_eap { driver = "rlm_cache_rbtree" key = "%{%{control:State}:-%{%{reply:State}:-%{State}}}" ttl = 15 max_entries = 0 epoch = 0 add_stats = no } # Loaded module rlm_chap # Loading module "chap" from file /etc/raddb/mods-enabled/chap # Loaded module rlm_date # Loading module "date" from file /etc/raddb/mods-enabled/date date { format = "%b %e %Y %H:%M:%S %Z" utc = no } # Loading module "wispr2date" from file /etc/raddb/mods-enabled/date date wispr2date { format = "%Y-%m-%dT%H:%M:%S" utc = no } # Loaded module rlm_detail # Loading module "detail" from file /etc/raddb/mods-enabled/detail detail { filename =
"/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d"
header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "auth_log" from file /etc/raddb/mods-enabled/detail.log detail auth_log { filename =
"/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d"
header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "reply_log" from file /etc/raddb/mods-enabled/detail.log detail reply_log { filename =
"/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/reply-detail-%Y%m%d"
header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "pre_proxy_log" from file /etc/raddb/mods-enabled/detail.log detail pre_proxy_log { filename =
"/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y%m%d"
header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "post_proxy_log" from file /etc/raddb/mods-enabled/detail.log detail post_proxy_log { filename =
"/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/post-proxy-detail-%Y%m%d"
header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loaded module rlm_digest # Loading module "digest" from file /etc/raddb/mods-enabled/digest # Loaded module rlm_dynamic_clients # Loading module "dynamic_clients" from file /etc/raddb/mods-enabled/dynamic_clients # Loaded module rlm_eap # Loading module "eap" from file /etc/raddb/mods-enabled/eap eap { default_eap_type = "md5" timer_expire = 60 ignore_unknown_eap_types = no cisco_accounting_username_bug = no max_sessions = 16384 } # Loaded module rlm_exec # Loading module "echo" from file /etc/raddb/mods-enabled/echo exec echo { wait = yes program = "/bin/echo %{User-Name}" input_pairs = "request" output_pairs = "reply" shell_escape = yes } # Loading module "exec" from file /etc/raddb/mods-enabled/exec exec { wait = no input_pairs = "request" shell_escape = yes timeout = 10 } # Loaded module rlm_expiration # Loading module "expiration" from file /etc/raddb/mods-enabled/expiration # Loaded module rlm_expr # Loading module "expr" from file /etc/raddb/mods-enabled/expr expr { safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /äéöüàâæçèéêëîïôœùûüaÿÄÉÖÜßÀÂÆÇÈÉÊËÎÏÔŒÙÛÜŸ" } # Loaded module rlm_files # Loading module "files" from file /etc/raddb/mods-enabled/files files { filename = "/etc/raddb/mods-config/files/authorize" acctusersfile = "/etc/raddb/mods-config/files/accounting" preproxy_usersfile = "/etc/raddb/mods-config/files/pre-proxy" } # Loaded module rlm_linelog # Loading module "linelog" from file /etc/raddb/mods-enabled/linelog linelog { filename = "/var/log/radius/linelog" escape_filenames = no syslog_severity = "info" permissions = 384 format = "This is a log message for %{User-Name}" reference = "messages.%{%{reply:Packet-Type}:-default}" } # Loading module "log_accounting" from file /etc/raddb/mods-enabled/linelog linelog log_accounting { filename = "/var/log/radius/linelog-accounting" escape_filenames = no syslog_severity = "info" permissions = 384 format = "" reference = "Accounting-Request.%{%{Acct-Status-Type}:-unknown}" } # Loaded module rlm_logintime # Loading module "logintime" from file /etc/raddb/mods-enabled/logintime logintime { minimum_timeout = 60 } # Loaded module rlm_mschap # Loading module "mschap" from file /etc/raddb/mods-enabled/mschap mschap { use_mppe = yes require_encryption = no require_strong = no with_ntdomain_hack = yes passchange { } allow_retry = yes winbind_retry_with_normalised_username = no } # Loading module "ntlm_auth" from file /etc/raddb/mods-enabled/ntlm_auth exec ntlm_auth { wait = yes program = "/path/to/ntlm_auth --request-nt-key --domain=MYDOMAIN --username=%{mschap:User-Name} --password=%{User-Password}" shell_escape = yes } # Loaded module rlm_pap # Loading module "pap" from file /etc/raddb/mods-enabled/pap pap { normalise = yes } # Loaded module rlm_passwd # Loading module "etc_passwd" from file /etc/raddb/mods-enabled/passwd passwd etc_passwd { filename = "/etc/passwd" format = "*User-Name:Crypt-Password:" delimiter = ":" ignore_nislike = no ignore_empty = yes allow_multiple_keys = no hash_size = 100 } # Loaded module rlm_preprocess # Loading module "preprocess" from file /etc/raddb/mods-enabled/preprocess preprocess { huntgroups = "/etc/raddb/mods-config/preprocess/huntgroups" hints = "/etc/raddb/mods-config/preprocess/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 } # Loaded module rlm_radutmp # Loading module "radutmp" from file /etc/raddb/mods-enabled/radutmp radutmp { filename = "/var/log/radius/radutmp" username = "%{User-Name}" case_sensitive = yes check_with_nas = yes permissions = 384 caller_id = yes } # Loaded module rlm_realm # Loading module "IPASS" from file /etc/raddb/mods-enabled/realm realm IPASS { format = "prefix" delimiter = "/" ignore_default = no ignore_null = no } # Loading module "suffix" from file /etc/raddb/mods-enabled/realm realm suffix { format = "suffix" delimiter = "@" ignore_default = no ignore_null = no } # Loading module "bangpath" from file /etc/raddb/mods-enabled/realm realm bangpath { format = "prefix" delimiter = "!" ignore_default = no ignore_null = no } # Loading module "realmpercent" from file /etc/raddb/mods-enabled/realm realm realmpercent { format = "suffix" delimiter = "%" ignore_default = no ignore_null = no } # Loading module "ntdomain" from file /etc/raddb/mods-enabled/realm realm ntdomain { format = "prefix" delimiter = "\\" ignore_default = no ignore_null = no } # Loaded module rlm_replicate # Loading module "replicate" from file /etc/raddb/mods-enabled/replicate # Loaded module rlm_soh # Loading module "soh" from file /etc/raddb/mods-enabled/soh soh { dhcp = yes } # Loading module "sradutmp" from file /etc/raddb/mods-enabled/sradutmp radutmp sradutmp { filename = "/var/log/radius/sradutmp" username = "%{User-Name}" case_sensitive = yes check_with_nas = yes permissions = 420 caller_id = no } # Loaded module rlm_unix # Loading module "unix" from file /etc/raddb/mods-enabled/unix unix { radwtmp = "/var/log/radius/radwtmp" } Creating attribute Unix-Group # Loaded module rlm_unpack # Loading module "unpack" from file /etc/raddb/mods-enabled/unpack # Loaded module rlm_utf8 # Loading module "utf8" from file /etc/raddb/mods-enabled/utf8 # Loaded module rlm_ldap # Loading module "ldap" from file /etc/raddb/mods-enabled/ldap ldap { server = "122.1.5.84" sasl { } user_dn = "LDAP-UserDn" user { scope = "sub" access_positive = yes sasl { } } group { filter = "(objectClass=posixGroup)" scope = "sub" name_attribute = "cn" membership_attribute = "memberOf" cacheable_name = no cacheable_dn = no allow_dangling_group_ref = no } client { filter = "(objectClass=radiusClient)" scope = "sub" base_dn = "O=QI-CAP.COM,CN=Certificate Authority,cn=users,cn=accounts,dc=qi-cap,uid=krishnachaitanya,dc=com" } profile { } options { ldap_debug = 40 chase_referrals = yes rebind = yes net_timeout = 1 res_timeout = 10 srv_timelimit = 3 idle = 60 probes = 3 interval = 3 } tls { start_tls = no } } Creating attribute LDAP-Group instantiate { } # Instantiating module "reject" from file /etc/raddb/mods-enabled/always # Instantiating module "fail" from file /etc/raddb/mods-enabled/always # Instantiating module "ok" from file /etc/raddb/mods-enabled/always # Instantiating module "handled" from file /etc/raddb/mods-enabled/always # Instantiating module "invalid" from file /etc/raddb/mods-enabled/always # Instantiating module "userlock" from file /etc/raddb/mods-enabled/always # Instantiating module "notfound" from file /etc/raddb/mods-enabled/always # Instantiating module "noop" from file /etc/raddb/mods-enabled/always # Instantiating module "updated" from file /etc/raddb/mods-enabled/always # Instantiating module "attr_filter.post-proxy" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/post-proxy # Instantiating module "attr_filter.pre-proxy" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/pre-proxy # Instantiating module "attr_filter.access_reject" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/access_reject # Instantiating module "attr_filter.access_challenge" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/access_challenge # Instantiating module "attr_filter.accounting_response" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/accounting_response # Instantiating module "cache_eap" from file /etc/raddb/mods-enabled/cache_eap rlm_cache (cache_eap): Driver rlm_cache_rbtree (module rlm_cache_rbtree) loaded and linked # Instantiating module "detail" from file /etc/raddb/mods-enabled/detail # Instantiating module "auth_log" from file /etc/raddb/mods-enabled/detail.log rlm_detail (auth_log): 'User-Password' suppressed, will not appear in detail output # Instantiating module "reply_log" from file /etc/raddb/mods-enabled/detail.log # Instantiating module "pre_proxy_log" from file /etc/raddb/mods-enabled/detail.log # Instantiating module "post_proxy_log" from file /etc/raddb/mods-enabled/detail.log # Instantiating module "eap" from file /etc/raddb/mods-enabled/eap # Linked to sub-module rlm_eap_md5 # Linked to sub-module rlm_eap_leap # Linked to sub-module rlm_eap_gtc gtc { challenge = "Password: " auth_type = "PAP" } # Linked to sub-module rlm_eap_tls tls { tls = "tls-common" } tls-config tls-common { verify_depth = 0 ca_path = "/etc/raddb/certs" pem_file_type = yes private_key_file = "/etc/raddb/certs/server.pem" certificate_file = "/etc/raddb/certs/server.pem" ca_file = "/etc/raddb/certs/ca.pem" private_key_password = <<< secret >>> dh_file = "/etc/raddb/certs/dh" fragment_size = 1024 include_length = yes auto_chain = yes check_crl = no check_all_crl = no ca_path_reload_interval = 0 cipher_list = "PROFILE=SYSTEM" cipher_server_preference = no reject_unknown_intermediate_ca = no ecdh_curve = "prime256v1" disable_tlsv1 = yes disable_tlsv1_1 = yes tls_max_version = "1.2" tls_min_version = "1.2" cache { enable = no lifetime = 24 max_entries = 255 } verify { skip_if_ocsp_ok = no } ocsp { enable = no override_cert_url = yes url = "http://127.0.0.1/ocsp/" use_nonce = yes timeout = 0 softfail = no } } tls: Please use 'tls_min_version' and 'tls_max_version' instead of 'disable_tlsv1' tls: Please use 'tls_min_version' and 'tls_max_version' instead of 'disable_tlsv1_1' tls: Setting DH parameters from /etc/raddb/certs/dh - this is no longer necessary. tls: You should comment out the 'dh_file' configuration item. # Linked to sub-module rlm_eap_ttls ttls { tls = "tls-common" default_eap_type = "md5" copy_request_to_tunnel = no use_tunneled_reply = no virtual_server = "inner-tunnel" include_length = yes require_client_cert = no } tls: Using cached TLS configuration from previous invocation # Linked to sub-module rlm_eap_peap peap { tls = "tls-common" default_eap_type = "mschapv2" copy_request_to_tunnel = no use_tunneled_reply = no proxy_tunneled_request_as_eap = yes virtual_server = "inner-tunnel" soh = no require_client_cert = no } tls: Using cached TLS configuration from previous invocation # Linked to sub-module rlm_eap_mschapv2 mschapv2 { with_ntdomain_hack = no send_error = no } # Instantiating module "expiration" from file /etc/raddb/mods-enabled/expiration # Instantiating module "files" from file /etc/raddb/mods-enabled/files reading pairlist file /etc/raddb/mods-config/files/authorize reading pairlist file /etc/raddb/mods-config/files/accounting reading pairlist file /etc/raddb/mods-config/files/pre-proxy # Instantiating module "linelog" from file /etc/raddb/mods-enabled/linelog # Instantiating module "log_accounting" from file /etc/raddb/mods-enabled/linelog # Instantiating module "logintime" from file /etc/raddb/mods-enabled/logintime # Instantiating module "mschap" from file /etc/raddb/mods-enabled/mschap rlm_mschap (mschap): using internal authentication # Instantiating module "pap" from file /etc/raddb/mods-enabled/pap # Instantiating module "etc_passwd" from file /etc/raddb/mods-enabled/passwd rlm_passwd: nfields: 3 keyfield 0(User-Name) listable: no # Instantiating module "preprocess" from file /etc/raddb/mods-enabled/preprocess reading pairlist file /etc/raddb/mods-config/preprocess/huntgroups reading pairlist file /etc/raddb/mods-config/preprocess/hints # Instantiating module "IPASS" from file /etc/raddb/mods-enabled/realm # Instantiating module "suffix" from file /etc/raddb/mods-enabled/realm # Instantiating module "bangpath" from file /etc/raddb/mods-enabled/realm # Instantiating module "realmpercent" from file /etc/raddb/mods-enabled/realm # Instantiating module "ntdomain" from file /etc/raddb/mods-enabled/realm # Instantiating module "ldap" from file /etc/raddb/mods-enabled/ldap rlm_ldap: libldap vendor: OpenLDAP, version: 20459 accounting { reference = "%{tolower:type.%{Acct-Status-Type}}" } post-auth { reference = "." } rlm_ldap (ldap): Initialising connection pool pool { start = 5 min = 3 max = 32 spare = 10 uses = 0 lifetime = 0 cleanup_interval = 30 idle_timeout = 60 retry_delay = 30 spread = no } rlm_ldap (ldap): Opening additional connection (0), 1 of 32 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (1), 1 of 31 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (2), 1 of 30 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (3), 1 of 29 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (4), 1 of 28 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful } # modules radiusd: #### Loading Virtual Servers #### server { # from file /etc/raddb/radiusd.conf } # server server default { # from file /etc/raddb/sites-enabled/default # Loading authenticate {...} # Loading authorize {...} Ignoring "sql" (see raddb/mods-available/README.rst) # Loading preacct {...} # Loading accounting {...} # Loading post-proxy {...} # Loading post-auth {...} } # server default server inner-tunnel { # from file /etc/raddb/sites-enabled/inner-tunnel # Loading authenticate {...} # Loading authorize {...} # Loading session {...} # Loading post-proxy {...} # Loading post-auth {...} # Skipping contents of 'if' as it is always 'false' -- /etc/raddb/sites-enabled/inner-tunnel:341 } # server inner-tunnel radiusd: #### Opening IP addresses and Ports #### listen { type = "auth" ipaddr = * port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "acct" ipaddr = * port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "auth" ipv6addr = :: port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "acct" ipv6addr = :: port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "auth" ipaddr = 127.0.0.1 port = 18120 } Listening on auth address * port 1812 bound to server default Listening on acct address * port 1813 bound to server default Listening on auth address :: port 1812 bound to server default Listening on acct address :: port 1813 bound to server default Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel Listening on proxy address * port 43356 Listening on proxy address :: port 50675 Ready to process requests (0) Received Access-Request Id 11 from 122.1.5.84:43809 to 122.1.5.84:1812 length 86 (0) User-Name = "krishnachaitanya" (0) User-Password = "Freeip@1234" (0) NAS-IP-Address = 122.1.5.84 (0) NAS-Port = 1812 (0) Message-Authenticator = 0x9162e9e3154076ccc69ddab02d33be4e (0) # Executing section authorize from file /etc/raddb/sites-enabled/default (0) authorize { (0) policy filter_username { (0) if (&User-Name) { (0) if (&User-Name) -> TRUE (0) if (&User-Name) { (0) if (&User-Name =~ / /) { (0) if (&User-Name =~ / /) -> FALSE (0) if (&User-Name =~ /@[^@]*@/ ) { (0) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (0) if (&User-Name =~ /\.\./ ) { (0) if (&User-Name =~ /\.\./ ) -> FALSE (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (0) if (&User-Name =~ /\.$/) { (0) if (&User-Name =~ /\.$/) -> FALSE (0) if (&User-Name =~ /@\./) { (0) if (&User-Name =~ /@\./) -> FALSE (0) } # if (&User-Name) = notfound (0) } # policy filter_username = notfound (0) [preprocess] = ok (0) [chap] = noop (0) [mschap] = noop (0) [digest] = noop (0) suffix: Checking for suffix after "@" (0) suffix: No '@' in User-Name = "krishnachaitanya", looking up realm NULL (0) suffix: No such realm "NULL" (0) [suffix] = noop (0) eap: No EAP-Message, not doing EAP (0) [eap] = noop (0) [files] = noop rlm_ldap (ldap): Reserved connection (0) (0) ldap: EXPAND (uid=%{%{Stripped-User-Name}:-%{User-Name}}) (0) ldap: --> (uid=krishnachaitanya) (0) ldap: Performing search in "O=QI-CAP.COM,CN=Certificate Authority,cn=users,cn=accounts,dc=qi-cap,uid=krishnachaitanya,dc=com" with filter "(uid=krishnachaitanya)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results rlm_ldap (ldap): Released connection (0) Need 5 more connections to reach 10 spares rlm_ldap (ldap): Opening additional connection (5), 1 of 27 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful (0) [ldap] = notfound (0) if ((ok || updated) && User-Password) { (0) if ((ok || updated) && User-Password) -> FALSE (0) [expiration] = noop (0) [logintime] = noop (0) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type (0) pap: WARNING: Authentication will fail unless a "known good" password is available (0) [pap] = noop (0) } # authorize = ok (0) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type = Reject (0) Failed to authenticate the user (0) Using Post-Auth-Type Reject (0) # Executing group from file /etc/raddb/sites-enabled/default (0) Post-Auth-Type REJECT { (0) attr_filter.access_reject: EXPAND %{User-Name} (0) attr_filter.access_reject: --> krishnachaitanya (0) attr_filter.access_reject: Matched entry DEFAULT at line 11 (0) [attr_filter.access_reject] = updated (0) [eap] = noop (0) policy remove_reply_message_if_eap { (0) if (&reply:EAP-Message && &reply:Reply-Message) { (0) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE (0) else { (0) [noop] = noop (0) } # else = noop (0) } # policy remove_reply_message_if_eap = noop (0) } # Post-Auth-Type REJECT = updated (0) Delaying response for 1.000000 seconds Waking up in 0.1 seconds. Waking up in 0.8 seconds. (0) Sending delayed response (0) Sent Access-Reject Id 11 from 122.1.5.84:1812 to 122.1.5.84:43809 length 20 Waking up in 3.9 seconds. (0) Cleaning up request packet ID 11 with timestamp +10 Ready to process requests
============================================================================
*Krishna Chaitanya Ala* *Network and Operations Engineer*
*QI Cap Markets LLP* *Bangalore,Karnataka* *Slack : krishna.chaitanya@qi-cap.com <krishna.chaitanya@qi-cap.com>*
On Wed, 13 Jul 2022 at 15:25, Michael Schwartzkopff via
Freeradius-Users <
freeradius-users@lists.freeradius.org> wrote:
On 13.07.22 11:52, Krishna Chaitanya wrote:
Matthew, Not really,Somehow, I missed reading all of the debug report. I am very new to Linux and having a hard time interpreting all of the Debug report. However, After going through the errors:
1. I can say that the username is not being used twice.Even, created another user profile with username "krishnachaitanya" and getting the same error message when running the radtest. 2. In the next test run, modified "base_dn" details as 'O=QI-CAP.COM,CN=Certificate Authority' and the test resulted in the below error.After reviewing the highlighted errors, finding it confused to understand and not really sure the fix for these errors.As far as I know, PAP can read only clear text passwords and in mycase the passwords are not encrypted when running the radtest command as "radtest krishnachaitanya *Freeip@1234 *122.1.5.84 1812 testing123" and not sure why am seeing PAP password errors. 3. and I am not sure why am seeing the messages "(0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results" when "rlm_ldap bind is successful". Is there any relation between them?
*Please help!*
[Ready to process requests (0) Received Access-Request Id 252 from 122.1.5.84:55576 to 122.1.5.84:1812 length 86 (0) User-Name = "krishnachaitanya" (0) User-Password = "Freeip@1234" (0) NAS-IP-Address = 122.1.5.84 (0) NAS-Port = 1812 (0) Message-Authenticator = 0x7d7802787a4d84809dbcd42a46873fe6 (0) # Executing section authorize from file /etc/raddb/sites-enabled/default (0) authorize { (0) policy filter_username { (0) if (&User-Name) { (0) if (&User-Name) -> TRUE (0) if (&User-Name) { (0) if (&User-Name =~ / /) { (0) if (&User-Name =~ / /) -> FALSE (0) if (&User-Name =~ /@[^@]*@/ ) { (0) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (0) if (&User-Name =~ /\.\./ ) { (0) if (&User-Name =~ /\.\./ ) -> FALSE (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (0) if (&User-Name =~ /\.$/) { (0) if (&User-Name =~ /\.$/) -> FALSE (0) if (&User-Name =~ /@\./) { (0) if (&User-Name =~ /@\./) -> FALSE (0) } # if (&User-Name) = notfound (0) } # policy filter_username = notfound (0) [preprocess] = ok (0) [chap] = noop (0) [mschap] = noop (0) [digest] = noop (0) suffix: Checking for suffix after "@" (0) suffix: No '@' in User-Name = "krishnachaitanya", looking up realm NULL (0) suffix: No such realm "NULL" (0) [suffix] = noop (0) eap: No EAP-Message, not doing EAP (0) [eap] = noop (0) [files] = noop rlm_ldap (ldap): Reserved connection (0) (0) ldap: EXPAND (uid=%{%{Stripped-User-Name}:-%{User-Name}}) (0) ldap: --> (uid=krishnachaitanya) (0) ldap: Performing search in "O=QI-CAP.COM,CN=Certificate Authority" with filter "(uid=krishnachaitanya)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results rlm_ldap (ldap): Released connection (0) Need 5 more connections to reach 10 spares rlm_ldap (ldap): Opening additional connection (5), 1 of 27 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful (0) [ldap] = notfound (0) if ((ok || updated) && User-Password) { (0) if ((ok || updated) && User-Password) -> FALSE (0) [expiration] = noop (0) [logintime] = noop (0) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type (0) pap: WARNING: Authentication will fail unless a "known good" password is available (0) [pap] = noop (0) } # authorize = ok (0) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type = Reject (0) Failed to authenticate the user (0) Using Post-Auth-Type Reject (0) # Executing group from file /etc/raddb/sites-enabled/default (0) Post-Auth-Type REJECT { (0) attr_filter.access_reject: EXPAND %{User-Name} (0) attr_filter.access_reject: --> krishnachaitanya (0) attr_filter.access_reject: Matched entry DEFAULT at line 11 (0) [attr_filter.access_reject] = updated (0) [eap] = noop (0) policy remove_reply_message_if_eap { (0) if (&reply:EAP-Message && &reply:Reply-Message) { (0) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE (0) else { (0) [noop] = noop (0) } # else = noop (0) } # policy remove_reply_message_if_eap = noop (0) } # Post-Auth-Type REJECT = updated (0) Delaying response for 1.000000 seconds Waking up in 0.2 seconds. Waking up in 0.7 seconds. (0) Sending delayed response (0) Sent Access-Reject Id 252 from 122.1.5.84:1812 to 122.1.5.84:55576 length 20 Waking up in 3.9 seconds. (0) Cleaning up request packet ID 252 with timestamp +5 Ready to process requests
*Krishna Chaitanya Ala* *Network and Operations Engineer*
On Fri, 8 Jul 2022 at 16:27, Matthew Newton <mcn@freeradius.org> wrote:
On 08/07/2022 11:45, Krishna Chaitanya wrote: > # search result > search: 2 > result: 0 Success > > # numResponses: 3 > # numEntries: 2 > *(0) ldap: ERROR: Ambiguous search result, returned 2 unsorted entries > (should return 1 or 0). Enable sorting, or specify a more restrictive > base_dn, filter or scope(0) ldap: ERROR: The following entries were > returned:(0) ldap: ERROR: > uid=admin,cn=users,cn=compat,dc=qi-cap,dc=com(0) ldap: ERROR: > uid=admin,cn=users,cn=accounts,dc=qi-cap,dc=com* > rlm_ldap (ldap): Released connection (0) > Need 5 more connections to reach 10 spares Did you read the debug output?
You have two users with the same uid. FreeRADIUS won't have any idea which one you want.
So you need to either not use the same username twice, or configure FreeRADIUS with a more restrictive base DN so that it only finds one of them.
-- Matthew - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
(0) ldap: Performing search in "O=QI-CAP.COM,CN=Certificate Authority" with filter "(uid=krishnachaitanya)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results
The user is not found in the LDAP. Do you use uid? oder cn? Wrong part of the tree? Whif is the LDIF of your user? Can you do a manual ldapsearch for the user?
Mit freundlichen Grüßen,
--
[*] sys4 AG
https://sys4.de, +49 (89) 30 90 46 64 Schleißheimer Straße 26/MG,80333 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief Aufsichtsratsvorsitzender: Florian Kirstein
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
With ldapsearch you find the object in:
dn: uid=krishnachaitanya,cn=users,cn=compat,dc=qi-cap,dc=com
FR searches in (from the logging):
(0) ldap: Performing search in "O=QI-CAP.COM,CN=Certificate Authority,cn=users,cn=accounts,dc=qi-cap,uid=krishnachaitanya,dc=com" with filter "(uid=krishnachaitanya)", scope "sub"
You see the difference?
Mit freundlichen Grüßen,
--
[*] sys4 AG
https://sys4.de, +49 (89) 30 90 46 64 Schleißheimer Straße 26/MG,80333 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief Aufsichtsratsvorsitzender: Florian Kirstein
On 14/07/2022 08:07, Krishna Chaitanya wrote:
My Question is like, Why is the request being Ignored?
It tells you that in the message Michael highlighted:
Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.136
"from unknown client". So... define the client? There's even a "basic configuration howto" on the wiki, this is the very first step. -- Matthew
On 14.07.22 09:07, Krishna Chaitanya wrote:
My Question is like, Why is the request being Ignored?
*Krishna Chaitanya Ala* *Network and Operations Engineer*
*QI Cap Markets LLP* *Bangalore,Karnataka* *Slack : krishna.chaitanya@qi-cap.com <krishna.chaitanya@qi-cap.com>*
On Thu, 14 Jul 2022 at 12:27, Michael Schwartzkopff <ms@sys4.de> wrote:
What is unclear about the log message:
Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.136
Muchael
14.07.2022 08:47:56 Krishna Chaitanya <krishna.chaitanya@qi-cap.com>:
Thanks very much Michael for your help and after making those changes, I was able to see an Accept message from FreeRadius. However, when trying to authenticate wireless using Freeradius I can see something like below. Please suggest!! ============================================== Listening on auth address * port 1812 bound to server default Listening on acct address * port 1813 bound to server default Listening on auth address :: port 1812 bound to server default Listening on acct address :: port 1813 bound to server default Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel Listening on proxy address * port 34082 Listening on proxy address :: port 42473 Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.136 port 37235 proto udp Ready to process requests
Thanks Krishna
On Wed, 13 Jul 2022 at 17:03, Michael Schwartzkopff <ms@sys4.de> wrote:
On 13.07.22 12:59, Krishna Chaitanya wrote:
Michael, The manual search is giving expected results but not sure why I am seeing 2 search results. Please find the below radtest results along with the manual ldap search report.
================================================================ [admin@freeradius raddb]$ ldapsearch -x uid=*krishnachaitanya* # extended LDIF # # LDAPv3 # base <dc=qi-cap,dc=com> (default) with scope subtree # filter: uid=krishnachaitanya # requesting: ALL #
# krishnachaitanya, users, compat, qi-cap.com dn: uid=krishnachaitanya,cn=users,cn=compat,dc=qi-cap,dc=com objectClass: posixAccount objectClass: ipaOverrideTarget objectClass: top gecos: Krishna Ala cn: Krishna Ala uidNumber: 1283800005 gidNumber: 1283800005 loginShell: /bin/sh homeDirectory: /home/krishnachaitanya ipaAnchorUUID:: OklQQTpxaS1jYXAuY29tOmY1N2IxYTcyLWZlYjAtMTFlYy04MWYxLTA4MDAyNz M2ZWMzOQ== uid: krishnachaitanya
# krishnachaitanya, users, accounts, qi-cap.com dn: uid=krishnachaitanya,cn=users,cn=accounts,dc=qi-cap,dc=com givenName: Krishna sn: Ala uid: krishnachaitanya cn: Krishna Ala displayName: Krishna Ala initials: KA gecos: Krishna Ala objectClass: top objectClass: person objectClass: organizationalperson objectClass: inetorgperson objectClass: inetuser objectClass: posixaccount objectClass: krbprincipalaux objectClass: krbticketpolicyaux objectClass: ipaobject objectClass: ipasshuser objectClass: ipaSshGroupOfPubKeys objectClass: mepOriginEntry objectClass: ipantuserattrs loginShell: /bin/sh homeDirectory: /home/krishnachaitanya uidNumber: 1283800005 gidNumber: 1283800005 ipaNTSecurityIdentifier: S-1-5-21-2716401607-2924185208-1841578509-1005
# search result search: 2 result: 0 Success
# numResponses: 3 # numEntries: 2
===============================================================================================
[root@freeradius admin]# radiusd -X FreeRADIUS Version 3.0.21 Copyright (C) 1999-2019 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 For more information about these matters, see the file named COPYRIGHT Starting - reading configuration files ... including dictionary file /usr/share/freeradius/dictionary including dictionary file /usr/share/freeradius/dictionary.dhcp including dictionary file /usr/share/freeradius/dictionary.vqp including dictionary file /etc/raddb/dictionary including configuration file /etc/raddb/radiusd.conf including configuration file /etc/raddb/proxy.conf including configuration file /etc/raddb/clients.conf including files in directory /etc/raddb/mods-enabled/ including configuration file /etc/raddb/mods-enabled/always including configuration file /etc/raddb/mods-enabled/attr_filter including configuration file /etc/raddb/mods-enabled/cache_eap including configuration file /etc/raddb/mods-enabled/chap including configuration file /etc/raddb/mods-enabled/date including configuration file /etc/raddb/mods-enabled/detail including configuration file /etc/raddb/mods-enabled/detail.log including configuration file /etc/raddb/mods-enabled/digest including configuration file /etc/raddb/mods-enabled/dynamic_clients including configuration file /etc/raddb/mods-enabled/eap including configuration file /etc/raddb/mods-enabled/echo including configuration file /etc/raddb/mods-enabled/exec including configuration file /etc/raddb/mods-enabled/expiration including configuration file /etc/raddb/mods-enabled/expr including configuration file /etc/raddb/mods-enabled/files including configuration file /etc/raddb/mods-enabled/linelog including configuration file /etc/raddb/mods-enabled/logintime including configuration file /etc/raddb/mods-enabled/mschap including configuration file /etc/raddb/mods-enabled/ntlm_auth including configuration file /etc/raddb/mods-enabled/pap including configuration file /etc/raddb/mods-enabled/passwd including configuration file /etc/raddb/mods-enabled/preprocess including configuration file /etc/raddb/mods-enabled/radutmp including configuration file /etc/raddb/mods-enabled/realm including configuration file /etc/raddb/mods-enabled/replicate including configuration file /etc/raddb/mods-enabled/soh including configuration file /etc/raddb/mods-enabled/sradutmp including configuration file /etc/raddb/mods-enabled/unix including configuration file /etc/raddb/mods-enabled/unpack including configuration file /etc/raddb/mods-enabled/utf8 including configuration file /etc/raddb/mods-enabled/ldap including files in directory /etc/raddb/policy.d/ including configuration file /etc/raddb/policy.d/accounting including configuration file /etc/raddb/policy.d/canonicalization including configuration file /etc/raddb/policy.d/control including configuration file /etc/raddb/policy.d/cui including configuration file /etc/raddb/policy.d/debug including configuration file /etc/raddb/policy.d/dhcp including configuration file /etc/raddb/policy.d/eap including configuration file /etc/raddb/policy.d/filter including configuration file /etc/raddb/policy.d/operator-name including configuration file /etc/raddb/policy.d/rfc7542 including files in directory /etc/raddb/sites-enabled/ including configuration file /etc/raddb/sites-enabled/default including configuration file /etc/raddb/sites-enabled/inner-tunnel main { security { user = "radiusd" group = "radiusd" allow_core_dumps = no } name = "radiusd" prefix = "/usr" localstatedir = "/var" logdir = "/var/log/radius" run_dir = "/var/run/radiusd" } main { name = "radiusd" prefix = "/usr" localstatedir = "/var" sbindir = "/usr/sbin" logdir = "/var/log/radius" run_dir = "/var/run/radiusd" libdir = "/usr/lib64/freeradius" radacctdir = "/var/log/radius/radacct" hostname_lookups = no max_request_time = 30 cleanup_delay = 5 max_requests = 16384 pidfile = "/var/run/radiusd/radiusd.pid" checkrad = "/usr/sbin/checkrad" debug_level = 0 proxy_requests = yes log { stripped_names = no auth = no auth_badpass = no auth_goodpass = no colourise = yes msg_denied = "You are already logged in - access denied" } resources { } security { max_attributes = 200 reject_delay = 1.000000 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 = <<< secret >>> response_window = 20.000000 response_timeouts = 1 max_outstanding = 65536 zombie_period = 40 status_check = "status-server" ping_interval = 30 check_interval = 30 check_timeout = 4 num_answers_to_alive = 3 revive_interval = 120 limit { max_connections = 16 max_requests = 0 lifetime = 0 idle_timeout = 0 } coa { 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 = 122.1.5.84 require_message_authenticator = no secret = <<< secret >>> nas_type = "other" proto = "*" limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } client localhost_ipv6 { ipv6addr = ::1 require_message_authenticator = no secret = <<< secret >>> limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } Debugger not attached # Creating Auth-Type = mschap # Creating Auth-Type = digest # Creating Auth-Type = eap # Creating Auth-Type = PAP # Creating Auth-Type = CHAP # Creating Auth-Type = MS-CHAP # Creating Auth-Type = LDAP radiusd: #### Instantiating modules #### modules { # Loaded module rlm_always # Loading module "reject" from file /etc/raddb/mods-enabled/always always reject { rcode = "reject" simulcount = 0 mpp = no } # Loading module "fail" from file /etc/raddb/mods-enabled/always always fail { rcode = "fail" simulcount = 0 mpp = no } # Loading module "ok" from file /etc/raddb/mods-enabled/always always ok { rcode = "ok" simulcount = 0 mpp = no } # Loading module "handled" from file /etc/raddb/mods-enabled/always always handled { rcode = "handled" simulcount = 0 mpp = no } # Loading module "invalid" from file /etc/raddb/mods-enabled/always always invalid { rcode = "invalid" simulcount = 0 mpp = no } # Loading module "userlock" from file /etc/raddb/mods-enabled/always always userlock { rcode = "userlock" simulcount = 0 mpp = no } # Loading module "notfound" from file /etc/raddb/mods-enabled/always always notfound { rcode = "notfound" simulcount = 0 mpp = no } # Loading module "noop" from file /etc/raddb/mods-enabled/always always noop { rcode = "noop" simulcount = 0 mpp = no } # Loading module "updated" from file /etc/raddb/mods-enabled/always always updated { rcode = "updated" simulcount = 0 mpp = no } # Loaded module rlm_attr_filter # Loading module "attr_filter.post-proxy" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.post-proxy { filename = "/etc/raddb/mods-config/attr_filter/post-proxy" key = "%{Realm}" relaxed = no } # Loading module "attr_filter.pre-proxy" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.pre-proxy { filename = "/etc/raddb/mods-config/attr_filter/pre-proxy" key = "%{Realm}" relaxed = no } # Loading module "attr_filter.access_reject" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.access_reject { filename = "/etc/raddb/mods-config/attr_filter/access_reject" key = "%{User-Name}" relaxed = no } # Loading module "attr_filter.access_challenge" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.access_challenge { filename = "/etc/raddb/mods-config/attr_filter/access_challenge" key = "%{User-Name}" relaxed = no } # Loading module "attr_filter.accounting_response" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.accounting_response { filename = "/etc/raddb/mods-config/attr_filter/accounting_response" key = "%{User-Name}" relaxed = no } # Loaded module rlm_cache # Loading module "cache_eap" from file /etc/raddb/mods-enabled/cache_eap cache cache_eap { driver = "rlm_cache_rbtree" key = "%{%{control:State}:-%{%{reply:State}:-%{State}}}" ttl = 15 max_entries = 0 epoch = 0 add_stats = no } # Loaded module rlm_chap # Loading module "chap" from file /etc/raddb/mods-enabled/chap # Loaded module rlm_date # Loading module "date" from file /etc/raddb/mods-enabled/date date { format = "%b %e %Y %H:%M:%S %Z" utc = no } # Loading module "wispr2date" from file /etc/raddb/mods-enabled/date date wispr2date { format = "%Y-%m-%dT%H:%M:%S" utc = no } # Loaded module rlm_detail # Loading module "detail" from file /etc/raddb/mods-enabled/detail detail { filename =
"/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d"
header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "auth_log" from file
/etc/raddb/mods-enabled/detail.log
detail auth_log { filename =
"/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d"
header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "reply_log" from file
/etc/raddb/mods-enabled/detail.log
detail reply_log { filename =
"/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/reply-detail-%Y%m%d"
header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "pre_proxy_log" from file /etc/raddb/mods-enabled/detail.log detail pre_proxy_log { filename =
"/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y%m%d"
header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "post_proxy_log" from file /etc/raddb/mods-enabled/detail.log detail post_proxy_log { filename =
"/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/post-proxy-detail-%Y%m%d"
header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loaded module rlm_digest # Loading module "digest" from file /etc/raddb/mods-enabled/digest # Loaded module rlm_dynamic_clients # Loading module "dynamic_clients" from file /etc/raddb/mods-enabled/dynamic_clients # Loaded module rlm_eap # Loading module "eap" from file /etc/raddb/mods-enabled/eap eap { default_eap_type = "md5" timer_expire = 60 ignore_unknown_eap_types = no cisco_accounting_username_bug = no max_sessions = 16384 } # Loaded module rlm_exec # Loading module "echo" from file /etc/raddb/mods-enabled/echo exec echo { wait = yes program = "/bin/echo %{User-Name}" input_pairs = "request" output_pairs = "reply" shell_escape = yes } # Loading module "exec" from file /etc/raddb/mods-enabled/exec exec { wait = no input_pairs = "request" shell_escape = yes timeout = 10 } # Loaded module rlm_expiration # Loading module "expiration" from file
/etc/raddb/mods-enabled/expiration
# Loaded module rlm_expr # Loading module "expr" from file /etc/raddb/mods-enabled/expr expr { safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /äéöüàâæçèéêëîïôœùûüaÿÄÉÖÜßÀÂÆÇÈÉÊËÎÏÔŒÙÛÜŸ" } # Loaded module rlm_files # Loading module "files" from file /etc/raddb/mods-enabled/files files { filename = "/etc/raddb/mods-config/files/authorize" acctusersfile = "/etc/raddb/mods-config/files/accounting" preproxy_usersfile = "/etc/raddb/mods-config/files/pre-proxy" } # Loaded module rlm_linelog # Loading module "linelog" from file /etc/raddb/mods-enabled/linelog linelog { filename = "/var/log/radius/linelog" escape_filenames = no syslog_severity = "info" permissions = 384 format = "This is a log message for %{User-Name}" reference = "messages.%{%{reply:Packet-Type}:-default}" } # Loading module "log_accounting" from file /etc/raddb/mods-enabled/linelog linelog log_accounting { filename = "/var/log/radius/linelog-accounting" escape_filenames = no syslog_severity = "info" permissions = 384 format = "" reference = "Accounting-Request.%{%{Acct-Status-Type}:-unknown}" } # Loaded module rlm_logintime # Loading module "logintime" from file
/etc/raddb/mods-enabled/logintime
logintime { minimum_timeout = 60 } # Loaded module rlm_mschap # Loading module "mschap" from file /etc/raddb/mods-enabled/mschap mschap { use_mppe = yes require_encryption = no require_strong = no with_ntdomain_hack = yes passchange { } allow_retry = yes winbind_retry_with_normalised_username = no } # Loading module "ntlm_auth" from file
/etc/raddb/mods-enabled/ntlm_auth
exec ntlm_auth { wait = yes program = "/path/to/ntlm_auth --request-nt-key --domain=MYDOMAIN --username=%{mschap:User-Name} --password=%{User-Password}" shell_escape = yes } # Loaded module rlm_pap # Loading module "pap" from file /etc/raddb/mods-enabled/pap pap { normalise = yes } # Loaded module rlm_passwd # Loading module "etc_passwd" from file
/etc/raddb/mods-enabled/passwd
passwd etc_passwd { filename = "/etc/passwd" format = "*User-Name:Crypt-Password:" delimiter = ":" ignore_nislike = no ignore_empty = yes allow_multiple_keys = no hash_size = 100 } # Loaded module rlm_preprocess # Loading module "preprocess" from file
/etc/raddb/mods-enabled/preprocess
preprocess { huntgroups = "/etc/raddb/mods-config/preprocess/huntgroups" hints = "/etc/raddb/mods-config/preprocess/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 } # Loaded module rlm_radutmp # Loading module "radutmp" from file /etc/raddb/mods-enabled/radutmp radutmp { filename = "/var/log/radius/radutmp" username = "%{User-Name}" case_sensitive = yes check_with_nas = yes permissions = 384 caller_id = yes } # Loaded module rlm_realm # Loading module "IPASS" from file /etc/raddb/mods-enabled/realm realm IPASS { format = "prefix" delimiter = "/" ignore_default = no ignore_null = no } # Loading module "suffix" from file /etc/raddb/mods-enabled/realm realm suffix { format = "suffix" delimiter = "@" ignore_default = no ignore_null = no } # Loading module "bangpath" from file /etc/raddb/mods-enabled/realm realm bangpath { format = "prefix" delimiter = "!" ignore_default = no ignore_null = no } # Loading module "realmpercent" from file
/etc/raddb/mods-enabled/realm
realm realmpercent { format = "suffix" delimiter = "%" ignore_default = no ignore_null = no } # Loading module "ntdomain" from file /etc/raddb/mods-enabled/realm realm ntdomain { format = "prefix" delimiter = "\\" ignore_default = no ignore_null = no } # Loaded module rlm_replicate # Loading module "replicate" from file
/etc/raddb/mods-enabled/replicate
# Loaded module rlm_soh # Loading module "soh" from file /etc/raddb/mods-enabled/soh soh { dhcp = yes } # Loading module "sradutmp" from file
/etc/raddb/mods-enabled/sradutmp
radutmp sradutmp { filename = "/var/log/radius/sradutmp" username = "%{User-Name}" case_sensitive = yes check_with_nas = yes permissions = 420 caller_id = no } # Loaded module rlm_unix # Loading module "unix" from file /etc/raddb/mods-enabled/unix unix { radwtmp = "/var/log/radius/radwtmp" } Creating attribute Unix-Group # Loaded module rlm_unpack # Loading module "unpack" from file /etc/raddb/mods-enabled/unpack # Loaded module rlm_utf8 # Loading module "utf8" from file /etc/raddb/mods-enabled/utf8 # Loaded module rlm_ldap # Loading module "ldap" from file /etc/raddb/mods-enabled/ldap ldap { server = "122.1.5.84" sasl { } user_dn = "LDAP-UserDn" user { scope = "sub" access_positive = yes sasl { } } group { filter = "(objectClass=posixGroup)" scope = "sub" name_attribute = "cn" membership_attribute = "memberOf" cacheable_name = no cacheable_dn = no allow_dangling_group_ref = no } client { filter = "(objectClass=radiusClient)" scope = "sub" base_dn = "O=QI-CAP.COM,CN=Certificate Authority,cn=users,cn=accounts,dc=qi-cap,uid=krishnachaitanya,dc=com" } profile { } options { ldap_debug = 40 chase_referrals = yes rebind = yes net_timeout = 1 res_timeout = 10 srv_timelimit = 3 idle = 60 probes = 3 interval = 3 } tls { start_tls = no } } Creating attribute LDAP-Group instantiate { } # Instantiating module "reject" from file
/etc/raddb/mods-enabled/always
# Instantiating module "fail" from file
/etc/raddb/mods-enabled/always
# Instantiating module "ok" from file /etc/raddb/mods-enabled/always # Instantiating module "handled" from file
/etc/raddb/mods-enabled/always
# Instantiating module "invalid" from file
/etc/raddb/mods-enabled/always
# Instantiating module "userlock" from file
/etc/raddb/mods-enabled/always
# Instantiating module "notfound" from file
/etc/raddb/mods-enabled/always
# Instantiating module "noop" from file
/etc/raddb/mods-enabled/always
# Instantiating module "updated" from file
/etc/raddb/mods-enabled/always
# Instantiating module "attr_filter.post-proxy" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/post-proxy # Instantiating module "attr_filter.pre-proxy" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/pre-proxy # Instantiating module "attr_filter.access_reject" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/access_reject # Instantiating module "attr_filter.access_challenge" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file
/etc/raddb/mods-config/attr_filter/access_challenge
# Instantiating module "attr_filter.accounting_response" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file
/etc/raddb/mods-config/attr_filter/accounting_response
# Instantiating module "cache_eap" from file /etc/raddb/mods-enabled/cache_eap rlm_cache (cache_eap): Driver rlm_cache_rbtree (module
rlm_cache_rbtree)
loaded and linked # Instantiating module "detail" from file /etc/raddb/mods-enabled/detail # Instantiating module "auth_log" from file /etc/raddb/mods-enabled/detail.log rlm_detail (auth_log): 'User-Password' suppressed, will not appear in detail output # Instantiating module "reply_log" from file /etc/raddb/mods-enabled/detail.log # Instantiating module "pre_proxy_log" from file /etc/raddb/mods-enabled/detail.log # Instantiating module "post_proxy_log" from file /etc/raddb/mods-enabled/detail.log # Instantiating module "eap" from file /etc/raddb/mods-enabled/eap # Linked to sub-module rlm_eap_md5 # Linked to sub-module rlm_eap_leap # Linked to sub-module rlm_eap_gtc gtc { challenge = "Password: " auth_type = "PAP" } # Linked to sub-module rlm_eap_tls tls { tls = "tls-common" } tls-config tls-common { verify_depth = 0 ca_path = "/etc/raddb/certs" pem_file_type = yes private_key_file = "/etc/raddb/certs/server.pem" certificate_file = "/etc/raddb/certs/server.pem" ca_file = "/etc/raddb/certs/ca.pem" private_key_password = <<< secret >>> dh_file = "/etc/raddb/certs/dh" fragment_size = 1024 include_length = yes auto_chain = yes check_crl = no check_all_crl = no ca_path_reload_interval = 0 cipher_list = "PROFILE=SYSTEM" cipher_server_preference = no reject_unknown_intermediate_ca = no ecdh_curve = "prime256v1" disable_tlsv1 = yes disable_tlsv1_1 = yes tls_max_version = "1.2" tls_min_version = "1.2" cache { enable = no lifetime = 24 max_entries = 255 } verify { skip_if_ocsp_ok = no } ocsp { enable = no override_cert_url = yes url = "http://127.0.0.1/ocsp/" use_nonce = yes timeout = 0 softfail = no } } tls: Please use 'tls_min_version' and 'tls_max_version' instead of 'disable_tlsv1' tls: Please use 'tls_min_version' and 'tls_max_version' instead of 'disable_tlsv1_1' tls: Setting DH parameters from /etc/raddb/certs/dh - this is no longer necessary. tls: You should comment out the 'dh_file' configuration item. # Linked to sub-module rlm_eap_ttls ttls { tls = "tls-common" default_eap_type = "md5" copy_request_to_tunnel = no use_tunneled_reply = no virtual_server = "inner-tunnel" include_length = yes require_client_cert = no } tls: Using cached TLS configuration from previous invocation # Linked to sub-module rlm_eap_peap peap { tls = "tls-common" default_eap_type = "mschapv2" copy_request_to_tunnel = no use_tunneled_reply = no proxy_tunneled_request_as_eap = yes virtual_server = "inner-tunnel" soh = no require_client_cert = no } tls: Using cached TLS configuration from previous invocation # Linked to sub-module rlm_eap_mschapv2 mschapv2 { with_ntdomain_hack = no send_error = no } # Instantiating module "expiration" from file /etc/raddb/mods-enabled/expiration # Instantiating module "files" from file /etc/raddb/mods-enabled/files reading pairlist file /etc/raddb/mods-config/files/authorize reading pairlist file /etc/raddb/mods-config/files/accounting reading pairlist file /etc/raddb/mods-config/files/pre-proxy # Instantiating module "linelog" from file /etc/raddb/mods-enabled/linelog # Instantiating module "log_accounting" from file /etc/raddb/mods-enabled/linelog # Instantiating module "logintime" from file /etc/raddb/mods-enabled/logintime # Instantiating module "mschap" from file /etc/raddb/mods-enabled/mschap rlm_mschap (mschap): using internal authentication # Instantiating module "pap" from file /etc/raddb/mods-enabled/pap # Instantiating module "etc_passwd" from file /etc/raddb/mods-enabled/passwd rlm_passwd: nfields: 3 keyfield 0(User-Name) listable: no # Instantiating module "preprocess" from file /etc/raddb/mods-enabled/preprocess reading pairlist file /etc/raddb/mods-config/preprocess/huntgroups reading pairlist file /etc/raddb/mods-config/preprocess/hints # Instantiating module "IPASS" from file /etc/raddb/mods-enabled/realm # Instantiating module "suffix" from file /etc/raddb/mods-enabled/realm # Instantiating module "bangpath" from file /etc/raddb/mods-enabled/realm # Instantiating module "realmpercent" from file /etc/raddb/mods-enabled/realm # Instantiating module "ntdomain" from file /etc/raddb/mods-enabled/realm # Instantiating module "ldap" from file /etc/raddb/mods-enabled/ldap rlm_ldap: libldap vendor: OpenLDAP, version: 20459 accounting { reference = "%{tolower:type.%{Acct-Status-Type}}" } post-auth { reference = "." } rlm_ldap (ldap): Initialising connection pool pool { start = 5 min = 3 max = 32 spare = 10 uses = 0 lifetime = 0 cleanup_interval = 30 idle_timeout = 60 retry_delay = 30 spread = no } rlm_ldap (ldap): Opening additional connection (0), 1 of 32 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (1), 1 of 31 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (2), 1 of 30 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (3), 1 of 29 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (4), 1 of 28 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful } # modules radiusd: #### Loading Virtual Servers #### server { # from file /etc/raddb/radiusd.conf } # server server default { # from file /etc/raddb/sites-enabled/default # Loading authenticate {...} # Loading authorize {...} Ignoring "sql" (see raddb/mods-available/README.rst) # Loading preacct {...} # Loading accounting {...} # Loading post-proxy {...} # Loading post-auth {...} } # server default server inner-tunnel { # from file /etc/raddb/sites-enabled/inner-tunnel # Loading authenticate {...} # Loading authorize {...} # Loading session {...} # Loading post-proxy {...} # Loading post-auth {...} # Skipping contents of 'if' as it is always 'false' -- /etc/raddb/sites-enabled/inner-tunnel:341 } # server inner-tunnel radiusd: #### Opening IP addresses and Ports #### listen { type = "auth" ipaddr = * port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "acct" ipaddr = * port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "auth" ipv6addr = :: port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "acct" ipv6addr = :: port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "auth" ipaddr = 127.0.0.1 port = 18120 } Listening on auth address * port 1812 bound to server default Listening on acct address * port 1813 bound to server default Listening on auth address :: port 1812 bound to server default Listening on acct address :: port 1813 bound to server default Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel Listening on proxy address * port 43356 Listening on proxy address :: port 50675 Ready to process requests (0) Received Access-Request Id 11 from 122.1.5.84:43809 to 122.1.5.84:1812 length 86 (0) User-Name = "krishnachaitanya" (0) User-Password = "Freeip@1234" (0) NAS-IP-Address = 122.1.5.84 (0) NAS-Port = 1812 (0) Message-Authenticator = 0x9162e9e3154076ccc69ddab02d33be4e (0) # Executing section authorize from file /etc/raddb/sites-enabled/default (0) authorize { (0) policy filter_username { (0) if (&User-Name) { (0) if (&User-Name) -> TRUE (0) if (&User-Name) { (0) if (&User-Name =~ / /) { (0) if (&User-Name =~ / /) -> FALSE (0) if (&User-Name =~ /@[^@]*@/ ) { (0) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (0) if (&User-Name =~ /\.\./ ) { (0) if (&User-Name =~ /\.\./ ) -> FALSE (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (0) if (&User-Name =~ /\.$/) { (0) if (&User-Name =~ /\.$/) -> FALSE (0) if (&User-Name =~ /@\./) { (0) if (&User-Name =~ /@\./) -> FALSE (0) } # if (&User-Name) = notfound (0) } # policy filter_username = notfound (0) [preprocess] = ok (0) [chap] = noop (0) [mschap] = noop (0) [digest] = noop (0) suffix: Checking for suffix after "@" (0) suffix: No '@' in User-Name = "krishnachaitanya", looking up realm NULL (0) suffix: No such realm "NULL" (0) [suffix] = noop (0) eap: No EAP-Message, not doing EAP (0) [eap] = noop (0) [files] = noop rlm_ldap (ldap): Reserved connection (0) (0) ldap: EXPAND (uid=%{%{Stripped-User-Name}:-%{User-Name}}) (0) ldap: --> (uid=krishnachaitanya) (0) ldap: Performing search in "O=QI-CAP.COM,CN=Certificate Authority,cn=users,cn=accounts,dc=qi-cap,uid=krishnachaitanya,dc=com" with filter "(uid=krishnachaitanya)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results rlm_ldap (ldap): Released connection (0) Need 5 more connections to reach 10 spares rlm_ldap (ldap): Opening additional connection (5), 1 of 27 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful (0) [ldap] = notfound (0) if ((ok || updated) && User-Password) { (0) if ((ok || updated) && User-Password) -> FALSE (0) [expiration] = noop (0) [logintime] = noop (0) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type (0) pap: WARNING: Authentication will fail unless a "known good" password is available (0) [pap] = noop (0) } # authorize = ok (0) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type = Reject (0) Failed to authenticate the user (0) Using Post-Auth-Type Reject (0) # Executing group from file /etc/raddb/sites-enabled/default (0) Post-Auth-Type REJECT { (0) attr_filter.access_reject: EXPAND %{User-Name} (0) attr_filter.access_reject: --> krishnachaitanya (0) attr_filter.access_reject: Matched entry DEFAULT at line 11 (0) [attr_filter.access_reject] = updated (0) [eap] = noop (0) policy remove_reply_message_if_eap { (0) if (&reply:EAP-Message && &reply:Reply-Message) { (0) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE (0) else { (0) [noop] = noop (0) } # else = noop (0) } # policy remove_reply_message_if_eap = noop (0) } # Post-Auth-Type REJECT = updated (0) Delaying response for 1.000000 seconds Waking up in 0.1 seconds. Waking up in 0.8 seconds. (0) Sending delayed response (0) Sent Access-Reject Id 11 from 122.1.5.84:1812 to 122.1.5.84:43809 length 20 Waking up in 3.9 seconds. (0) Cleaning up request packet ID 11 with timestamp +10 Ready to process requests
============================================================================
*Krishna Chaitanya Ala* *Network and Operations Engineer*
*QI Cap Markets LLP* *Bangalore,Karnataka* *Slack : krishna.chaitanya@qi-cap.com <krishna.chaitanya@qi-cap.com>*
On Wed, 13 Jul 2022 at 15:25, Michael Schwartzkopff via Freeradius-Users < freeradius-users@lists.freeradius.org> wrote:
On 13.07.22 11:52, Krishna Chaitanya wrote:
Matthew, Not really,Somehow, I missed reading all of the debug report. I am very new to Linux and having a hard time interpreting all of the Debug report. However, After going through the errors:
1. I can say that the username is not being used twice.Even, created another user profile with username "krishnachaitanya" and getting the same error message when running the radtest. 2. In the next test run, modified "base_dn" details as 'O=QI-CAP.COM,CN=Certificate Authority' and the test resulted in the below error.After reviewing the highlighted errors, finding it confused to understand and not really sure the fix for these errors.As far as I know, PAP can read only clear text passwords and in mycase the passwords are not encrypted when running the radtest command as "radtest krishnachaitanya *Freeip@1234 *122.1.5.84 1812 testing123" and not sure why am seeing PAP password errors. 3. and I am not sure why am seeing the messages "(0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results" when "rlm_ldap bind is successful". Is there any relation between them?
*Please help!*
[Ready to process requests (0) Received Access-Request Id 252 from 122.1.5.84:55576 to 122.1.5.84:1812 length 86 (0) User-Name = "krishnachaitanya" (0) User-Password = "Freeip@1234" (0) NAS-IP-Address = 122.1.5.84 (0) NAS-Port = 1812 (0) Message-Authenticator = 0x7d7802787a4d84809dbcd42a46873fe6 (0) # Executing section authorize from file /etc/raddb/sites-enabled/default (0) authorize { (0) policy filter_username { (0) if (&User-Name) { (0) if (&User-Name) -> TRUE (0) if (&User-Name) { (0) if (&User-Name =~ / /) { (0) if (&User-Name =~ / /) -> FALSE (0) if (&User-Name =~ /@[^@]*@/ ) { (0) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (0) if (&User-Name =~ /\.\./ ) { (0) if (&User-Name =~ /\.\./ ) -> FALSE (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (0) if (&User-Name =~ /\.$/) { (0) if (&User-Name =~ /\.$/) -> FALSE (0) if (&User-Name =~ /@\./) { (0) if (&User-Name =~ /@\./) -> FALSE (0) } # if (&User-Name) = notfound (0) } # policy filter_username = notfound (0) [preprocess] = ok (0) [chap] = noop (0) [mschap] = noop (0) [digest] = noop (0) suffix: Checking for suffix after "@" (0) suffix: No '@' in User-Name = "krishnachaitanya", looking up realm NULL (0) suffix: No such realm "NULL" (0) [suffix] = noop (0) eap: No EAP-Message, not doing EAP (0) [eap] = noop (0) [files] = noop rlm_ldap (ldap): Reserved connection (0) (0) ldap: EXPAND (uid=%{%{Stripped-User-Name}:-%{User-Name}}) (0) ldap: --> (uid=krishnachaitanya) (0) ldap: Performing search in "O=QI-CAP.COM,CN=Certificate Authority" with filter "(uid=krishnachaitanya)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results rlm_ldap (ldap): Released connection (0) Need 5 more connections to reach 10 spares rlm_ldap (ldap): Opening additional connection (5), 1 of 27 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful (0) [ldap] = notfound (0) if ((ok || updated) && User-Password) { (0) if ((ok || updated) && User-Password) -> FALSE (0) [expiration] = noop (0) [logintime] = noop (0) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type (0) pap: WARNING: Authentication will fail unless a "known good" password is available (0) [pap] = noop (0) } # authorize = ok (0) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type = Reject (0) Failed to authenticate the user (0) Using Post-Auth-Type Reject (0) # Executing group from file /etc/raddb/sites-enabled/default (0) Post-Auth-Type REJECT { (0) attr_filter.access_reject: EXPAND %{User-Name} (0) attr_filter.access_reject: --> krishnachaitanya (0) attr_filter.access_reject: Matched entry DEFAULT at line 11 (0) [attr_filter.access_reject] = updated (0) [eap] = noop (0) policy remove_reply_message_if_eap { (0) if (&reply:EAP-Message && &reply:Reply-Message) { (0) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE (0) else { (0) [noop] = noop (0) } # else = noop (0) } # policy remove_reply_message_if_eap = noop (0) } # Post-Auth-Type REJECT = updated (0) Delaying response for 1.000000 seconds Waking up in 0.2 seconds. Waking up in 0.7 seconds. (0) Sending delayed response (0) Sent Access-Reject Id 252 from 122.1.5.84:1812 to 122.1.5.84:55576 length 20 Waking up in 3.9 seconds. (0) Cleaning up request packet ID 252 with timestamp +5 Ready to process requests
*Krishna Chaitanya Ala* *Network and Operations Engineer*
On Fri, 8 Jul 2022 at 16:27, Matthew Newton <mcn@freeradius.org> wrote: > On 08/07/2022 11:45, Krishna Chaitanya wrote: >> # search result >> search: 2 >> result: 0 Success >> >> # numResponses: 3 >> # numEntries: 2 >> *(0) ldap: ERROR: Ambiguous search result, returned 2 unsorted entries >> (should return 1 or 0). Enable sorting, or specify a more restrictive >> base_dn, filter or scope(0) ldap: ERROR: The following entries were >> returned:(0) ldap: ERROR: >> uid=admin,cn=users,cn=compat,dc=qi-cap,dc=com(0) ldap: ERROR: >> uid=admin,cn=users,cn=accounts,dc=qi-cap,dc=com* >> rlm_ldap (ldap): Released connection (0) >> Need 5 more connections to reach 10 spares > Did you read the debug output? > > You have two users with the same uid. FreeRADIUS won't have any idea > which one you want. > > So you need to either not use the same username twice, or configure > FreeRADIUS with a more restrictive base DN so that it only finds one of > them. > > -- > Matthew > - > List info/subscribe/unsubscribe? See > http://www.freeradius.org/list/users.html > - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
(0) ldap: Performing search in "O=QI-CAP.COM,CN=Certificate Authority" with filter "(uid=krishnachaitanya)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results
The user is not found in the LDAP. Do you use uid? oder cn? Wrong part of the tree? Whif is the LDIF of your user? Can you do a manual ldapsearch for the user?
Mit freundlichen Grüßen,
--
[*] sys4 AG
https://sys4.de, +49 (89) 30 90 46 64 Schleißheimer Straße 26/MG,80333 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief Aufsichtsratsvorsitzender: Florian Kirstein
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
With ldapsearch you find the object in:
dn: uid=krishnachaitanya,cn=users,cn=compat,dc=qi-cap,dc=com
FR searches in (from the logging):
(0) ldap: Performing search in "O=QI-CAP.COM,CN=Certificate Authority,cn=users,cn=accounts,dc=qi-cap,uid=krishnachaitanya,dc=com" with filter "(uid=krishnachaitanya)", scope "sub"
You see the difference?
Mit freundlichen Grüßen,
--
[*] sys4 AG
https://sys4.de, +49 (89) 30 90 46 64 Schleißheimer Straße 26/MG,80333 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief Aufsichtsratsvorsitzender: Florian Kirstein
Because this client FR does not know this client. Please configure this client in FR. Mit freundlichen Grüßen, -- [*] sys4 AG https://sys4.de, +49 (89) 30 90 46 64 Schleißheimer Straße 26/MG,80333 München Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief Aufsichtsratsvorsitzender: Florian Kirstein
Looks like I found the reason, the issue is because the wireless router is not added in the cd /etc/raddb/client.conf file. And I can see the radtest requests are getting accepted by the Freeradius server for the user profiles on FreeIPA Directory as shown below. ==================================================================================================== krishna@QICAP:~$ radtest radius Freeip@1234 122.1.5.84 1812 testing123 Sent Access-Request Id 50 from 0.0.0.0:43213 to 122.1.5.84:1812 length 76 User-Name = "radius" User-Password = "Freeip@1234" NAS-IP-Address = 127.0.1.1 NAS-Port = 1812 Message-Authenticator = 0x00 Cleartext-Password = "Freeip@1234" Received Access-Accept Id 50 from 122.1.5.84:1812 to 122.1.5.136:43213 length 20 =================================================================================== However, when a user is trying to authenticate to wireless services, getting a debug report as below and connection to wireless is failing: --------------------------------------------------------------------------------------------------------------------------- (146) Received Access-Request Id 0 from 122.1.5.89:38592 to 122.1.5.84:1812 length 125 (146) User-Name = "radius" (146) NAS-IP-Address = 122.1.5.89 (146) Called-Station-Id = "d45d6478fb58" (146) Calling-Station-Id = "bc17b8e0bb04" (146) NAS-Identifier = "d45d6478fb58" (146) NAS-Port = 95 (146) Framed-MTU = 1400 (146) NAS-Port-Type = Wireless-802.11 (146) EAP-Message = 0x0200000b01726164697573 (146) Message-Authenticator = 0xc3197818dbeb318eb955862e583cae95 (146) # Executing section authorize from file /etc/raddb/sites-enabled/default (146) authorize { (146) policy filter_username { (146) if (&User-Name) { (146) if (&User-Name) -> TRUE (146) if (&User-Name) { (146) if (&User-Name =~ / /) { (146) if (&User-Name =~ / /) -> FALSE (146) if (&User-Name =~ /@[^@]*@/ ) { (146) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (146) if (&User-Name =~ /\.\./ ) { (146) if (&User-Name =~ /\.\./ ) -> FALSE (146) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (146) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (146) if (&User-Name =~ /\.$/) { (146) if (&User-Name =~ /\.$/) -> FALSE (146) if (&User-Name =~ /@\./) { (146) if (&User-Name =~ /@\./) -> FALSE (146) } # if (&User-Name) = notfound (146) } # policy filter_username = notfound (146) [preprocess] = ok (146) [chap] = noop (146) [mschap] = noop (146) [digest] = noop (146) suffix: Checking for suffix after "@" (146) suffix: No '@' in User-Name = "radius", looking up realm NULL (146) suffix: No such realm "NULL" (146) [suffix] = noop (146) eap: Peer sent EAP Response (code 2) ID 0 length 11 (146) eap: EAP-Identity reply, returning 'ok' so we can short-circuit the rest of authorize (146) [eap] = ok (146) } # authorize = ok (146) Found Auth-Type = eap (146) # Executing group from file /etc/raddb/sites-enabled/default (146) authenticate { (146) eap: Peer sent packet with method EAP Identity (1) (146) eap: Calling submodule eap_md5 to process data (146) eap_md5: Issuing MD5 Challenge (146) eap: Sending EAP Request (code 1) ID 1 length 22 (146) eap: EAP session adding &reply:State = 0x630ac958630bcd9a (146) [eap] = handled (146) } # authenticate = handled (146) Using Post-Auth-Type Challenge (146) # Executing group from file /etc/raddb/sites-enabled/default (146) Challenge { ... } # empty sub-section is ignored (146) Sent Access-Challenge Id 0 from 122.1.5.84:1812 to 122.1.5.89:38592 length 0 (146) EAP-Message = 0x0101001604101e63ce5452c89c6aece882e4d03f82f9 (146) Message-Authenticator = 0x00000000000000000000000000000000 (146) State = 0x630ac958630bcd9a9aa17122d96b190f (146) Finished request Waking up in 4.9 seconds. (146) Cleaning up request packet ID 0 with timestamp +1384 (147) Received Access-Request Id 0 from 122.1.5.89:38592 to 122.1.5.84:1812 length 138 (147) User-Name = "radius" (147) NAS-IP-Address = 122.1.5.89 (147) Called-Station-Id = "d45d6478fb58" (147) Calling-Station-Id = "bc17b8e0bb04" (147) NAS-Identifier = "d45d6478fb58" (147) NAS-Port = 95 (147) Framed-MTU = 1400 (147) State = 0x630ac958630bcd9a9aa17122d96b190f (147) NAS-Port-Type = Wireless-802.11 (147) EAP-Message = 0x020100060319 (147) Message-Authenticator = 0xdcfa0787e8fe37af85665f3dc1664bce (147) session-state: No cached attributes (147) # Executing section authorize from file /etc/raddb/sites-enabled/default (147) authorize { (147) policy filter_username { (147) if (&User-Name) { (147) if (&User-Name) -> TRUE (147) if (&User-Name) { (147) if (&User-Name =~ / /) { (147) if (&User-Name =~ / /) -> FALSE (147) if (&User-Name =~ /@[^@]*@/ ) { (147) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (147) if (&User-Name =~ /\.\./ ) { (147) if (&User-Name =~ /\.\./ ) -> FALSE (147) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (147) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (147) if (&User-Name =~ /\.$/) { (147) if (&User-Name =~ /\.$/) -> FALSE (147) if (&User-Name =~ /@\./) { (147) if (&User-Name =~ /@\./) -> FALSE (147) } # if (&User-Name) = notfound (147) } # policy filter_username = notfound (147) [preprocess] = ok (147) [chap] = noop (147) [mschap] = noop (147) [digest] = noop (147) suffix: Checking for suffix after "@" (147) suffix: No '@' in User-Name = "radius", looking up realm NULL (147) suffix: No such realm "NULL" (147) [suffix] = noop (147) eap: Peer sent EAP Response (code 2) ID 1 length 6 (147) eap: No EAP Start, assuming it's an on-going EAP conversation (147) [eap] = updated (147) [files] = noop rlm_ldap (ldap): Closing connection (25): Hit idle_timeout, was idle for 202 seconds rlm_ldap (ldap): Closing connection (26): Hit idle_timeout, was idle for 202 seconds rlm_ldap (ldap): You probably need to lower "min" rlm_ldap (ldap): Closing connection (24): Hit idle_timeout, was idle for 201 seconds rlm_ldap (ldap): You probably need to lower "min" rlm_ldap (ldap): Closing connection (27): Hit idle_timeout, was idle for 201 seconds rlm_ldap (ldap): You probably need to lower "min" rlm_ldap (ldap): 0 of 0 connections in use. You may need to increase "spare" rlm_ldap (ldap): Opening additional connection (28), 1 of 32 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Reserved connection (28) (147) ldap: EXPAND (uid=%{%{Stripped-User-Name}:-%{User-Name}}) (147) ldap: --> (uid=radius) (147) ldap: Performing search in "cn=users,cn=compat,dc=qi-cap,dc=com" with filter "(uid=radius)", scope "sub" (147) ldap: Waiting for search result... (147) ldap: User object found at DN "uid=radius,cn=users,cn=compat,dc=qi-cap,dc=com" (147) ldap: Processing user attributes (147) ldap: WARNING: No "known good" password added. Ensure the admin user has permission to read the password attribute (147) ldap: WARNING: PAP authentication will *NOT* work with Active Directory (if that is what you were trying to configure) rlm_ldap (ldap): Released connection (28) Need 2 more connections to reach min connections (3) rlm_ldap (ldap): Opening additional connection (29), 1 of 31 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful (147) [ldap] = ok (147) if ((ok || updated) && User-Password) { (147) if ((ok || updated) && User-Password) -> FALSE (147) [expiration] = noop (147) [logintime] = noop Not doing PAP as Auth-Type is already set. (147) [pap] = noop (147) } # authorize = updated (147) Found Auth-Type = eap (147) # Executing group from file /etc/raddb/sites-enabled/default (147) authenticate { (147) eap: Expiring EAP session with state 0x630ac958630bcd9a (147) eap: Finished EAP session with state 0x630ac958630bcd9a (147) eap: Previous EAP request found for state 0x630ac958630bcd9a, released from the list (147) eap: Peer sent packet with method EAP NAK (3) (147) eap: Found mutually acceptable type PEAP (25) (147) eap: Calling submodule eap_peap to process data (147) eap_peap: (TLS) Initiating new session (147) eap: Sending EAP Request (code 1) ID 2 length 6 (147) eap: EAP session adding &reply:State = 0x630ac9586208d09a (147) [eap] = handled (147) } # authenticate = handled (147) Using Post-Auth-Type Challenge (147) # Executing group from file /etc/raddb/sites-enabled/default (147) Challenge { ... } # empty sub-section is ignored (147) session-state: Saving cached attributes (147) Framed-MTU = 994 (147) Sent Access-Challenge Id 0 from 122.1.5.84:1812 to 122.1.5.89:38592 length 0 (147) EAP-Message = 0x010200061920 (147) Message-Authenticator = 0x00000000000000000000000000000000 (147) State = 0x630ac9586208d09a9aa17122d96b190f (147) Finished request Waking up in 4.9 seconds. (147) Cleaning up request packet ID 0 with timestamp +1384 (148) Received Access-Request Id 0 from 122.1.5.89:38592 to 122.1.5.84:1812 length 326 (148) User-Name = "radius" (148) NAS-IP-Address = 122.1.5.89 (148) Called-Station-Id = "d45d6478fb58" (148) Calling-Station-Id = "bc17b8e0bb04" (148) NAS-Identifier = "d45d6478fb58" (148) NAS-Port = 95 (148) Framed-MTU = 1400 (148) State = 0x630ac9586208d09a9aa17122d96b190f (148) NAS-Port-Type = Wireless-802.11 (148) EAP-Message = 0x020200c21980000000b816030100b3010000af030324dcb1053a2662d53368c1e7a1839e375af3d02b1070d1a75bb85cf3778a7920000038c02cc030009fcca9cca8ccaac02bc02f009ec024c028006bc023c0270067c00ac0140039c009c0130033009d009c003d003c0035002f00ff0100004e000b000403000102000a000c000a001d0017001e001900180016000000170000000d002a0028040305030603080708080809080a080b080408050806040105010601030303010302040205020602 (148) Message-Authenticator = 0xcb4908538e1b4358c863c3724f62bc3c (148) Restoring &session-state (148) &session-state:Framed-MTU = 994 (148) # Executing section authorize from file /etc/raddb/sites-enabled/default (148) authorize { (148) policy filter_username { (148) if (&User-Name) { (148) if (&User-Name) -> TRUE (148) if (&User-Name) { (148) if (&User-Name =~ / /) { (148) if (&User-Name =~ / /) -> FALSE (148) if (&User-Name =~ /@[^@]*@/ ) { (148) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (148) if (&User-Name =~ /\.\./ ) { (148) if (&User-Name =~ /\.\./ ) -> FALSE (148) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (148) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (148) if (&User-Name =~ /\.$/) { (148) if (&User-Name =~ /\.$/) -> FALSE (148) if (&User-Name =~ /@\./) { (148) if (&User-Name =~ /@\./) -> FALSE (148) } # if (&User-Name) = notfound (148) } # policy filter_username = notfound (148) [preprocess] = ok (148) [chap] = noop (148) [mschap] = noop (148) [digest] = noop (148) suffix: Checking for suffix after "@" (148) suffix: No '@' in User-Name = "radius", looking up realm NULL (148) suffix: No such realm "NULL" (148) [suffix] = noop (148) eap: Peer sent EAP Response (code 2) ID 2 length 194 (148) eap: Continuing tunnel setup (148) [eap] = ok (148) } # authorize = ok (148) Found Auth-Type = eap (148) # Executing group from file /etc/raddb/sites-enabled/default (148) authenticate { (148) eap: Expiring EAP session with state 0x630ac9586208d09a (148) eap: Finished EAP session with state 0x630ac9586208d09a (148) eap: Previous EAP request found for state 0x630ac9586208d09a, released from the list (148) eap: Peer sent packet with method EAP PEAP (25) (148) eap: Calling submodule eap_peap to process data (148) eap_peap: (TLS) EAP Peer says that the final record size will be 184 bytes (148) eap_peap: (TLS) EAP Got all data (184 bytes) (148) eap_peap: (TLS) Handshake state - before SSL initialization (148) eap_peap: (TLS) Handshake state - Server before SSL initialization (148) eap_peap: (TLS) Handshake state - Server before SSL initialization (148) eap_peap: (TLS) recv TLS 1.3 Handshake, ClientHello (148) eap_peap: (TLS) Handshake state - Server SSLv3/TLS read client hello (148) eap_peap: (TLS) send TLS 1.2 Handshake, ServerHello (148) eap_peap: (TLS) Handshake state - Server SSLv3/TLS write server hello (148) eap_peap: (TLS) send TLS 1.2 Handshake, Certificate (148) eap_peap: (TLS) Handshake state - Server SSLv3/TLS write certificate (148) eap_peap: (TLS) send TLS 1.2 Handshake, ServerKeyExchange (148) eap_peap: (TLS) Handshake state - Server SSLv3/TLS write key exchange (148) eap_peap: (TLS) send TLS 1.2 Handshake, ServerHelloDone (148) eap_peap: (TLS) Handshake state - Server SSLv3/TLS write server done (148) eap_peap: (TLS) Server : Need to read more data: SSLv3/TLS write server done (148) eap_peap: (TLS) In Handshake Phase (148) eap: Sending EAP Request (code 1) ID 3 length 1004 (148) eap: EAP session adding &reply:State = 0x630ac9586109d09a (148) [eap] = handled (148) } # authenticate = handled (148) Using Post-Auth-Type Challenge (148) # Executing group from file /etc/raddb/sites-enabled/default (148) Challenge { ... } # empty sub-section is ignored (148) session-state: Saving cached attributes (148) Framed-MTU = 994 (148) TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake, ClientHello" (148) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHello" (148) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Certificate" (148) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerKeyExchange" (148) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHelloDone" (148) Sent Access-Challenge Id 0 from 122.1.5.84:1812 to 122.1.5.89:38592 length 0 (148) EAP-Message = 0x010303ec19c000000ae7160303003d020000390303e40b7ece038fed5308f9347251dcdb5ce7cc0acd5d17bc8f4a9824746d2aafc900c030000011ff01000100000b0004030001020017000016030309450b00094100093e00043a308204363082031ea003020102020101300d06092a864886f70d01010b0500308193310b3009060355040613024652310f300d06035504080c065261646975733112301006035504070c09536f6d65776865726531153013060355040a0c0c4578616d706c6520496e632e3120301e06092a864886f70d010901161161646d696e406578616d706c652e6f72673126302406035504030c1d4578616d706c6520436572746966696361746520417574686f72697479301e170d3232303730373039333731375a170d3232303930353039333731375a307c310b3009060355040613024652310f300d06035504080c0652616469757331153013060355040a0c0c4578616d706c6520496e632e3123302106035504030c1a4578616d70 (148) Message-Authenticator = 0x00000000000000000000000000000000 (148) State = 0x630ac9586109d09a9aa17122d96b190f (148) Finished request Waking up in 4.9 seconds. (148) Cleaning up request packet ID 0 with timestamp +1384 (149) Received Access-Request Id 0 from 122.1.5.89:38592 to 122.1.5.84:1812 length 138 (149) User-Name = "radius" (149) NAS-IP-Address = 122.1.5.89 (149) Called-Station-Id = "d45d6478fb58" (149) Calling-Station-Id = "bc17b8e0bb04" (149) NAS-Identifier = "d45d6478fb58" (149) NAS-Port = 95 (149) Framed-MTU = 1400 (149) State = 0x630ac9586109d09a9aa17122d96b190f (149) NAS-Port-Type = Wireless-802.11 (149) EAP-Message = 0x020300061900 (149) Message-Authenticator = 0xe20bd002559c93cb548b9f3bcdda6377 (149) Restoring &session-state (149) &session-state:Framed-MTU = 994 (149) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake, ClientHello" (149) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHello" (149) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Certificate" (149) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerKeyExchange" (149) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHelloDone" (149) # Executing section authorize from file /etc/raddb/sites-enabled/default (149) authorize { (149) policy filter_username { (149) if (&User-Name) { (149) if (&User-Name) -> TRUE (149) if (&User-Name) { (149) if (&User-Name =~ / /) { (149) if (&User-Name =~ / /) -> FALSE (149) if (&User-Name =~ /@[^@]*@/ ) { (149) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (149) if (&User-Name =~ /\.\./ ) { (149) if (&User-Name =~ /\.\./ ) -> FALSE (149) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (149) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (149) if (&User-Name =~ /\.$/) { (149) if (&User-Name =~ /\.$/) -> FALSE (149) if (&User-Name =~ /@\./) { (149) if (&User-Name =~ /@\./) -> FALSE (149) } # if (&User-Name) = notfound (149) } # policy filter_username = notfound (149) [preprocess] = ok (149) [chap] = noop (149) [mschap] = noop (149) [digest] = noop (149) suffix: Checking for suffix after "@" (149) suffix: No '@' in User-Name = "radius", looking up realm NULL (149) suffix: No such realm "NULL" (149) [suffix] = noop (149) eap: Peer sent EAP Response (code 2) ID 3 length 6 (149) eap: Continuing tunnel setup (149) [eap] = ok (149) } # authorize = ok (149) Found Auth-Type = eap (149) # Executing group from file /etc/raddb/sites-enabled/default (149) authenticate { (149) eap: Expiring EAP session with state 0x630ac9586109d09a (149) eap: Finished EAP session with state 0x630ac9586109d09a (149) eap: Previous EAP request found for state 0x630ac9586109d09a, released from the list (149) eap: Peer sent packet with method EAP PEAP (25) (149) eap: Calling submodule eap_peap to process data (149) eap_peap: (TLS) Peer ACKed our handshake fragment (149) eap: Sending EAP Request (code 1) ID 4 length 1000 (149) eap: EAP session adding &reply:State = 0x630ac958600ed09a (149) [eap] = handled (149) } # authenticate = handled (149) Using Post-Auth-Type Challenge (149) # Executing group from file /etc/raddb/sites-enabled/default (149) Challenge { ... } # empty sub-section is ignored (149) session-state: Saving cached attributes (149) Framed-MTU = 994 (149) TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake, ClientHello" (149) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHello" (149) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Certificate" (149) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerKeyExchange" (149) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHelloDone" (149) Sent Access-Challenge Id 0 from 122.1.5.84:1812 to 122.1.5.89:38592 length 0 (149) EAP-Message = 0x010403e81940ac6ab2e0a7b5c3ee232e3e1524bf37ca3c2974fe2a11ae07e9ba696843cc726f4f7977e5300b00fe1377608feabdc73ce1c84b2d138e50bf201c568fe120898dfe1c85bc1512aeac7b2e1a13c5392d360b09b3243f73efa033120706bfba135d3c3691e5ba2073cafe0b9918b9926baf86ee8278cab171f1dc3afe4fcb4b6036bbfcb5e2101084f8ba8621fb4c292d6b7398ad27842755f43c3164588fe2c204920fbbfdc435b537330004fe308204fa308203e2a00302010202147ea8445d8c33e6dc84e1d745a65b913ce025d8ea300d06092a864886f70d01010b0500308193310b3009060355040613024652310f300d06035504080c065261646975733112301006035504070c09536f6d65776865726531153013060355040a0c0c4578616d706c6520496e632e3120301e06092a864886f70d010901161161646d696e406578616d706c652e6f72673126302406035504030c1d4578616d706c6520436572746966696361746520417574686f72 (149) Message-Authenticator = 0x00000000000000000000000000000000 (149) State = 0x630ac958600ed09a9aa17122d96b190f (149) Finished request Waking up in 4.9 seconds. (149) Cleaning up request packet ID 0 with timestamp +1384 (150) Received Access-Request Id 0 from 122.1.5.89:38592 to 122.1.5.84:1812 length 138 (150) User-Name = "radius" (150) NAS-IP-Address = 122.1.5.89 (150) Called-Station-Id = "d45d6478fb58" (150) Calling-Station-Id = "bc17b8e0bb04" (150) NAS-Identifier = "d45d6478fb58" (150) NAS-Port = 95 (150) Framed-MTU = 1400 (150) State = 0x630ac958600ed09a9aa17122d96b190f (150) NAS-Port-Type = Wireless-802.11 (150) EAP-Message = 0x020400061900 (150) Message-Authenticator = 0xc2e6d43749c0cef54089cab72948d823 (150) Restoring &session-state (150) &session-state:Framed-MTU = 994 (150) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake, ClientHello" (150) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHello" (150) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Certificate" (150) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerKeyExchange" (150) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHelloDone" (150) # Executing section authorize from file /etc/raddb/sites-enabled/default (150) authorize { (150) policy filter_username { (150) if (&User-Name) { (150) if (&User-Name) -> TRUE (150) if (&User-Name) { (150) if (&User-Name =~ / /) { (150) if (&User-Name =~ / /) -> FALSE (150) if (&User-Name =~ /@[^@]*@/ ) { (150) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (150) if (&User-Name =~ /\.\./ ) { (150) if (&User-Name =~ /\.\./ ) -> FALSE (150) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (150) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (150) if (&User-Name =~ /\.$/) { (150) if (&User-Name =~ /\.$/) -> FALSE (150) if (&User-Name =~ /@\./) { (150) if (&User-Name =~ /@\./) -> FALSE (150) } # if (&User-Name) = notfound (150) } # policy filter_username = notfound (150) [preprocess] = ok (150) [chap] = noop (150) [mschap] = noop (150) [digest] = noop (150) suffix: Checking for suffix after "@" (150) suffix: No '@' in User-Name = "radius", looking up realm NULL (150) suffix: No such realm "NULL" (150) [suffix] = noop (150) eap: Peer sent EAP Response (code 2) ID 4 length 6 (150) eap: Continuing tunnel setup (150) [eap] = ok (150) } # authorize = ok (150) Found Auth-Type = eap (150) # Executing group from file /etc/raddb/sites-enabled/default (150) authenticate { (150) eap: Expiring EAP session with state 0x630ac958600ed09a (150) eap: Finished EAP session with state 0x630ac958600ed09a (150) eap: Previous EAP request found for state 0x630ac958600ed09a, released from the list (150) eap: Peer sent packet with method EAP PEAP (25) (150) eap: Calling submodule eap_peap to process data (150) eap_peap: (TLS) Peer ACKed our handshake fragment (150) eap: Sending EAP Request (code 1) ID 5 length 809 (150) eap: EAP session adding &reply:State = 0x630ac958670fd09a (150) [eap] = handled (150) } # authenticate = handled (150) Using Post-Auth-Type Challenge (150) # Executing group from file /etc/raddb/sites-enabled/default (150) Challenge { ... } # empty sub-section is ignored (150) session-state: Saving cached attributes (150) Framed-MTU = 994 (150) TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake, ClientHello" (150) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHello" (150) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Certificate" (150) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerKeyExchange" (150) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHelloDone" (150) Sent Access-Challenge Id 0 from 122.1.5.84:1812 to 122.1.5.89:38592 length 0 (150) EAP-Message = 0x01050329190078616d706c6520496e632e3120301e06092a864886f70d010901161161646d696e406578616d706c652e6f72673126302406035504030c1d4578616d706c6520436572746966696361746520417574686f7269747982147ea8445d8c33e6dc84e1d745a65b913ce025d8ea300f0603551d130101ff040530030101ff30360603551d1f042f302d302ba029a0278625687474703a2f2f7777772e6578616d706c652e6f72672f6578616d706c655f63612e63726c300d06092a864886f70d01010b050003820101000ad43506e2933d08e07c664f0d39317e28eeea8ce5ac5fb596a9ea82a2680738b3994666b8a0d21c53b89ad820d5aef22d53810bbe79d3a026d13bb7d0dccb1a8e0fcbe98582b6bba6d0ba8231b3f71bd9e3964b5d38659fc3c4a9f53fc313b7a04ecc413bddc7f147b91fb15c7b5f093a8146b202205d99aaba23043f5fa1ecc5fba99e8207b3900bb8e18b5678cd77bb1cdcc9bc3500ad7a6ef3deeca99d92c518e24a04bc042bb7 (150) Message-Authenticator = 0x00000000000000000000000000000000 (150) State = 0x630ac958670fd09a9aa17122d96b190f (150) Finished request Waking up in 4.9 seconds. (150) Cleaning up request packet ID 0 with timestamp +1384 (151) Received Access-Request Id 0 from 122.1.5.89:38592 to 122.1.5.84:1812 length 268 (151) User-Name = "radius" (151) NAS-IP-Address = 122.1.5.89 (151) Called-Station-Id = "d45d6478fb58" (151) Calling-Station-Id = "bc17b8e0bb04" (151) NAS-Identifier = "d45d6478fb58" (151) NAS-Port = 95 (151) Framed-MTU = 1400 (151) State = 0x630ac958670fd09a9aa17122d96b190f (151) NAS-Port-Type = Wireless-802.11 (151) EAP-Message = 0x0205008819800000007e1603030046100000424104a8c5fb53a0584fb7fecd29d28ed16f2cfb2bd7c8c773a4241b37b2cf14e00f75eb079650d05ad9906482ed46b0b004f1f1a941bd98b3708499e03272486c84a81403030001011603030028884ec7abc6f5265d94c3db8af8e51023983594f13ea30ba5806f7c592880892fbf5dfda936af54a9 (151) Message-Authenticator = 0xef4ad482d6b741a39c904df91886a13e (151) Restoring &session-state (151) &session-state:Framed-MTU = 994 (151) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake, ClientHello" (151) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHello" (151) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Certificate" (151) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerKeyExchange" (151) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHelloDone" (151) # Executing section authorize from file /etc/raddb/sites-enabled/default (151) authorize { (151) policy filter_username { (151) if (&User-Name) { (151) if (&User-Name) -> TRUE (151) if (&User-Name) { (151) if (&User-Name =~ / /) { (151) if (&User-Name =~ / /) -> FALSE (151) if (&User-Name =~ /@[^@]*@/ ) { (151) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (151) if (&User-Name =~ /\.\./ ) { (151) if (&User-Name =~ /\.\./ ) -> FALSE (151) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (151) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (151) if (&User-Name =~ /\.$/) { (151) if (&User-Name =~ /\.$/) -> FALSE (151) if (&User-Name =~ /@\./) { (151) if (&User-Name =~ /@\./) -> FALSE (151) } # if (&User-Name) = notfound (151) } # policy filter_username = notfound (151) [preprocess] = ok (151) [chap] = noop (151) [mschap] = noop (151) [digest] = noop (151) suffix: Checking for suffix after "@" (151) suffix: No '@' in User-Name = "radius", looking up realm NULL (151) suffix: No such realm "NULL" (151) [suffix] = noop (151) eap: Peer sent EAP Response (code 2) ID 5 length 136 (151) eap: Continuing tunnel setup (151) [eap] = ok (151) } # authorize = ok (151) Found Auth-Type = eap (151) # Executing group from file /etc/raddb/sites-enabled/default (151) authenticate { (151) eap: Expiring EAP session with state 0x630ac958670fd09a (151) eap: Finished EAP session with state 0x630ac958670fd09a (151) eap: Previous EAP request found for state 0x630ac958670fd09a, released from the list (151) eap: Peer sent packet with method EAP PEAP (25) (151) eap: Calling submodule eap_peap to process data (151) eap_peap: (TLS) EAP Peer says that the final record size will be 126 bytes (151) eap_peap: (TLS) EAP Got all data (126 bytes) (151) eap_peap: (TLS) Handshake state - Server SSLv3/TLS write server done (151) eap_peap: (TLS) recv TLS 1.2 Handshake, ClientKeyExchange (151) eap_peap: (TLS) Handshake state - Server SSLv3/TLS read client key exchange (151) eap_peap: (TLS) Handshake state - Server SSLv3/TLS read change cipher spec (151) eap_peap: (TLS) recv TLS 1.2 Handshake, Finished (151) eap_peap: (TLS) Handshake state - Server SSLv3/TLS read finished (151) eap_peap: (TLS) send TLS 1.2 ChangeCipherSpec (151) eap_peap: (TLS) Handshake state - Server SSLv3/TLS write change cipher spec (151) eap_peap: (TLS) send TLS 1.2 Handshake, Finished (151) eap_peap: (TLS) Handshake state - Server SSLv3/TLS write finished (151) eap_peap: (TLS) Handshake state - SSL negotiation finished successfully (151) eap_peap: (TLS) Connection Established (151) eap_peap: TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384" (151) eap_peap: TLS-Session-Version = "TLS 1.2" (151) eap: Sending EAP Request (code 1) ID 6 length 57 (151) eap: EAP session adding &reply:State = 0x630ac958660cd09a (151) [eap] = handled (151) } # authenticate = handled (151) Using Post-Auth-Type Challenge (151) # Executing group from file /etc/raddb/sites-enabled/default (151) Challenge { ... } # empty sub-section is ignored (151) session-state: Saving cached attributes (151) Framed-MTU = 994 (151) TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake, ClientHello" (151) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHello" (151) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Certificate" (151) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerKeyExchange" (151) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHelloDone" (151) TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake, ClientKeyExchange" (151) TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake, Finished" (151) TLS-Session-Information = "(TLS) send TLS 1.2 ChangeCipherSpec" (151) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Finished" (151) TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384" (151) TLS-Session-Version = "TLS 1.2" (151) Sent Access-Challenge Id 0 from 122.1.5.84:1812 to 122.1.5.89:38592 length 0 (151) EAP-Message = 0x0106003919001403030001011603030028df5a2dbf06d22ab4019d7e7e1e52dd10d15b364fbe720f337a0dad9bddd021097acab466e5abed9d (151) Message-Authenticator = 0x00000000000000000000000000000000 (151) State = 0x630ac958660cd09a9aa17122d96b190f (151) Finished request Waking up in 4.9 seconds. (151) Cleaning up request packet ID 0 with timestamp +1384 (152) Received Access-Request Id 0 from 122.1.5.89:38592 to 122.1.5.84:1812 length 138 (152) User-Name = "radius" (152) NAS-IP-Address = 122.1.5.89 (152) Called-Station-Id = "d45d6478fb58" (152) Calling-Station-Id = "bc17b8e0bb04" (152) NAS-Identifier = "d45d6478fb58" (152) NAS-Port = 95 (152) Framed-MTU = 1400 (152) State = 0x630ac958660cd09a9aa17122d96b190f (152) NAS-Port-Type = Wireless-802.11 (152) EAP-Message = 0x020600061900 (152) Message-Authenticator = 0x112d12fd833e48da832f6cbf455735b2 (152) Restoring &session-state (152) &session-state:Framed-MTU = 994 (152) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake, ClientHello" (152) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHello" (152) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Certificate" (152) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerKeyExchange" (152) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHelloDone" (152) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake, ClientKeyExchange" (152) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake, Finished" (152) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 ChangeCipherSpec" (152) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Finished" (152) &session-state:TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384" (152) &session-state:TLS-Session-Version = "TLS 1.2" (152) # Executing section authorize from file /etc/raddb/sites-enabled/default (152) authorize { (152) policy filter_username { (152) if (&User-Name) { (152) if (&User-Name) -> TRUE (152) if (&User-Name) { (152) if (&User-Name =~ / /) { (152) if (&User-Name =~ / /) -> FALSE (152) if (&User-Name =~ /@[^@]*@/ ) { (152) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (152) if (&User-Name =~ /\.\./ ) { (152) if (&User-Name =~ /\.\./ ) -> FALSE (152) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (152) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (152) if (&User-Name =~ /\.$/) { (152) if (&User-Name =~ /\.$/) -> FALSE (152) if (&User-Name =~ /@\./) { (152) if (&User-Name =~ /@\./) -> FALSE (152) } # if (&User-Name) = notfound (152) } # policy filter_username = notfound (152) [preprocess] = ok (152) [chap] = noop (152) [mschap] = noop (152) [digest] = noop (152) suffix: Checking for suffix after "@" (152) suffix: No '@' in User-Name = "radius", looking up realm NULL (152) suffix: No such realm "NULL" (152) [suffix] = noop (152) eap: Peer sent EAP Response (code 2) ID 6 length 6 (152) eap: Continuing tunnel setup (152) [eap] = ok (152) } # authorize = ok (152) Found Auth-Type = eap (152) # Executing group from file /etc/raddb/sites-enabled/default (152) authenticate { (152) eap: Expiring EAP session with state 0x630ac958660cd09a (152) eap: Finished EAP session with state 0x630ac958660cd09a (152) eap: Previous EAP request found for state 0x630ac958660cd09a, released from the list (152) eap: Peer sent packet with method EAP PEAP (25) (152) eap: Calling submodule eap_peap to process data (152) eap_peap: (TLS) Peer ACKed our handshake fragment. handshake is finished (152) eap_peap: Session established. Decoding tunneled attributes (152) eap_peap: PEAP state TUNNEL ESTABLISHED (152) eap: Sending EAP Request (code 1) ID 7 length 40 (152) eap: EAP session adding &reply:State = 0x630ac958650dd09a (152) [eap] = handled (152) } # authenticate = handled (152) Using Post-Auth-Type Challenge (152) # Executing group from file /etc/raddb/sites-enabled/default (152) Challenge { ... } # empty sub-section is ignored (152) session-state: Saving cached attributes (152) Framed-MTU = 994 (152) TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake, ClientHello" (152) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHello" (152) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Certificate" (152) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerKeyExchange" (152) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHelloDone" (152) TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake, ClientKeyExchange" (152) TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake, Finished" (152) TLS-Session-Information = "(TLS) send TLS 1.2 ChangeCipherSpec" (152) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Finished" (152) TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384" (152) TLS-Session-Version = "TLS 1.2" (152) Sent Access-Challenge Id 0 from 122.1.5.84:1812 to 122.1.5.89:38592 length 0 (152) EAP-Message = 0x010700281900170303001ddf5a2dbf06d22ab59ac91c368446881a5f8729ab942d260a15e8b9c0c8 (152) Message-Authenticator = 0x00000000000000000000000000000000 (152) State = 0x630ac958650dd09a9aa17122d96b190f (152) Finished request Waking up in 4.9 seconds. (152) Cleaning up request packet ID 0 with timestamp +1384 (153) Received Access-Request Id 0 from 122.1.5.89:38592 to 122.1.5.84:1812 length 174 (153) User-Name = "radius" (153) NAS-IP-Address = 122.1.5.89 (153) Called-Station-Id = "d45d6478fb58" (153) Calling-Station-Id = "bc17b8e0bb04" (153) NAS-Identifier = "d45d6478fb58" (153) NAS-Port = 95 (153) Framed-MTU = 1400 (153) State = 0x630ac958650dd09a9aa17122d96b190f (153) NAS-Port-Type = Wireless-802.11 (153) EAP-Message = 0x0207002a1900170303001f884ec7abc6f5265e0d2a9c320457d6eead63a50403941394a04fcba537bfc8 (153) Message-Authenticator = 0x0c90cde75fb3b0711010ed5d7e417e94 (153) Restoring &session-state (153) &session-state:Framed-MTU = 994 (153) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake, ClientHello" (153) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHello" (153) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Certificate" (153) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerKeyExchange" (153) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHelloDone" (153) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake, ClientKeyExchange" (153) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake, Finished" (153) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 ChangeCipherSpec" (153) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Finished" (153) &session-state:TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384" (153) &session-state:TLS-Session-Version = "TLS 1.2" (153) # Executing section authorize from file /etc/raddb/sites-enabled/default (153) authorize { (153) policy filter_username { (153) if (&User-Name) { (153) if (&User-Name) -> TRUE (153) if (&User-Name) { (153) if (&User-Name =~ / /) { (153) if (&User-Name =~ / /) -> FALSE (153) if (&User-Name =~ /@[^@]*@/ ) { (153) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (153) if (&User-Name =~ /\.\./ ) { (153) if (&User-Name =~ /\.\./ ) -> FALSE (153) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (153) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (153) if (&User-Name =~ /\.$/) { (153) if (&User-Name =~ /\.$/) -> FALSE (153) if (&User-Name =~ /@\./) { (153) if (&User-Name =~ /@\./) -> FALSE (153) } # if (&User-Name) = notfound (153) } # policy filter_username = notfound (153) [preprocess] = ok (153) [chap] = noop (153) [mschap] = noop (153) [digest] = noop (153) suffix: Checking for suffix after "@" (153) suffix: No '@' in User-Name = "radius", looking up realm NULL (153) suffix: No such realm "NULL" (153) [suffix] = noop (153) eap: Peer sent EAP Response (code 2) ID 7 length 42 (153) eap: Continuing tunnel setup (153) [eap] = ok (153) } # authorize = ok (153) Found Auth-Type = eap (153) # Executing group from file /etc/raddb/sites-enabled/default (153) authenticate { (153) eap: Expiring EAP session with state 0x630ac958650dd09a (153) eap: Finished EAP session with state 0x630ac958650dd09a (153) eap: Previous EAP request found for state 0x630ac958650dd09a, released from the list (153) eap: Peer sent packet with method EAP PEAP (25) (153) eap: Calling submodule eap_peap to process data (153) eap_peap: (TLS) EAP Done initial handshake (153) eap_peap: Session established. Decoding tunneled attributes (153) eap_peap: PEAP state WAITING FOR INNER IDENTITY (153) eap_peap: Identity - radius (153) eap_peap: Got inner identity 'radius' (153) eap_peap: Setting default EAP type for tunneled EAP session (153) eap_peap: Got tunneled request (153) eap_peap: EAP-Message = 0x0207000b01726164697573 (153) eap_peap: Setting User-Name to radius (153) eap_peap: Sending tunneled request to inner-tunnel (153) eap_peap: EAP-Message = 0x0207000b01726164697573 (153) eap_peap: FreeRADIUS-Proxied-To = 127.0.0.1 (153) eap_peap: User-Name = "radius" (153) Virtual server inner-tunnel received request (153) EAP-Message = 0x0207000b01726164697573 (153) FreeRADIUS-Proxied-To = 127.0.0.1 (153) User-Name = "radius" (153) WARNING: Outer and inner identities are the same. User privacy is compromised. (153) server inner-tunnel { (153) # Executing section authorize from file /etc/raddb/sites-enabled/inner-tunnel (153) authorize { (153) policy filter_username { (153) if (&User-Name) { (153) if (&User-Name) -> TRUE (153) if (&User-Name) { (153) if (&User-Name =~ / /) { (153) if (&User-Name =~ / /) -> FALSE (153) if (&User-Name =~ /@[^@]*@/ ) { (153) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (153) if (&User-Name =~ /\.\./ ) { (153) if (&User-Name =~ /\.\./ ) -> FALSE (153) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (153) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (153) if (&User-Name =~ /\.$/) { (153) if (&User-Name =~ /\.$/) -> FALSE (153) if (&User-Name =~ /@\./) { (153) if (&User-Name =~ /@\./) -> FALSE (153) } # if (&User-Name) = notfound (153) } # policy filter_username = notfound (153) [chap] = noop (153) [mschap] = noop (153) suffix: Checking for suffix after "@" (153) suffix: No '@' in User-Name = "radius", looking up realm NULL (153) suffix: No such realm "NULL" (153) [suffix] = noop (153) update control { (153) &Proxy-To-Realm := LOCAL (153) } # update control = noop (153) eap: Peer sent EAP Response (code 2) ID 7 length 11 (153) eap: EAP-Identity reply, returning 'ok' so we can short-circuit the rest of authorize (153) [eap] = ok (153) } # authorize = ok (153) Found Auth-Type = eap (153) # Executing group from file /etc/raddb/sites-enabled/inner-tunnel (153) authenticate { (153) eap: Peer sent packet with method EAP Identity (1) (153) eap: Calling submodule eap_mschapv2 to process data (153) eap_mschapv2: Issuing Challenge (153) eap: Sending EAP Request (code 1) ID 8 length 43 (153) eap: EAP session adding &reply:State = 0x31c7c4b731cfde44 (153) [eap] = handled (153) } # authenticate = handled (153) } # server inner-tunnel (153) Virtual server sending reply (153) EAP-Message = 0x0108002b1a01080026106e02ee882823054de5c26b5373d2bb07667265657261646975732d332e302e3231 (153) Message-Authenticator = 0x00000000000000000000000000000000 (153) State = 0x31c7c4b731cfde4404b5a52394d7df9b (153) eap_peap: Got tunneled reply code 11 (153) eap_peap: EAP-Message = 0x0108002b1a01080026106e02ee882823054de5c26b5373d2bb07667265657261646975732d332e302e3231 (153) eap_peap: Message-Authenticator = 0x00000000000000000000000000000000 (153) eap_peap: State = 0x31c7c4b731cfde4404b5a52394d7df9b (153) eap_peap: Got tunneled reply RADIUS code 11 (153) eap_peap: EAP-Message = 0x0108002b1a01080026106e02ee882823054de5c26b5373d2bb07667265657261646975732d332e302e3231 (153) eap_peap: Message-Authenticator = 0x00000000000000000000000000000000 (153) eap_peap: State = 0x31c7c4b731cfde4404b5a52394d7df9b (153) eap_peap: Got tunneled Access-Challenge (153) eap: Sending EAP Request (code 1) ID 8 length 74 (153) eap: EAP session adding &reply:State = 0x630ac9586402d09a (153) [eap] = handled (153) } # authenticate = handled (153) Using Post-Auth-Type Challenge (153) # Executing group from file /etc/raddb/sites-enabled/default (153) Challenge { ... } # empty sub-section is ignored (153) session-state: Saving cached attributes (153) Framed-MTU = 994 (153) TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake, ClientHello" (153) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHello" (153) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Certificate" (153) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerKeyExchange" (153) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHelloDone" (153) TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake, ClientKeyExchange" (153) TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake, Finished" (153) TLS-Session-Information = "(TLS) send TLS 1.2 ChangeCipherSpec" (153) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Finished" (153) TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384" (153) TLS-Session-Version = "TLS 1.2" (153) Sent Access-Challenge Id 0 from 122.1.5.84:1812 to 122.1.5.89:38592 length 0 (153) EAP-Message = 0x0108004a1900170303003fdf5a2dbf06d22ab64a7be10eec6554072998bf973b7ba0c01e157dacfb145f9d2e847c85e582508718e6d3dc4714756f0d79e9603059aacbfc7dc104565b03 (153) Message-Authenticator = 0x00000000000000000000000000000000 (153) State = 0x630ac9586402d09a9aa17122d96b190f (153) Finished request Waking up in 4.9 seconds. (153) Cleaning up request packet ID 0 with timestamp +1384 (154) Received Access-Request Id 0 from 122.1.5.89:38592 to 122.1.5.84:1812 length 228 (154) User-Name = "radius" (154) NAS-IP-Address = 122.1.5.89 (154) Called-Station-Id = "d45d6478fb58" (154) Calling-Station-Id = "bc17b8e0bb04" (154) NAS-Identifier = "d45d6478fb58" (154) NAS-Port = 95 (154) Framed-MTU = 1400 (154) State = 0x630ac9586402d09a9aa17122d96b190f (154) NAS-Port-Type = Wireless-802.11 (154) EAP-Message = 0x0208006019001703030055884ec7abc6f5265f2591d800334eaa7e2e433a89020bc1216e9573473e5773239286c098e49b70611e7888122614f7d6d044b90a6138fd98aaafce3194e3bacf0be5c9f130820568d488bf820cfacffc21be850703 (154) Message-Authenticator = 0xa969c36b810d80b203bd0943fc785698 (154) Restoring &session-state (154) &session-state:Framed-MTU = 994 (154) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake, ClientHello" (154) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHello" (154) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Certificate" (154) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerKeyExchange" (154) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHelloDone" (154) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake, ClientKeyExchange" (154) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake, Finished" (154) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 ChangeCipherSpec" (154) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Finished" (154) &session-state:TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384" (154) &session-state:TLS-Session-Version = "TLS 1.2" (154) # Executing section authorize from file /etc/raddb/sites-enabled/default (154) authorize { (154) policy filter_username { (154) if (&User-Name) { (154) if (&User-Name) -> TRUE (154) if (&User-Name) { (154) if (&User-Name =~ / /) { (154) if (&User-Name =~ / /) -> FALSE (154) if (&User-Name =~ /@[^@]*@/ ) { (154) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (154) if (&User-Name =~ /\.\./ ) { (154) if (&User-Name =~ /\.\./ ) -> FALSE (154) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (154) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (154) if (&User-Name =~ /\.$/) { (154) if (&User-Name =~ /\.$/) -> FALSE (154) if (&User-Name =~ /@\./) { (154) if (&User-Name =~ /@\./) -> FALSE (154) } # if (&User-Name) = notfound (154) } # policy filter_username = notfound (154) [preprocess] = ok (154) [chap] = noop (154) [mschap] = noop (154) [digest] = noop (154) suffix: Checking for suffix after "@" (154) suffix: No '@' in User-Name = "radius", looking up realm NULL (154) suffix: No such realm "NULL" (154) [suffix] = noop (154) eap: Peer sent EAP Response (code 2) ID 8 length 96 (154) eap: Continuing tunnel setup (154) [eap] = ok (154) } # authorize = ok (154) Found Auth-Type = eap (154) # Executing group from file /etc/raddb/sites-enabled/default (154) authenticate { (154) eap: Expiring EAP session with state 0x31c7c4b731cfde44 (154) eap: Finished EAP session with state 0x630ac9586402d09a (154) eap: Previous EAP request found for state 0x630ac9586402d09a, released from the list (154) eap: Peer sent packet with method EAP PEAP (25) (154) eap: Calling submodule eap_peap to process data (154) eap_peap: (TLS) EAP Done initial handshake (154) eap_peap: Session established. Decoding tunneled attributes (154) eap_peap: PEAP state phase2 (154) eap_peap: EAP method MSCHAPv2 (26) (154) eap_peap: Got tunneled request (154) eap_peap: EAP-Message = 0x020800411a0208003c312761f8964ef27b1f0ae0d9af033e67900000000000000000c57cad960963ee9b8004f9918e56f3dbb01713aefb4a5d0d00726164697573 (154) eap_peap: Setting User-Name to radius (154) eap_peap: Sending tunneled request to inner-tunnel (154) eap_peap: EAP-Message = 0x020800411a0208003c312761f8964ef27b1f0ae0d9af033e67900000000000000000c57cad960963ee9b8004f9918e56f3dbb01713aefb4a5d0d00726164697573 (154) eap_peap: FreeRADIUS-Proxied-To = 127.0.0.1 (154) eap_peap: User-Name = "radius" (154) eap_peap: State = 0x31c7c4b731cfde4404b5a52394d7df9b (154) Virtual server inner-tunnel received request (154) EAP-Message = 0x020800411a0208003c312761f8964ef27b1f0ae0d9af033e67900000000000000000c57cad960963ee9b8004f9918e56f3dbb01713aefb4a5d0d00726164697573 (154) FreeRADIUS-Proxied-To = 127.0.0.1 (154) User-Name = "radius" (154) State = 0x31c7c4b731cfde4404b5a52394d7df9b (154) WARNING: Outer and inner identities are the same. User privacy is compromised. (154) server inner-tunnel { (154) session-state: No cached attributes (154) # Executing section authorize from file /etc/raddb/sites-enabled/inner-tunnel (154) authorize { (154) policy filter_username { (154) if (&User-Name) { (154) if (&User-Name) -> TRUE (154) if (&User-Name) { (154) if (&User-Name =~ / /) { (154) if (&User-Name =~ / /) -> FALSE (154) if (&User-Name =~ /@[^@]*@/ ) { (154) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (154) if (&User-Name =~ /\.\./ ) { (154) if (&User-Name =~ /\.\./ ) -> FALSE (154) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (154) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (154) if (&User-Name =~ /\.$/) { (154) if (&User-Name =~ /\.$/) -> FALSE (154) if (&User-Name =~ /@\./) { (154) if (&User-Name =~ /@\./) -> FALSE (154) } # if (&User-Name) = notfound (154) } # policy filter_username = notfound (154) [chap] = noop (154) [mschap] = noop (154) suffix: Checking for suffix after "@" (154) suffix: No '@' in User-Name = "radius", looking up realm NULL (154) suffix: No such realm "NULL" (154) [suffix] = noop (154) update control { (154) &Proxy-To-Realm := LOCAL (154) } # update control = noop (154) eap: Peer sent EAP Response (code 2) ID 8 length 65 (154) eap: No EAP Start, assuming it's an on-going EAP conversation (154) [eap] = updated (154) [files] = noop rlm_ldap (ldap): Reserved connection (28) (154) ldap: EXPAND (uid=%{%{Stripped-User-Name}:-%{User-Name}}) (154) ldap: --> (uid=radius) (154) ldap: Performing search in "cn=users,cn=compat,dc=qi-cap,dc=com" with filter "(uid=radius)", scope "sub" (154) ldap: Waiting for search result... (154) ldap: User object found at DN "uid=radius,cn=users,cn=compat,dc=qi-cap,dc=com" (154) ldap: Processing user attributes (154) ldap: WARNING: No "known good" password added. Ensure the admin user has permission to read the password attribute (154) ldap: WARNING: PAP authentication will *NOT* work with Active Directory (if that is what you were trying to configure) rlm_ldap (ldap): Released connection (28) (154) [ldap] = ok (154) if ((ok || updated) && User-Password) { (154) if ((ok || updated) && User-Password) -> FALSE (154) [expiration] = noop (154) [logintime] = noop (154) [pap] = noop (154) } # authorize = updated (154) Found Auth-Type = eap (154) # Executing group from file /etc/raddb/sites-enabled/inner-tunnel (154) authenticate { (154) eap: Expiring EAP session with state 0x31c7c4b731cfde44 (154) eap: Finished EAP session with state 0x31c7c4b731cfde44 (154) eap: Previous EAP request found for state 0x31c7c4b731cfde44, released from the list (154) eap: Peer sent packet with method EAP MSCHAPv2 (26) (154) eap: Calling submodule eap_mschapv2 to process data (154) eap_mschapv2: # Executing group from file /etc/raddb/sites-enabled/inner-tunnel (154) eap_mschapv2: authenticate { (154) mschap: WARNING: No Cleartext-Password configured. Cannot create NT-Password (154) mschap: Creating challenge hash with username: radius (154) mschap: Client is using MS-CHAPv2 (154) mschap: ERROR: FAILED: No NT-Password. Cannot perform authentication (154) mschap: ERROR: MS-CHAP2-Response is incorrect (154) eap_mschapv2: [mschap] = reject (154) eap_mschapv2: } # authenticate = reject (154) eap: Sending EAP Failure (code 4) ID 8 length 4 (154) eap: Freeing handler (154) [eap] = reject (154) } # authenticate = reject (154) Failed to authenticate the user (154) Using Post-Auth-Type Reject (154) # Executing group from file /etc/raddb/sites-enabled/inner-tunnel (154) Post-Auth-Type REJECT { (154) attr_filter.access_reject: EXPAND %{User-Name} (154) attr_filter.access_reject: --> radius (154) attr_filter.access_reject: Matched entry DEFAULT at line 11 (154) [attr_filter.access_reject] = updated (154) update outer.session-state { (154) &Module-Failure-Message := &request:Module-Failure-Message -> 'mschap: FAILED: No NT-Password. Cannot perform authentication' (154) } # update outer.session-state = noop (154) } # Post-Auth-Type REJECT = updated (154) } # server inner-tunnel (154) Virtual server sending reply (154) MS-CHAP-Error = "\010E=691 R=1 C=f9cb16da8d4880d41b5444a43fe5f741 V=3 M=Authentication rejected" (154) EAP-Message = 0x04080004 (154) Message-Authenticator = 0x00000000000000000000000000000000 (154) eap_peap: Got tunneled reply code 3 (154) eap_peap: MS-CHAP-Error = "\010E=691 R=1 C=f9cb16da8d4880d41b5444a43fe5f741 V=3 M=Authentication rejected" (154) eap_peap: EAP-Message = 0x04080004 (154) eap_peap: Message-Authenticator = 0x00000000000000000000000000000000 (154) eap_peap: Got tunneled reply RADIUS code 3 (154) eap_peap: MS-CHAP-Error = "\010E=691 R=1 C=f9cb16da8d4880d41b5444a43fe5f741 V=3 M=Authentication rejected" (154) eap_peap: EAP-Message = 0x04080004 (154) eap_peap: Message-Authenticator = 0x00000000000000000000000000000000 (154) eap_peap: Tunneled authentication was rejected (154) eap_peap: FAILURE (154) eap: Sending EAP Request (code 1) ID 9 length 46 (154) eap: EAP session adding &reply:State = 0x630ac9586b03d09a (154) [eap] = handled (154) } # authenticate = handled (154) Using Post-Auth-Type Challenge (154) # Executing group from file /etc/raddb/sites-enabled/default (154) Challenge { ... } # empty sub-section is ignored (154) session-state: Saving cached attributes (154) Framed-MTU = 994 (154) TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake, ClientHello" (154) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHello" (154) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Certificate" (154) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerKeyExchange" (154) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHelloDone" (154) TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake, ClientKeyExchange" (154) TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake, Finished" (154) TLS-Session-Information = "(TLS) send TLS 1.2 ChangeCipherSpec" (154) TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Finished" (154) TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384" (154) TLS-Session-Version = "TLS 1.2" (154) Module-Failure-Message := "mschap: FAILED: No NT-Password. Cannot perform authentication" (154) Sent Access-Challenge Id 0 from 122.1.5.84:1812 to 122.1.5.89:38592 length 0 (154) EAP-Message = 0x0109002e19001703030023df5a2dbf06d22ab7988357ca4376c8443bad19a74da9a27c08d35de44920f26db66ad6 (154) Message-Authenticator = 0x00000000000000000000000000000000 (154) State = 0x630ac9586b03d09a9aa17122d96b190f (154) Finished request Waking up in 4.9 seconds. (154) Cleaning up request packet ID 0 with timestamp +1384 (155) Received Access-Request Id 0 from 122.1.5.89:38592 to 122.1.5.84:1812 length 178 (155) User-Name = "radius" (155) NAS-IP-Address = 122.1.5.89 (155) Called-Station-Id = "d45d6478fb58" (155) Calling-Station-Id = "bc17b8e0bb04" (155) NAS-Identifier = "d45d6478fb58" (155) NAS-Port = 95 (155) Framed-MTU = 1400 (155) State = 0x630ac9586b03d09a9aa17122d96b190f (155) NAS-Port-Type = Wireless-802.11 (155) EAP-Message = 0x0209002e19001703030023884ec7abc6f52660b5dcbe7cbed67dbbb1a7f00d724cf86a2ba07af0a7460a59246ff9 (155) Message-Authenticator = 0xb72d7b97453e438ca0f7533886c66f15 (155) Restoring &session-state (155) &session-state:Framed-MTU = 994 (155) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.3 Handshake, ClientHello" (155) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHello" (155) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Certificate" (155) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerKeyExchange" (155) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, ServerHelloDone" (155) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake, ClientKeyExchange" (155) &session-state:TLS-Session-Information = "(TLS) recv TLS 1.2 Handshake, Finished" (155) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 ChangeCipherSpec" (155) &session-state:TLS-Session-Information = "(TLS) send TLS 1.2 Handshake, Finished" (155) &session-state:TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384" (155) &session-state:TLS-Session-Version = "TLS 1.2" (155) &session-state:Module-Failure-Message := "mschap: FAILED: No NT-Password. Cannot perform authentication" (155) # Executing section authorize from file /etc/raddb/sites-enabled/default (155) authorize { (155) policy filter_username { (155) if (&User-Name) { (155) if (&User-Name) -> TRUE (155) if (&User-Name) { (155) if (&User-Name =~ / /) { (155) if (&User-Name =~ / /) -> FALSE (155) if (&User-Name =~ /@[^@]*@/ ) { (155) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (155) if (&User-Name =~ /\.\./ ) { (155) if (&User-Name =~ /\.\./ ) -> FALSE (155) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (155) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (155) if (&User-Name =~ /\.$/) { (155) if (&User-Name =~ /\.$/) -> FALSE (155) if (&User-Name =~ /@\./) { (155) if (&User-Name =~ /@\./) -> FALSE (155) } # if (&User-Name) = notfound (155) } # policy filter_username = notfound (155) [preprocess] = ok (155) [chap] = noop (155) [mschap] = noop (155) [digest] = noop (155) suffix: Checking for suffix after "@" (155) suffix: No '@' in User-Name = "radius", looking up realm NULL (155) suffix: No such realm "NULL" (155) [suffix] = noop (155) eap: Peer sent EAP Response (code 2) ID 9 length 46 (155) eap: Continuing tunnel setup (155) [eap] = ok (155) } # authorize = ok (155) Found Auth-Type = eap (155) # Executing group from file /etc/raddb/sites-enabled/default (155) authenticate { (155) eap: Expiring EAP session with state 0x630ac9586b03d09a (155) eap: Finished EAP session with state 0x630ac9586b03d09a (155) eap: Previous EAP request found for state 0x630ac9586b03d09a, released from the list (155) eap: Peer sent packet with method EAP PEAP (25) (155) eap: Calling submodule eap_peap to process data (155) eap_peap: (TLS) EAP Done initial handshake (155) eap_peap: Session established. Decoding tunneled attributes (155) eap_peap: PEAP state send tlv failure (155) eap_peap: Received EAP-TLV response (155) eap_peap: ERROR: The users session was previously rejected: returning reject (again.) (155) eap_peap: This means you need to read the PREVIOUS messages in the debug output (155) eap_peap: to find out the reason why the user was rejected (155) eap_peap: Look for "reject" or "fail". Those earlier messages will tell you (155) eap_peap: what went wrong, and how to fix the problem (155) eap: ERROR: Failed continuing EAP PEAP (25) session. EAP sub-module failed (155) eap: Sending EAP Failure (code 4) ID 9 length 4 (155) eap: Failed in EAP select (155) [eap] = invalid (155) } # authenticate = invalid (155) Failed to authenticate the user (155) Using Post-Auth-Type Reject (155) # Executing group from file /etc/raddb/sites-enabled/default (155) Post-Auth-Type REJECT { (155) attr_filter.access_reject: EXPAND %{User-Name} (155) attr_filter.access_reject: --> radius (155) attr_filter.access_reject: Matched entry DEFAULT at line 11 (155) [attr_filter.access_reject] = updated (155) [eap] = noop (155) policy remove_reply_message_if_eap { (155) if (&reply:EAP-Message && &reply:Reply-Message) { (155) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE (155) else { (155) [noop] = noop (155) } # else = noop (155) } # policy remove_reply_message_if_eap = noop (155) } # Post-Auth-Type REJECT = updated (155) Delaying response for 1.000000 seconds Waking up in 0.3 seconds. Waking up in 0.6 seconds. (155) Sending delayed response (155) Sent Access-Reject Id 0 from 122.1.5.84:1812 to 122.1.5.89:38592 length 44 (155) EAP-Message = 0x04090004 (155) Message-Authenticator = 0x00000000000000000000000000000000 Waking up in 3.9 seconds. (155) Cleaning up request packet ID 0 with timestamp +1384 Ready to process requests ================================================================================== Below is the wireless authentication settings I was using on the laptop. [image: image.png] However,just to troubleshoot, added a user profile in user config file at sudo vim /etc/raddb/users and below is the same. And when trying to authenticate with this test profile am able to authenticate and connect to network (QICAP_5G-2). [image: image.png] So, not really sure why authentication is failing for other user profiles which are not added in the user config file and that is not the expected behaviour. Thanks Krishna On Thu, 14 Jul 2022 at 12:37, Krishna Chaitanya < krishna.chaitanya@qi-cap.com> wrote:
My Question is like, Why is the request being Ignored?
*Krishna Chaitanya Ala* *Network and Operations Engineer*
*QI Cap Markets LLP* *Bangalore,Karnataka* *Slack : krishna.chaitanya@qi-cap.com <krishna.chaitanya@qi-cap.com>*
On Thu, 14 Jul 2022 at 12:27, Michael Schwartzkopff <ms@sys4.de> wrote:
What is unclear about the log message:
Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.136
Muchael
14.07.2022 08:47:56 Krishna Chaitanya <krishna.chaitanya@qi-cap.com>:
Thanks very much Michael for your help and after making those changes, I was able to see an Accept message from FreeRadius. However, when trying to authenticate wireless using Freeradius I can see something like below. Please suggest!! ============================================== Listening on auth address * port 1812 bound to server default Listening on acct address * port 1813 bound to server default Listening on auth address :: port 1812 bound to server default Listening on acct address :: port 1813 bound to server default Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel Listening on proxy address * port 34082 Listening on proxy address :: port 42473 Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.89 port 49457 proto udp Ready to process requests Ignoring request to auth address * port 1812 bound to server default from unknown client 122.1.5.136 port 37235 proto udp Ready to process requests
Thanks Krishna
On Wed, 13 Jul 2022 at 17:03, Michael Schwartzkopff <ms@sys4.de> wrote:
On 13.07.22 12:59, Krishna Chaitanya wrote:
Michael, The manual search is giving expected results but not sure why I am seeing 2 search results. Please find the below radtest results along with the manual ldap search report.
================================================================ [admin@freeradius raddb]$ ldapsearch -x uid=*krishnachaitanya* # extended LDIF # # LDAPv3 # base <dc=qi-cap,dc=com> (default) with scope subtree # filter: uid=krishnachaitanya # requesting: ALL #
# krishnachaitanya, users, compat, qi-cap.com dn: uid=krishnachaitanya,cn=users,cn=compat,dc=qi-cap,dc=com objectClass: posixAccount objectClass: ipaOverrideTarget objectClass: top gecos: Krishna Ala cn: Krishna Ala uidNumber: 1283800005 gidNumber: 1283800005 loginShell: /bin/sh homeDirectory: /home/krishnachaitanya ipaAnchorUUID:: OklQQTpxaS1jYXAuY29tOmY1N2IxYTcyLWZlYjAtMTFlYy04MWYxLTA4MDAyNz M2ZWMzOQ== uid: krishnachaitanya
# krishnachaitanya, users, accounts, qi-cap.com dn: uid=krishnachaitanya,cn=users,cn=accounts,dc=qi-cap,dc=com givenName: Krishna sn: Ala uid: krishnachaitanya cn: Krishna Ala displayName: Krishna Ala initials: KA gecos: Krishna Ala objectClass: top objectClass: person objectClass: organizationalperson objectClass: inetorgperson objectClass: inetuser objectClass: posixaccount objectClass: krbprincipalaux objectClass: krbticketpolicyaux objectClass: ipaobject objectClass: ipasshuser objectClass: ipaSshGroupOfPubKeys objectClass: mepOriginEntry objectClass: ipantuserattrs loginShell: /bin/sh homeDirectory: /home/krishnachaitanya uidNumber: 1283800005 gidNumber: 1283800005 ipaNTSecurityIdentifier: S-1-5-21-2716401607-2924185208-1841578509-1005
# search result search: 2 result: 0 Success
# numResponses: 3 # numEntries: 2
===============================================================================================
[root@freeradius admin]# radiusd -X FreeRADIUS Version 3.0.21 Copyright (C) 1999-2019 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 For more information about these matters, see the file named COPYRIGHT Starting - reading configuration files ... including dictionary file /usr/share/freeradius/dictionary including dictionary file /usr/share/freeradius/dictionary.dhcp including dictionary file /usr/share/freeradius/dictionary.vqp including dictionary file /etc/raddb/dictionary including configuration file /etc/raddb/radiusd.conf including configuration file /etc/raddb/proxy.conf including configuration file /etc/raddb/clients.conf including files in directory /etc/raddb/mods-enabled/ including configuration file /etc/raddb/mods-enabled/always including configuration file /etc/raddb/mods-enabled/attr_filter including configuration file /etc/raddb/mods-enabled/cache_eap including configuration file /etc/raddb/mods-enabled/chap including configuration file /etc/raddb/mods-enabled/date including configuration file /etc/raddb/mods-enabled/detail including configuration file /etc/raddb/mods-enabled/detail.log including configuration file /etc/raddb/mods-enabled/digest including configuration file /etc/raddb/mods-enabled/dynamic_clients including configuration file /etc/raddb/mods-enabled/eap including configuration file /etc/raddb/mods-enabled/echo including configuration file /etc/raddb/mods-enabled/exec including configuration file /etc/raddb/mods-enabled/expiration including configuration file /etc/raddb/mods-enabled/expr including configuration file /etc/raddb/mods-enabled/files including configuration file /etc/raddb/mods-enabled/linelog including configuration file /etc/raddb/mods-enabled/logintime including configuration file /etc/raddb/mods-enabled/mschap including configuration file /etc/raddb/mods-enabled/ntlm_auth including configuration file /etc/raddb/mods-enabled/pap including configuration file /etc/raddb/mods-enabled/passwd including configuration file /etc/raddb/mods-enabled/preprocess including configuration file /etc/raddb/mods-enabled/radutmp including configuration file /etc/raddb/mods-enabled/realm including configuration file /etc/raddb/mods-enabled/replicate including configuration file /etc/raddb/mods-enabled/soh including configuration file /etc/raddb/mods-enabled/sradutmp including configuration file /etc/raddb/mods-enabled/unix including configuration file /etc/raddb/mods-enabled/unpack including configuration file /etc/raddb/mods-enabled/utf8 including configuration file /etc/raddb/mods-enabled/ldap including files in directory /etc/raddb/policy.d/ including configuration file /etc/raddb/policy.d/accounting including configuration file /etc/raddb/policy.d/canonicalization including configuration file /etc/raddb/policy.d/control including configuration file /etc/raddb/policy.d/cui including configuration file /etc/raddb/policy.d/debug including configuration file /etc/raddb/policy.d/dhcp including configuration file /etc/raddb/policy.d/eap including configuration file /etc/raddb/policy.d/filter including configuration file /etc/raddb/policy.d/operator-name including configuration file /etc/raddb/policy.d/rfc7542 including files in directory /etc/raddb/sites-enabled/ including configuration file /etc/raddb/sites-enabled/default including configuration file /etc/raddb/sites-enabled/inner-tunnel main { security { user = "radiusd" group = "radiusd" allow_core_dumps = no } name = "radiusd" prefix = "/usr" localstatedir = "/var" logdir = "/var/log/radius" run_dir = "/var/run/radiusd" } main { name = "radiusd" prefix = "/usr" localstatedir = "/var" sbindir = "/usr/sbin" logdir = "/var/log/radius" run_dir = "/var/run/radiusd" libdir = "/usr/lib64/freeradius" radacctdir = "/var/log/radius/radacct" hostname_lookups = no max_request_time = 30 cleanup_delay = 5 max_requests = 16384 pidfile = "/var/run/radiusd/radiusd.pid" checkrad = "/usr/sbin/checkrad" debug_level = 0 proxy_requests = yes log { stripped_names = no auth = no auth_badpass = no auth_goodpass = no colourise = yes msg_denied = "You are already logged in - access denied" } resources { } security { max_attributes = 200 reject_delay = 1.000000 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 = <<< secret >>> response_window = 20.000000 response_timeouts = 1 max_outstanding = 65536 zombie_period = 40 status_check = "status-server" ping_interval = 30 check_interval = 30 check_timeout = 4 num_answers_to_alive = 3 revive_interval = 120 limit { max_connections = 16 max_requests = 0 lifetime = 0 idle_timeout = 0 } coa { 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 = 122.1.5.84 require_message_authenticator = no secret = <<< secret >>> nas_type = "other" proto = "*" limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } client localhost_ipv6 { ipv6addr = ::1 require_message_authenticator = no secret = <<< secret >>> limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } Debugger not attached # Creating Auth-Type = mschap # Creating Auth-Type = digest # Creating Auth-Type = eap # Creating Auth-Type = PAP # Creating Auth-Type = CHAP # Creating Auth-Type = MS-CHAP # Creating Auth-Type = LDAP radiusd: #### Instantiating modules #### modules { # Loaded module rlm_always # Loading module "reject" from file /etc/raddb/mods-enabled/always always reject { rcode = "reject" simulcount = 0 mpp = no } # Loading module "fail" from file /etc/raddb/mods-enabled/always always fail { rcode = "fail" simulcount = 0 mpp = no } # Loading module "ok" from file /etc/raddb/mods-enabled/always always ok { rcode = "ok" simulcount = 0 mpp = no } # Loading module "handled" from file /etc/raddb/mods-enabled/always always handled { rcode = "handled" simulcount = 0 mpp = no } # Loading module "invalid" from file /etc/raddb/mods-enabled/always always invalid { rcode = "invalid" simulcount = 0 mpp = no } # Loading module "userlock" from file /etc/raddb/mods-enabled/always always userlock { rcode = "userlock" simulcount = 0 mpp = no } # Loading module "notfound" from file /etc/raddb/mods-enabled/always always notfound { rcode = "notfound" simulcount = 0 mpp = no } # Loading module "noop" from file /etc/raddb/mods-enabled/always always noop { rcode = "noop" simulcount = 0 mpp = no } # Loading module "updated" from file /etc/raddb/mods-enabled/always always updated { rcode = "updated" simulcount = 0 mpp = no } # Loaded module rlm_attr_filter # Loading module "attr_filter.post-proxy" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.post-proxy { filename = "/etc/raddb/mods-config/attr_filter/post-proxy" key = "%{Realm}" relaxed = no } # Loading module "attr_filter.pre-proxy" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.pre-proxy { filename = "/etc/raddb/mods-config/attr_filter/pre-proxy" key = "%{Realm}" relaxed = no } # Loading module "attr_filter.access_reject" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.access_reject { filename = "/etc/raddb/mods-config/attr_filter/access_reject" key = "%{User-Name}" relaxed = no } # Loading module "attr_filter.access_challenge" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.access_challenge { filename = "/etc/raddb/mods-config/attr_filter/access_challenge" key = "%{User-Name}" relaxed = no } # Loading module "attr_filter.accounting_response" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.accounting_response { filename = "/etc/raddb/mods-config/attr_filter/accounting_response" key = "%{User-Name}" relaxed = no } # Loaded module rlm_cache # Loading module "cache_eap" from file /etc/raddb/mods-enabled/cache_eap cache cache_eap { driver = "rlm_cache_rbtree" key = "%{%{control:State}:-%{%{reply:State}:-%{State}}}" ttl = 15 max_entries = 0 epoch = 0 add_stats = no } # Loaded module rlm_chap # Loading module "chap" from file /etc/raddb/mods-enabled/chap # Loaded module rlm_date # Loading module "date" from file /etc/raddb/mods-enabled/date date { format = "%b %e %Y %H:%M:%S %Z" utc = no } # Loading module "wispr2date" from file /etc/raddb/mods-enabled/date date wispr2date { format = "%Y-%m-%dT%H:%M:%S" utc = no } # Loaded module rlm_detail # Loading module "detail" from file /etc/raddb/mods-enabled/detail detail { filename =
"/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d"
header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "auth_log" from file /etc/raddb/mods-enabled/detail.log detail auth_log { filename =
"/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d"
header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "reply_log" from file /etc/raddb/mods-enabled/detail.log detail reply_log { filename =
"/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/reply-detail-%Y%m%d"
header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "pre_proxy_log" from file /etc/raddb/mods-enabled/detail.log detail pre_proxy_log { filename =
"/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y%m%d"
header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "post_proxy_log" from file /etc/raddb/mods-enabled/detail.log detail post_proxy_log { filename =
"/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/post-proxy-detail-%Y%m%d"
header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loaded module rlm_digest # Loading module "digest" from file /etc/raddb/mods-enabled/digest # Loaded module rlm_dynamic_clients # Loading module "dynamic_clients" from file /etc/raddb/mods-enabled/dynamic_clients # Loaded module rlm_eap # Loading module "eap" from file /etc/raddb/mods-enabled/eap eap { default_eap_type = "md5" timer_expire = 60 ignore_unknown_eap_types = no cisco_accounting_username_bug = no max_sessions = 16384 } # Loaded module rlm_exec # Loading module "echo" from file /etc/raddb/mods-enabled/echo exec echo { wait = yes program = "/bin/echo %{User-Name}" input_pairs = "request" output_pairs = "reply" shell_escape = yes } # Loading module "exec" from file /etc/raddb/mods-enabled/exec exec { wait = no input_pairs = "request" shell_escape = yes timeout = 10 } # Loaded module rlm_expiration # Loading module "expiration" from file /etc/raddb/mods-enabled/expiration # Loaded module rlm_expr # Loading module "expr" from file /etc/raddb/mods-enabled/expr expr { safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /äéöüàâæçèéêëîïôœùûüaÿÄÉÖÜßÀÂÆÇÈÉÊËÎÏÔŒÙÛÜŸ" } # Loaded module rlm_files # Loading module "files" from file /etc/raddb/mods-enabled/files files { filename = "/etc/raddb/mods-config/files/authorize" acctusersfile = "/etc/raddb/mods-config/files/accounting" preproxy_usersfile = "/etc/raddb/mods-config/files/pre-proxy" } # Loaded module rlm_linelog # Loading module "linelog" from file /etc/raddb/mods-enabled/linelog linelog { filename = "/var/log/radius/linelog" escape_filenames = no syslog_severity = "info" permissions = 384 format = "This is a log message for %{User-Name}" reference = "messages.%{%{reply:Packet-Type}:-default}" } # Loading module "log_accounting" from file /etc/raddb/mods-enabled/linelog linelog log_accounting { filename = "/var/log/radius/linelog-accounting" escape_filenames = no syslog_severity = "info" permissions = 384 format = "" reference = "Accounting-Request.%{%{Acct-Status-Type}:-unknown}" } # Loaded module rlm_logintime # Loading module "logintime" from file /etc/raddb/mods-enabled/logintime logintime { minimum_timeout = 60 } # Loaded module rlm_mschap # Loading module "mschap" from file /etc/raddb/mods-enabled/mschap mschap { use_mppe = yes require_encryption = no require_strong = no with_ntdomain_hack = yes passchange { } allow_retry = yes winbind_retry_with_normalised_username = no } # Loading module "ntlm_auth" from file /etc/raddb/mods-enabled/ntlm_auth exec ntlm_auth { wait = yes program = "/path/to/ntlm_auth --request-nt-key --domain=MYDOMAIN --username=%{mschap:User-Name} --password=%{User-Password}" shell_escape = yes } # Loaded module rlm_pap # Loading module "pap" from file /etc/raddb/mods-enabled/pap pap { normalise = yes } # Loaded module rlm_passwd # Loading module "etc_passwd" from file /etc/raddb/mods-enabled/passwd passwd etc_passwd { filename = "/etc/passwd" format = "*User-Name:Crypt-Password:" delimiter = ":" ignore_nislike = no ignore_empty = yes allow_multiple_keys = no hash_size = 100 } # Loaded module rlm_preprocess # Loading module "preprocess" from file /etc/raddb/mods-enabled/preprocess preprocess { huntgroups = "/etc/raddb/mods-config/preprocess/huntgroups" hints = "/etc/raddb/mods-config/preprocess/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 } # Loaded module rlm_radutmp # Loading module "radutmp" from file /etc/raddb/mods-enabled/radutmp radutmp { filename = "/var/log/radius/radutmp" username = "%{User-Name}" case_sensitive = yes check_with_nas = yes permissions = 384 caller_id = yes } # Loaded module rlm_realm # Loading module "IPASS" from file /etc/raddb/mods-enabled/realm realm IPASS { format = "prefix" delimiter = "/" ignore_default = no ignore_null = no } # Loading module "suffix" from file /etc/raddb/mods-enabled/realm realm suffix { format = "suffix" delimiter = "@" ignore_default = no ignore_null = no } # Loading module "bangpath" from file /etc/raddb/mods-enabled/realm realm bangpath { format = "prefix" delimiter = "!" ignore_default = no ignore_null = no } # Loading module "realmpercent" from file /etc/raddb/mods-enabled/realm realm realmpercent { format = "suffix" delimiter = "%" ignore_default = no ignore_null = no } # Loading module "ntdomain" from file /etc/raddb/mods-enabled/realm realm ntdomain { format = "prefix" delimiter = "\\" ignore_default = no ignore_null = no } # Loaded module rlm_replicate # Loading module "replicate" from file /etc/raddb/mods-enabled/replicate # Loaded module rlm_soh # Loading module "soh" from file /etc/raddb/mods-enabled/soh soh { dhcp = yes } # Loading module "sradutmp" from file /etc/raddb/mods-enabled/sradutmp radutmp sradutmp { filename = "/var/log/radius/sradutmp" username = "%{User-Name}" case_sensitive = yes check_with_nas = yes permissions = 420 caller_id = no } # Loaded module rlm_unix # Loading module "unix" from file /etc/raddb/mods-enabled/unix unix { radwtmp = "/var/log/radius/radwtmp" } Creating attribute Unix-Group # Loaded module rlm_unpack # Loading module "unpack" from file /etc/raddb/mods-enabled/unpack # Loaded module rlm_utf8 # Loading module "utf8" from file /etc/raddb/mods-enabled/utf8 # Loaded module rlm_ldap # Loading module "ldap" from file /etc/raddb/mods-enabled/ldap ldap { server = "122.1.5.84" sasl { } user_dn = "LDAP-UserDn" user { scope = "sub" access_positive = yes sasl { } } group { filter = "(objectClass=posixGroup)" scope = "sub" name_attribute = "cn" membership_attribute = "memberOf" cacheable_name = no cacheable_dn = no allow_dangling_group_ref = no } client { filter = "(objectClass=radiusClient)" scope = "sub" base_dn = "O=QI-CAP.COM,CN=Certificate Authority,cn=users,cn=accounts,dc=qi-cap,uid=krishnachaitanya,dc=com" } profile { } options { ldap_debug = 40 chase_referrals = yes rebind = yes net_timeout = 1 res_timeout = 10 srv_timelimit = 3 idle = 60 probes = 3 interval = 3 } tls { start_tls = no } } Creating attribute LDAP-Group instantiate { } # Instantiating module "reject" from file /etc/raddb/mods-enabled/always # Instantiating module "fail" from file /etc/raddb/mods-enabled/always # Instantiating module "ok" from file /etc/raddb/mods-enabled/always # Instantiating module "handled" from file /etc/raddb/mods-enabled/always # Instantiating module "invalid" from file /etc/raddb/mods-enabled/always # Instantiating module "userlock" from file /etc/raddb/mods-enabled/always # Instantiating module "notfound" from file /etc/raddb/mods-enabled/always # Instantiating module "noop" from file /etc/raddb/mods-enabled/always # Instantiating module "updated" from file /etc/raddb/mods-enabled/always # Instantiating module "attr_filter.post-proxy" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/post-proxy # Instantiating module "attr_filter.pre-proxy" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/pre-proxy # Instantiating module "attr_filter.access_reject" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/access_reject # Instantiating module "attr_filter.access_challenge" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/access_challenge # Instantiating module "attr_filter.accounting_response" from file /etc/raddb/mods-enabled/attr_filter reading pairlist file /etc/raddb/mods-config/attr_filter/accounting_response # Instantiating module "cache_eap" from file /etc/raddb/mods-enabled/cache_eap rlm_cache (cache_eap): Driver rlm_cache_rbtree (module rlm_cache_rbtree) loaded and linked # Instantiating module "detail" from file /etc/raddb/mods-enabled/detail # Instantiating module "auth_log" from file /etc/raddb/mods-enabled/detail.log rlm_detail (auth_log): 'User-Password' suppressed, will not appear in detail output # Instantiating module "reply_log" from file /etc/raddb/mods-enabled/detail.log # Instantiating module "pre_proxy_log" from file /etc/raddb/mods-enabled/detail.log # Instantiating module "post_proxy_log" from file /etc/raddb/mods-enabled/detail.log # Instantiating module "eap" from file /etc/raddb/mods-enabled/eap # Linked to sub-module rlm_eap_md5 # Linked to sub-module rlm_eap_leap # Linked to sub-module rlm_eap_gtc gtc { challenge = "Password: " auth_type = "PAP" } # Linked to sub-module rlm_eap_tls tls { tls = "tls-common" } tls-config tls-common { verify_depth = 0 ca_path = "/etc/raddb/certs" pem_file_type = yes private_key_file = "/etc/raddb/certs/server.pem" certificate_file = "/etc/raddb/certs/server.pem" ca_file = "/etc/raddb/certs/ca.pem" private_key_password = <<< secret >>> dh_file = "/etc/raddb/certs/dh" fragment_size = 1024 include_length = yes auto_chain = yes check_crl = no check_all_crl = no ca_path_reload_interval = 0 cipher_list = "PROFILE=SYSTEM" cipher_server_preference = no reject_unknown_intermediate_ca = no ecdh_curve = "prime256v1" disable_tlsv1 = yes disable_tlsv1_1 = yes tls_max_version = "1.2" tls_min_version = "1.2" cache { enable = no lifetime = 24 max_entries = 255 } verify { skip_if_ocsp_ok = no } ocsp { enable = no override_cert_url = yes url = "http://127.0.0.1/ocsp/" use_nonce = yes timeout = 0 softfail = no } } tls: Please use 'tls_min_version' and 'tls_max_version' instead of 'disable_tlsv1' tls: Please use 'tls_min_version' and 'tls_max_version' instead of 'disable_tlsv1_1' tls: Setting DH parameters from /etc/raddb/certs/dh - this is no longer necessary. tls: You should comment out the 'dh_file' configuration item. # Linked to sub-module rlm_eap_ttls ttls { tls = "tls-common" default_eap_type = "md5" copy_request_to_tunnel = no use_tunneled_reply = no virtual_server = "inner-tunnel" include_length = yes require_client_cert = no } tls: Using cached TLS configuration from previous invocation # Linked to sub-module rlm_eap_peap peap { tls = "tls-common" default_eap_type = "mschapv2" copy_request_to_tunnel = no use_tunneled_reply = no proxy_tunneled_request_as_eap = yes virtual_server = "inner-tunnel" soh = no require_client_cert = no } tls: Using cached TLS configuration from previous invocation # Linked to sub-module rlm_eap_mschapv2 mschapv2 { with_ntdomain_hack = no send_error = no } # Instantiating module "expiration" from file /etc/raddb/mods-enabled/expiration # Instantiating module "files" from file /etc/raddb/mods-enabled/files reading pairlist file /etc/raddb/mods-config/files/authorize reading pairlist file /etc/raddb/mods-config/files/accounting reading pairlist file /etc/raddb/mods-config/files/pre-proxy # Instantiating module "linelog" from file /etc/raddb/mods-enabled/linelog # Instantiating module "log_accounting" from file /etc/raddb/mods-enabled/linelog # Instantiating module "logintime" from file /etc/raddb/mods-enabled/logintime # Instantiating module "mschap" from file /etc/raddb/mods-enabled/mschap rlm_mschap (mschap): using internal authentication # Instantiating module "pap" from file /etc/raddb/mods-enabled/pap # Instantiating module "etc_passwd" from file /etc/raddb/mods-enabled/passwd rlm_passwd: nfields: 3 keyfield 0(User-Name) listable: no # Instantiating module "preprocess" from file /etc/raddb/mods-enabled/preprocess reading pairlist file /etc/raddb/mods-config/preprocess/huntgroups reading pairlist file /etc/raddb/mods-config/preprocess/hints # Instantiating module "IPASS" from file /etc/raddb/mods-enabled/realm # Instantiating module "suffix" from file /etc/raddb/mods-enabled/realm # Instantiating module "bangpath" from file /etc/raddb/mods-enabled/realm # Instantiating module "realmpercent" from file /etc/raddb/mods-enabled/realm # Instantiating module "ntdomain" from file /etc/raddb/mods-enabled/realm # Instantiating module "ldap" from file /etc/raddb/mods-enabled/ldap rlm_ldap: libldap vendor: OpenLDAP, version: 20459 accounting { reference = "%{tolower:type.%{Acct-Status-Type}}" } post-auth { reference = "." } rlm_ldap (ldap): Initialising connection pool pool { start = 5 min = 3 max = 32 spare = 10 uses = 0 lifetime = 0 cleanup_interval = 30 idle_timeout = 60 retry_delay = 30 spread = no } rlm_ldap (ldap): Opening additional connection (0), 1 of 32 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (1), 1 of 31 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (2), 1 of 30 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (3), 1 of 29 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Opening additional connection (4), 1 of 28 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful } # modules radiusd: #### Loading Virtual Servers #### server { # from file /etc/raddb/radiusd.conf } # server server default { # from file /etc/raddb/sites-enabled/default # Loading authenticate {...} # Loading authorize {...} Ignoring "sql" (see raddb/mods-available/README.rst) # Loading preacct {...} # Loading accounting {...} # Loading post-proxy {...} # Loading post-auth {...} } # server default server inner-tunnel { # from file /etc/raddb/sites-enabled/inner-tunnel # Loading authenticate {...} # Loading authorize {...} # Loading session {...} # Loading post-proxy {...} # Loading post-auth {...} # Skipping contents of 'if' as it is always 'false' -- /etc/raddb/sites-enabled/inner-tunnel:341 } # server inner-tunnel radiusd: #### Opening IP addresses and Ports #### listen { type = "auth" ipaddr = * port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "acct" ipaddr = * port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "auth" ipv6addr = :: port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "acct" ipv6addr = :: port = 0 limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } listen { type = "auth" ipaddr = 127.0.0.1 port = 18120 } Listening on auth address * port 1812 bound to server default Listening on acct address * port 1813 bound to server default Listening on auth address :: port 1812 bound to server default Listening on acct address :: port 1813 bound to server default Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel Listening on proxy address * port 43356 Listening on proxy address :: port 50675 Ready to process requests (0) Received Access-Request Id 11 from 122.1.5.84:43809 to 122.1.5.84:1812 length 86 (0) User-Name = "krishnachaitanya" (0) User-Password = "Freeip@1234" (0) NAS-IP-Address = 122.1.5.84 (0) NAS-Port = 1812 (0) Message-Authenticator = 0x9162e9e3154076ccc69ddab02d33be4e (0) # Executing section authorize from file /etc/raddb/sites-enabled/default (0) authorize { (0) policy filter_username { (0) if (&User-Name) { (0) if (&User-Name) -> TRUE (0) if (&User-Name) { (0) if (&User-Name =~ / /) { (0) if (&User-Name =~ / /) -> FALSE (0) if (&User-Name =~ /@[^@]*@/ ) { (0) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (0) if (&User-Name =~ /\.\./ ) { (0) if (&User-Name =~ /\.\./ ) -> FALSE (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (0) if (&User-Name =~ /\.$/) { (0) if (&User-Name =~ /\.$/) -> FALSE (0) if (&User-Name =~ /@\./) { (0) if (&User-Name =~ /@\./) -> FALSE (0) } # if (&User-Name) = notfound (0) } # policy filter_username = notfound (0) [preprocess] = ok (0) [chap] = noop (0) [mschap] = noop (0) [digest] = noop (0) suffix: Checking for suffix after "@" (0) suffix: No '@' in User-Name = "krishnachaitanya", looking up realm NULL (0) suffix: No such realm "NULL" (0) [suffix] = noop (0) eap: No EAP-Message, not doing EAP (0) [eap] = noop (0) [files] = noop rlm_ldap (ldap): Reserved connection (0) (0) ldap: EXPAND (uid=%{%{Stripped-User-Name}:-%{User-Name}}) (0) ldap: --> (uid=krishnachaitanya) (0) ldap: Performing search in "O=QI-CAP.COM,CN=Certificate Authority,cn=users,cn=accounts,dc=qi-cap,uid=krishnachaitanya,dc=com" with filter "(uid=krishnachaitanya)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results rlm_ldap (ldap): Released connection (0) Need 5 more connections to reach 10 spares rlm_ldap (ldap): Opening additional connection (5), 1 of 27 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful (0) [ldap] = notfound (0) if ((ok || updated) && User-Password) { (0) if ((ok || updated) && User-Password) -> FALSE (0) [expiration] = noop (0) [logintime] = noop (0) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type (0) pap: WARNING: Authentication will fail unless a "known good" password is available (0) [pap] = noop (0) } # authorize = ok (0) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type = Reject (0) Failed to authenticate the user (0) Using Post-Auth-Type Reject (0) # Executing group from file /etc/raddb/sites-enabled/default (0) Post-Auth-Type REJECT { (0) attr_filter.access_reject: EXPAND %{User-Name} (0) attr_filter.access_reject: --> krishnachaitanya (0) attr_filter.access_reject: Matched entry DEFAULT at line 11 (0) [attr_filter.access_reject] = updated (0) [eap] = noop (0) policy remove_reply_message_if_eap { (0) if (&reply:EAP-Message && &reply:Reply-Message) { (0) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE (0) else { (0) [noop] = noop (0) } # else = noop (0) } # policy remove_reply_message_if_eap = noop (0) } # Post-Auth-Type REJECT = updated (0) Delaying response for 1.000000 seconds Waking up in 0.1 seconds. Waking up in 0.8 seconds. (0) Sending delayed response (0) Sent Access-Reject Id 11 from 122.1.5.84:1812 to 122.1.5.84:43809 length 20 Waking up in 3.9 seconds. (0) Cleaning up request packet ID 11 with timestamp +10 Ready to process requests
============================================================================
*Krishna Chaitanya Ala* *Network and Operations Engineer*
*QI Cap Markets LLP* *Bangalore,Karnataka* *Slack : krishna.chaitanya@qi-cap.com <krishna.chaitanya@qi-cap.com>*
On Wed, 13 Jul 2022 at 15:25, Michael Schwartzkopff via
Freeradius-Users <
freeradius-users@lists.freeradius.org> wrote:
On 13.07.22 11:52, Krishna Chaitanya wrote:
Matthew, Not really,Somehow, I missed reading all of the debug report. I am very new to Linux and having a hard time interpreting all of the Debug report. However, After going through the errors:
1. I can say that the username is not being used twice.Even, created another user profile with username "krishnachaitanya" and getting the same error message when running the radtest. 2. In the next test run, modified "base_dn" details as 'O=QI-CAP.COM,CN=Certificate Authority' and the test resulted in the below error.After reviewing the highlighted errors, finding it confused to understand and not really sure the fix for these errors.As far as I know, PAP can read only clear text passwords and in mycase the passwords are not encrypted when running the radtest command as "radtest krishnachaitanya *Freeip@1234 *122.1.5.84 1812 testing123" and not sure why am seeing PAP password errors. 3. and I am not sure why am seeing the messages "(0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results" when "rlm_ldap bind is successful". Is there any relation between them?
*Please help!*
[Ready to process requests (0) Received Access-Request Id 252 from 122.1.5.84:55576 to 122.1.5.84:1812 length 86 (0) User-Name = "krishnachaitanya" (0) User-Password = "Freeip@1234" (0) NAS-IP-Address = 122.1.5.84 (0) NAS-Port = 1812 (0) Message-Authenticator = 0x7d7802787a4d84809dbcd42a46873fe6 (0) # Executing section authorize from file /etc/raddb/sites-enabled/default (0) authorize { (0) policy filter_username { (0) if (&User-Name) { (0) if (&User-Name) -> TRUE (0) if (&User-Name) { (0) if (&User-Name =~ / /) { (0) if (&User-Name =~ / /) -> FALSE (0) if (&User-Name =~ /@[^@]*@/ ) { (0) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (0) if (&User-Name =~ /\.\./ ) { (0) if (&User-Name =~ /\.\./ ) -> FALSE (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (0) if (&User-Name =~ /\.$/) { (0) if (&User-Name =~ /\.$/) -> FALSE (0) if (&User-Name =~ /@\./) { (0) if (&User-Name =~ /@\./) -> FALSE (0) } # if (&User-Name) = notfound (0) } # policy filter_username = notfound (0) [preprocess] = ok (0) [chap] = noop (0) [mschap] = noop (0) [digest] = noop (0) suffix: Checking for suffix after "@" (0) suffix: No '@' in User-Name = "krishnachaitanya", looking up realm NULL (0) suffix: No such realm "NULL" (0) [suffix] = noop (0) eap: No EAP-Message, not doing EAP (0) [eap] = noop (0) [files] = noop rlm_ldap (ldap): Reserved connection (0) (0) ldap: EXPAND (uid=%{%{Stripped-User-Name}:-%{User-Name}}) (0) ldap: --> (uid=krishnachaitanya) (0) ldap: Performing search in "O=QI-CAP.COM,CN=Certificate Authority" with filter "(uid=krishnachaitanya)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results rlm_ldap (ldap): Released connection (0) Need 5 more connections to reach 10 spares rlm_ldap (ldap): Opening additional connection (5), 1 of 27 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful (0) [ldap] = notfound (0) if ((ok || updated) && User-Password) { (0) if ((ok || updated) && User-Password) -> FALSE (0) [expiration] = noop (0) [logintime] = noop (0) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type (0) pap: WARNING: Authentication will fail unless a "known good" password is available (0) [pap] = noop (0) } # authorize = ok (0) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type = Reject (0) Failed to authenticate the user (0) Using Post-Auth-Type Reject (0) # Executing group from file /etc/raddb/sites-enabled/default (0) Post-Auth-Type REJECT { (0) attr_filter.access_reject: EXPAND %{User-Name} (0) attr_filter.access_reject: --> krishnachaitanya (0) attr_filter.access_reject: Matched entry DEFAULT at line 11 (0) [attr_filter.access_reject] = updated (0) [eap] = noop (0) policy remove_reply_message_if_eap { (0) if (&reply:EAP-Message && &reply:Reply-Message) { (0) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE (0) else { (0) [noop] = noop (0) } # else = noop (0) } # policy remove_reply_message_if_eap = noop (0) } # Post-Auth-Type REJECT = updated (0) Delaying response for 1.000000 seconds Waking up in 0.2 seconds. Waking up in 0.7 seconds. (0) Sending delayed response (0) Sent Access-Reject Id 252 from 122.1.5.84:1812 to 122.1.5.84:55576 length 20 Waking up in 3.9 seconds. (0) Cleaning up request packet ID 252 with timestamp +5 Ready to process requests
*Krishna Chaitanya Ala* *Network and Operations Engineer*
On Fri, 8 Jul 2022 at 16:27, Matthew Newton <mcn@freeradius.org> wrote:
> On 08/07/2022 11:45, Krishna Chaitanya wrote: >> # search result >> search: 2 >> result: 0 Success >> >> # numResponses: 3 >> # numEntries: 2 >> *(0) ldap: ERROR: Ambiguous search result, returned 2 unsorted entries >> (should return 1 or 0). Enable sorting, or specify a more restrictive >> base_dn, filter or scope(0) ldap: ERROR: The following entries were >> returned:(0) ldap: ERROR: >> uid=admin,cn=users,cn=compat,dc=qi-cap,dc=com(0) ldap: ERROR: >> uid=admin,cn=users,cn=accounts,dc=qi-cap,dc=com* >> rlm_ldap (ldap): Released connection (0) >> Need 5 more connections to reach 10 spares > Did you read the debug output? > > You have two users with the same uid. FreeRADIUS won't have any idea > which one you want. > > So you need to either not use the same username twice, or configure > FreeRADIUS with a more restrictive base DN so that it only finds one of > them. > > -- > Matthew > - > List info/subscribe/unsubscribe? See > http://www.freeradius.org/list/users.html > - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
(0) ldap: Performing search in "O=QI-CAP.COM,CN=Certificate Authority" with filter "(uid=krishnachaitanya)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: The specified DN wasn't found (0) ldap: Search returned no results
The user is not found in the LDAP. Do you use uid? oder cn? Wrong part of the tree? Whif is the LDIF of your user? Can you do a manual ldapsearch for the user?
Mit freundlichen Grüßen,
--
[*] sys4 AG
https://sys4.de, +49 (89) 30 90 46 64 Schleißheimer Straße 26/MG,80333 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief Aufsichtsratsvorsitzender: Florian Kirstein
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
With ldapsearch you find the object in:
dn: uid=krishnachaitanya,cn=users,cn=compat,dc=qi-cap,dc=com
FR searches in (from the logging):
(0) ldap: Performing search in "O=QI-CAP.COM,CN=Certificate Authority,cn=users,cn=accounts,dc=qi-cap,uid=krishnachaitanya,dc=com" with filter "(uid=krishnachaitanya)", scope "sub"
You see the difference?
Mit freundlichen Grüßen,
--
[*] sys4 AG
https://sys4.de, +49 (89) 30 90 46 64 Schleißheimer Straße 26/MG,80333 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief Aufsichtsratsvorsitzender: Florian Kirstein
On 15.07.22 06:01, Krishna Chaitanya wrote:
Looks like I found the reason, the issue is because the wireless router is not added in the cd /etc/raddb/client.conf file. And I can see the radtest requests are getting accepted by the Freeradius server for the user profiles on FreeIPA Directory as shown below. ==================================================================================================== krishna@QICAP:~$ radtest radius Freeip@1234 122.1.5.84 1812 testing123 Sent Access-Request Id 50 from 0.0.0.0:43213 to 122.1.5.84:1812 length 76 User-Name = "radius" User-Password = "Freeip@1234" NAS-IP-Address = 127.0.1.1 NAS-Port = 1812 Message-Authenticator = 0x00 Cleartext-Password = "Freeip@1234" Received Access-Accept Id 50 from 122.1.5.84:1812 to 122.1.5.136:43213 length 20 =================================================================================== However, when a user is trying to authenticate to wireless services, getting a debug report as below and connection to wireless is failing: --------------------------------------------------------------------------------------------------------------------------- (146) Received Access-Request Id 0 from 122.1.5.89:38592 to 122.1.5.84:1812 length 125 (146) User-Name = "radius"
(...) (154) ldap: User object found at DN
"uid=radius,cn=users,cn=compat,dc=qi-cap,dc=com" (154) ldap: Processing user attributes (154) ldap: WARNING: No "known good" password added. Ensure the admin user has permission to read the password attribute (...) (154) eap_mschapv2: authenticate { (154) mschap: WARNING: No Cleartext-Password configured. Cannot create NT-Password (154) mschap: Creating challenge hash with username: radius (154) mschap: Client is using MS-CHAPv2 (154) mschap: ERROR: FAILED: No NT-Password. Cannot perform authentication (154) mschap: ERROR: MS-CHAP2-Response is incorrect (154) eap_mschapv2: [mschap] = reject (154) eap_mschapv2: } # authenticate = reject (...) However,just to troubleshoot, added a user profile in user config file at sudo vim /etc/raddb/users and below is the same. And when trying to authenticate with this test profile am able to authenticate and connect to network (QICAP_5G-2). [image: image.png] So, not really sure why authentication is failing for other user profiles which are not added in the user config file and that is not the expected behaviour. Thanks Krishna
(...) read the logs. I shortened the logs to make clear the important parts. The truth is on the logs. or, to make it even more clear: ldap: WARNING: No "known good" password added. Ensure the admin user has permission to read the password attribute No password, no authentication. Given the history of our conversation on the list here, please note that there are a lot of competent people and companies that provide paid support. First of all, I would refer to https://networkradius.com
FreeRADIUS: Using mschapv2 with freeipa for wireless authentication. I am following the below links to use mschapv2 authentication to have authenticate wireless users using FreeIPA+ Freeradius. https://fy.blackhats.net.au/blog/html/2015/07/06/FreeIPA:_Giving_permissions... <goog_2039148863> https://fy.blackhats.net.au/blog/html/2016/01/13/FreeRADIUS:_Using_mschapv2_... However, I am getting some bind errors when running radius in Debug mode.The Debug report shows that ldap bind is unsuccessful due to invalid credentials and am sure that bind credentials mentioned in *mods-available/ldap *module is correct.Below is the same Debug report and module configuration. ==================================================== ldap { # Note that this needs to match the name(s) in the LDAP server # certificate, if you're using ldaps. See OpenLDAP documentation # for the behavioral semantics of specifying more than one host. # # Depending on the libldap in use, server may be an LDAP URI. # In the case of OpenLDAP this allows additional the following # additional schemes: # - ldaps:// (LDAP over SSL) # - ldapi:// (LDAP over Unix socket) # - ldapc:// (Connectionless LDAP) server = '122.1.5.84' # server = 'ldap.rrdns.example.org' # server = 'ldap.rrdns.example.org' # Port to connect on, defaults to 389, will be ignored for LDAP URIs. # port = 389 # Administrator account for searching and possibly modifying. # If using SASL + KRB5 these should be commented out. # identity = 'cn=admin,dc=example,dc=org' # password = mypass *identity = krbprincipalname=radius/radiustest.qi-cap.com@QI-CAP.COM <radiustest.qi-cap.com@QI-CAP.COM>,cn=services,cn=accounts,dc=qi-cap,dc=compassword = Freeip@1234* # Unless overridden in another section, the dn from which all # searches will start from. base_dn = 'cn=users,cn=accounts,dc=qi-cap,dc=com' # attribute ref. * update { control:Password-With-Header += 'userPassword' control:NT-Password := 'ntPassword'* # reply:Reply-Message := 'radiusReplyMessage' # reply:Tunnel-Type := 'radiusTunnelType' # reply:Tunnel-Medium-Type := 'radiusTunnelMediumType' # reply:Tunnel-Private-Group-ID := 'radiusTunnelPrivategroupId' # Where only a list is specified as the RADIUS attribute, # the value of the LDAP attribute is parsed as a valuepair # in the same format as the 'valuepair_attribute' (above). control: += 'radiusControlAttribute' request: += 'radiusRequestAttribute' reply: += 'radiusReplyAttribute' } # ===================================================== *radiusd -X* FreeRADIUS Version 3.0.21 Copyright (C) 1999-2019 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 For more information about these matters, see the file named COPYRIGHT Starting - reading configuration files ... including dictionary file /usr/share/freeradius/dictionary including dictionary file /usr/share/freeradius/dictionary.dhcp including dictionary file /usr/share/freeradius/dictionary.vqp including dictionary file /etc/raddb/dictionary including configuration file /etc/raddb/radiusd.conf including configuration file /etc/raddb/proxy.conf including configuration file /etc/raddb/clients.conf including files in directory /etc/raddb/mods-enabled/ including configuration file /etc/raddb/mods-enabled/expiration including configuration file /etc/raddb/mods-enabled/linelog including configuration file /etc/raddb/mods-enabled/logintime including configuration file /etc/raddb/mods-enabled/mschap including configuration file /etc/raddb/mods-enabled/ntlm_auth including configuration file /etc/raddb/mods-enabled/radutmp including configuration file /etc/raddb/mods-enabled/replicate including configuration file /etc/raddb/mods-enabled/soh including configuration file /etc/raddb/mods-enabled/sradutmp including configuration file /etc/raddb/mods-enabled/unix including configuration file /etc/raddb/mods-enabled/unpack including configuration file /etc/raddb/mods-enabled/ldap including configuration file /etc/raddb/mods-enabled/always including configuration file /etc/raddb/mods-enabled/attr_filter including configuration file /etc/raddb/mods-enabled/cache_eap including configuration file /etc/raddb/mods-enabled/chap including configuration file /etc/raddb/mods-enabled/date including configuration file /etc/raddb/mods-enabled/detail including configuration file /etc/raddb/mods-enabled/detail.log including configuration file /etc/raddb/mods-enabled/digest including configuration file /etc/raddb/mods-enabled/dynamic_clients including configuration file /etc/raddb/mods-enabled/eap including configuration file /etc/raddb/mods-enabled/echo including configuration file /etc/raddb/mods-enabled/exec including configuration file /etc/raddb/mods-enabled/expr including configuration file /etc/raddb/mods-enabled/files including configuration file /etc/raddb/mods-enabled/pap including configuration file /etc/raddb/mods-enabled/passwd including configuration file /etc/raddb/mods-enabled/preprocess including configuration file /etc/raddb/mods-enabled/realm including configuration file /etc/raddb/mods-enabled/utf8 including files in directory /etc/raddb/policy.d/ including configuration file /etc/raddb/policy.d/accounting including configuration file /etc/raddb/policy.d/canonicalization including configuration file /etc/raddb/policy.d/control including configuration file /etc/raddb/policy.d/cui including configuration file /etc/raddb/policy.d/debug including configuration file /etc/raddb/policy.d/dhcp including configuration file /etc/raddb/policy.d/eap including configuration file /etc/raddb/policy.d/filter including configuration file /etc/raddb/policy.d/operator-name including configuration file /etc/raddb/policy.d/rfc7542 including files in directory /etc/raddb/sites-enabled/ including configuration file /etc/raddb/sites-enabled/default including configuration file /etc/raddb/sites-enabled/inner-tunnel main { security { user = "radiusd" group = "radiusd" allow_core_dumps = no } name = "radiusd" prefix = "/usr" localstatedir = "/var" logdir = "/var/log/radius" run_dir = "/var/run/radiusd" } main { name = "radiusd" prefix = "/usr" localstatedir = "/var" sbindir = "/usr/sbin" logdir = "/var/log/radius" run_dir = "/var/run/radiusd" libdir = "/usr/lib64/freeradius" radacctdir = "/var/log/radius/radacct" hostname_lookups = no max_request_time = 30 cleanup_delay = 5 max_requests = 16384 pidfile = "/var/run/radiusd/radiusd.pid" checkrad = "/usr/sbin/checkrad" debug_level = 0 proxy_requests = yes log { stripped_names = no auth = no auth_badpass = no auth_goodpass = no colourise = yes msg_denied = "You are already logged in - access denied" } resources { } security { max_attributes = 200 reject_delay = 1.000000 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 = <<< secret >>> response_window = 20.000000 response_timeouts = 1 max_outstanding = 65536 zombie_period = 40 status_check = "status-server" ping_interval = 30 check_interval = 30 check_timeout = 4 num_answers_to_alive = 3 revive_interval = 120 limit { max_connections = 16 max_requests = 0 lifetime = 0 idle_timeout = 0 } coa { 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 = 122.1.5.84 require_message_authenticator = no secret = <<< secret >>> nas_type = "other" proto = "*" limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } client localhost_ipv6 { ipv6addr = ::1 require_message_authenticator = no secret = <<< secret >>> limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } client private-network { ipaddr = 122.1.5.0/24 require_message_authenticator = no secret = <<< secret >>> limit { max_connections = 16 lifetime = 0 idle_timeout = 30 } } Debugger not attached # Creating Auth-Type = mschap # Creating Auth-Type = digest # Creating Auth-Type = eap # Creating Auth-Type = PAP # Creating Auth-Type = CHAP # Creating Auth-Type = MS-CHAP # Creating Auth-Type = LDAP radiusd: #### Instantiating modules #### modules { # Loaded module rlm_expiration # Loading module "expiration" from file /etc/raddb/mods-enabled/expiration # Loaded module rlm_linelog # Loading module "linelog" from file /etc/raddb/mods-enabled/linelog linelog { filename = "/var/log/radius/linelog" escape_filenames = no syslog_severity = "info" permissions = 384 format = "This is a log message for %{User-Name}" reference = "messages.%{%{reply:Packet-Type}:-default}" } # Loading module "log_accounting" from file /etc/raddb/mods-enabled/linelog linelog log_accounting { filename = "/var/log/radius/linelog-accounting" escape_filenames = no syslog_severity = "info" permissions = 384 format = "" reference = "Accounting-Request.%{%{Acct-Status-Type}:-unknown}" } # Loaded module rlm_logintime # Loading module "logintime" from file /etc/raddb/mods-enabled/logintime logintime { minimum_timeout = 60 } # Loaded module rlm_mschap # Loading module "mschap" from file /etc/raddb/mods-enabled/mschap mschap { use_mppe = yes require_encryption = no require_strong = no with_ntdomain_hack = yes passchange { } allow_retry = yes winbind_retry_with_normalised_username = no } # Loaded module rlm_exec # Loading module "ntlm_auth" from file /etc/raddb/mods-enabled/ntlm_auth exec ntlm_auth { wait = yes program = "/path/to/ntlm_auth --request-nt-key --domain=MYDOMAIN --username=%{mschap:User-Name} --password=%{User-Password}" shell_escape = yes } # Loaded module rlm_radutmp # Loading module "radutmp" from file /etc/raddb/mods-enabled/radutmp radutmp { filename = "/var/log/radius/radutmp" username = "%{User-Name}" case_sensitive = yes check_with_nas = yes permissions = 384 caller_id = yes } # Loaded module rlm_replicate # Loading module "replicate" from file /etc/raddb/mods-enabled/replicate # Loaded module rlm_soh # Loading module "soh" from file /etc/raddb/mods-enabled/soh soh { dhcp = yes } # Loading module "sradutmp" from file /etc/raddb/mods-enabled/sradutmp radutmp sradutmp { filename = "/var/log/radius/sradutmp" username = "%{User-Name}" case_sensitive = yes check_with_nas = yes permissions = 420 caller_id = no } # Loaded module rlm_unix # Loading module "unix" from file /etc/raddb/mods-enabled/unix unix { radwtmp = "/var/log/radius/radwtmp" } Creating attribute Unix-Group # Loaded module rlm_unpack # Loading module "unpack" from file /etc/raddb/mods-enabled/unpack # Loaded module rlm_ldap # Loading module "ldap" from file /etc/raddb/mods-enabled/ldap ldap { server = "122.1.5.84" identity = "krbprincipalname=radius/radiustest.qi-cap.com@QI-CAP.COM" password = <<< secret >>> sasl { } user_dn = "LDAP-UserDn" user { scope = "sub" access_positive = yes sasl { } } group { filter = "(objectClass=posixGroup)" scope = "sub" name_attribute = "cn" membership_attribute = "memberOf" cacheable_name = no cacheable_dn = no allow_dangling_group_ref = no } client { filter = "(objectClass=radiusClient)" scope = "sub" base_dn = "cn=users,cn=accounts,dc=qi-cap,dc=com" } profile { } options { ldap_debug = 40 chase_referrals = yes rebind = yes net_timeout = 1 res_timeout = 10 srv_timelimit = 3 idle = 60 probes = 3 interval = 3 } tls { start_tls = no } } Creating attribute LDAP-Group # Loaded module rlm_always # Loading module "reject" from file /etc/raddb/mods-enabled/always always reject { rcode = "reject" simulcount = 0 mpp = no } # Loading module "fail" from file /etc/raddb/mods-enabled/always always fail { rcode = "fail" simulcount = 0 mpp = no } # Loading module "ok" from file /etc/raddb/mods-enabled/always always ok { rcode = "ok" simulcount = 0 mpp = no } # Loading module "handled" from file /etc/raddb/mods-enabled/always always handled { rcode = "handled" simulcount = 0 mpp = no } # Loading module "invalid" from file /etc/raddb/mods-enabled/always always invalid { rcode = "invalid" simulcount = 0 mpp = no } # Loading module "userlock" from file /etc/raddb/mods-enabled/always always userlock { rcode = "userlock" simulcount = 0 mpp = no } # Loading module "notfound" from file /etc/raddb/mods-enabled/always always notfound { rcode = "notfound" simulcount = 0 mpp = no } # Loading module "noop" from file /etc/raddb/mods-enabled/always always noop { rcode = "noop" simulcount = 0 mpp = no } # Loading module "updated" from file /etc/raddb/mods-enabled/always always updated { rcode = "updated" simulcount = 0 mpp = no } # Loaded module rlm_attr_filter # Loading module "attr_filter.post-proxy" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.post-proxy { filename = "/etc/raddb/mods-config/attr_filter/post-proxy" key = "%{Realm}" relaxed = no } # Loading module "attr_filter.pre-proxy" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.pre-proxy { filename = "/etc/raddb/mods-config/attr_filter/pre-proxy" key = "%{Realm}" relaxed = no } # Loading module "attr_filter.access_reject" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.access_reject { filename = "/etc/raddb/mods-config/attr_filter/access_reject" key = "%{User-Name}" relaxed = no } # Loading module "attr_filter.access_challenge" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.access_challenge { filename = "/etc/raddb/mods-config/attr_filter/access_challenge" key = "%{User-Name}" relaxed = no } # Loading module "attr_filter.accounting_response" from file /etc/raddb/mods-enabled/attr_filter attr_filter attr_filter.accounting_response { filename = "/etc/raddb/mods-config/attr_filter/accounting_response" key = "%{User-Name}" relaxed = no } # Loaded module rlm_cache # Loading module "cache_eap" from file /etc/raddb/mods-enabled/cache_eap cache cache_eap { driver = "rlm_cache_rbtree" key = "%{%{control:State}:-%{%{reply:State}:-%{State}}}" ttl = 15 max_entries = 0 epoch = 0 add_stats = no } # Loaded module rlm_chap # Loading module "chap" from file /etc/raddb/mods-enabled/chap # Loaded module rlm_date # Loading module "date" from file /etc/raddb/mods-enabled/date date { format = "%b %e %Y %H:%M:%S %Z" utc = no } # Loading module "wispr2date" from file /etc/raddb/mods-enabled/date date wispr2date { format = "%Y-%m-%dT%H:%M:%S" utc = no } # Loaded module rlm_detail # Loading module "detail" from file /etc/raddb/mods-enabled/detail detail { filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d" header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "auth_log" from file /etc/raddb/mods-enabled/detail.log detail auth_log { filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d" header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "reply_log" from file /etc/raddb/mods-enabled/detail.log detail reply_log { filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/reply-detail-%Y%m%d" header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "pre_proxy_log" from file /etc/raddb/mods-enabled/detail.log detail pre_proxy_log { filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y%m%d" header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loading module "post_proxy_log" from file /etc/raddb/mods-enabled/detail.log detail post_proxy_log { filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/post-proxy-detail-%Y%m%d" header = "%t" permissions = 384 locking = no escape_filenames = no log_packet_header = no } # Loaded module rlm_digest # Loading module "digest" from file /etc/raddb/mods-enabled/digest # Loaded module rlm_dynamic_clients # Loading module "dynamic_clients" from file /etc/raddb/mods-enabled/dynamic_clients # Loaded module rlm_eap # Loading module "eap" from file /etc/raddb/mods-enabled/eap eap { default_eap_type = "mschapv2" timer_expire = 60 ignore_unknown_eap_types = no cisco_accounting_username_bug = no max_sessions = 16384 } # Loading module "echo" from file /etc/raddb/mods-enabled/echo exec echo { wait = yes program = "/bin/echo %{User-Name}" input_pairs = "request" output_pairs = "reply" shell_escape = yes } # Loading module "exec" from file /etc/raddb/mods-enabled/exec exec { wait = no input_pairs = "request" shell_escape = yes timeout = 10 } # Loaded module rlm_expr # Loading module "expr" from file /etc/raddb/mods-enabled/expr expr { safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /äéöüàâæçèéêëîïôœùûüaÿÄÉÖÜßÀÂÆÇÈÉÊËÎÏÔŒÙÛÜŸ" } # Loaded module rlm_files # Loading module "files" from file /etc/raddb/mods-enabled/files files { filename = "/etc/raddb/mods-config/files/authorize" acctusersfile = "/etc/raddb/mods-config/files/accounting" preproxy_usersfile = "/etc/raddb/mods-config/files/pre-proxy" } # Loaded module rlm_pap # Loading module "pap" from file /etc/raddb/mods-enabled/pap pap { normalise = yes } # Loaded module rlm_passwd # Loading module "etc_passwd" from file /etc/raddb/mods-enabled/passwd passwd etc_passwd { filename = "/etc/passwd" format = "*User-Name:Crypt-Password:" delimiter = ":" ignore_nislike = no ignore_empty = yes allow_multiple_keys = no hash_size = 100 } # Loaded module rlm_preprocess # Loading module "preprocess" from file /etc/raddb/mods-enabled/preprocess preprocess { huntgroups = "/etc/raddb/mods-config/preprocess/huntgroups" hints = "/etc/raddb/mods-config/preprocess/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 } # Loaded module rlm_realm # Loading module "IPASS" from file /etc/raddb/mods-enabled/realm realm IPASS { format = "prefix" delimiter = "/" ignore_default = no ignore_null = no } # Loading module "suffix" from file /etc/raddb/mods-enabled/realm realm suffix { format = "suffix" delimiter = "@" ignore_default = no ignore_null = no } # Loading module "bangpath" from file /etc/raddb/mods-enabled/realm realm bangpath { format = "prefix" delimiter = "!" ignore_default = no ignore_null = no } # Loading module "realmpercent" from file /etc/raddb/mods-enabled/realm realm realmpercent { format = "suffix" delimiter = "%" ignore_default = no ignore_null = no } # Loading module "ntdomain" from file /etc/raddb/mods-enabled/realm realm ntdomain { format = "prefix" delimiter = "\\" ignore_default = no ignore_null = no } # Loaded module rlm_utf8 # Loading module "utf8" from file /etc/raddb/mods-enabled/utf8 instantiate { } # Instantiating module "expiration" from file /etc/raddb/mods-enabled/expiration # Instantiating module "linelog" from file /etc/raddb/mods-enabled/linelog # Instantiating module "log_accounting" from file /etc/raddb/mods-enabled/linelog # Instantiating module "logintime" from file /etc/raddb/mods-enabled/logintime # Instantiating module "mschap" from file /etc/raddb/mods-enabled/mschap rlm_mschap (mschap): using internal authentication # Instantiating module "ldap" from file /etc/raddb/mods-enabled/ldap rlm_ldap: libldap vendor: OpenLDAP, version: 20602 accounting { reference = "%{tolower:type.%{Acct-Status-Type}}" } post-auth { reference = "." } rlm_ldap (ldap): Initialising connection pool pool { start = 5 min = 3 max = 32 spare = 10 uses = 0 lifetime = 0 cleanup_interval = 30 idle_timeout = 60 retry_delay = 30 spread = no * }rlm_ldap (ldap): Opening additional connection (0), 1 of 32 pending slots usedrlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 <http://122.1.5.84:389>rlm_ldap (ldap): Waiting for bind result...rlm_ldap (ldap): Bind credentials incorrect: Invalid credentialsrlm_ldap (ldap): Opening connection failed (0)rlm_ldap (ldap): Removing connection pool/etc/raddb/mods-enabled/ldap[8]: Instantiation failed for module "ldap"[root@radiustest raddb]# * ==================================================================================== When I comment out *Identity and password* details in Ldap module radius can get started in debug mode.However, below radtest with mschap type is getting rejected. Below is the radtest command on client and debug report on IPA server. ======================================================================= radtest -t mschap radius Freeip@1234 122.1.5.84:1812 0 testing123 Sent Access-Request Id 46 from 0.0.0.0:50199 to 122.1.5.84:1812 length 132 User-Name = "radius" MS-CHAP-Password = "Freeip@1234" NAS-IP-Address = 127.0.1.1 NAS-Port = 0 Message-Authenticator = 0x00 Cleartext-Password = "Freeip@1234" MS-CHAP-Challenge = 0x8e79aa9e30a1e3ca MS-CHAP-Response = 0x00010000000000000000000000000000000000000000000000004b0f0a7bffeafb3bb5290b7e93b6f3f44381c842bedc6786 Received Access-Reject Id 46 from 122.1.5.84:1812 to 122.1.5.136:50199 length 61 MS-CHAP-Error = "\000E=691 R=1 C=899cfc6adf2a51c4 V=2" (0) -: Expected Access-Accept got Access-Reject ================================================================================================ (0) Received Access-Request Id 182 from 122.1.5.136:44172 to 122.1.5.84:1812 length 76 (0) User-Name = "radius" (0) User-Password = "Freeip@1234" (0) NAS-IP-Address = 127.0.1.1 (0) NAS-Port = 1812 (0) Message-Authenticator = 0xefcc067a8ce57cfeb193b3298eed0b57 (0) # Executing section authorize from file /etc/raddb/sites-enabled/default (0) authorize { (0) policy filter_username { (0) if (&User-Name) { (0) if (&User-Name) -> TRUE (0) if (&User-Name) { (0) if (&User-Name =~ / /) { (0) if (&User-Name =~ / /) -> FALSE (0) if (&User-Name =~ /@[^@]*@/ ) { (0) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (0) if (&User-Name =~ /\.\./ ) { (0) if (&User-Name =~ /\.\./ ) -> FALSE (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (0) if (&User-Name =~ /\.$/) { (0) if (&User-Name =~ /\.$/) -> FALSE (0) if (&User-Name =~ /@\./) { (0) if (&User-Name =~ /@\./) -> FALSE (0) } # if (&User-Name) = notfound (0) } # policy filter_username = notfound (0) [preprocess] = ok (0) [chap] = noop (0) [mschap] = noop (0) [digest] = noop (0) suffix: Checking for suffix after "@" (0) suffix: No '@' in User-Name = "radius", looking up realm NULL (0) suffix: No such realm "NULL" (0) [suffix] = noop (0) eap: No EAP-Message, not doing EAP (0) [eap] = noop (0) [files] = noop rlm_ldap (ldap): Reserved connection (0) (0) ldap: EXPAND (uid=%{%{Stripped-User-Name}:-%{User-Name}}) (0) ldap: --> (uid=radius) (0) ldap: Performing search in "cn=users,cn=accounts,dc=qi-cap,dc=com" with filter "(uid=radius)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: User object found at DN "uid=radius,cn=users,cn=accounts,dc=qi-cap,dc=com" (0) ldap: Processing user attributes (0) ldap: WARNING: No "known good" password added. Ensure the admin user has permission to read the password attribute (0) ldap: WARNING: PAP authentication will *NOT* work with Active Directory (if that is what you were trying to configure) rlm_ldap (ldap): Released connection (0) Need 5 more connections to reach 10 spares rlm_ldap (ldap): Opening additional connection (5), 1 of 27 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful (0) [ldap] = ok (0) if ((ok || updated) && User-Password) { (0) if ((ok || updated) && User-Password) -> TRUE (0) if ((ok || updated) && User-Password) { (0) update { (0) control:Auth-Type := LDAP (0) } # update = noop (0) } # if ((ok || updated) && User-Password) = noop (0) [expiration] = noop (0) [logintime] = noop Not doing PAP as Auth-Type is already set. (0) [pap] = noop (0) } # authorize = ok (0) Found Auth-Type = LDAP (0) # Executing group from file /etc/raddb/sites-enabled/default (0) Auth-Type LDAP { rlm_ldap (ldap): Reserved connection (1) (0) ldap: Login attempt by "radius" (0) ldap: Using user DN from request "uid=radius,cn=users,cn=accounts,dc=qi-cap,dc=com" (0) ldap: Waiting for bind result... (0) ldap: Bind successful (0) ldap: Bind as user "uid=radius,cn=users,cn=accounts,dc=qi-cap,dc=com" was successful rlm_ldap (ldap): Released connection (1) Need 4 more connections to reach 10 spares rlm_ldap (ldap): Opening additional connection (6), 1 of 26 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful (0) [ldap] = ok (0) } # Auth-Type LDAP = ok (0) # Executing section post-auth from file /etc/raddb/sites-enabled/default (0) post-auth { (0) if (session-state:User-Name && reply:User-Name && request:User-Name && (reply:User-Name == request:User-Name)) { (0) if (session-state:User-Name && reply:User-Name && request:User-Name && (reply:User-Name == request:User-Name)) -> FALSE (0) update { (0) No attributes updated for RHS &session-state: (0) } # update = noop (0) [exec] = noop (0) policy remove_reply_message_if_eap { (0) if (&reply:EAP-Message && &reply:Reply-Message) { (0) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE (0) else { (0) [noop] = noop (0) } # else = noop (0) } # policy remove_reply_message_if_eap = noop (0) } # post-auth = noop (0) Sent Access-Accept Id 182 from 122.1.5.84:1812 to 122.1.5.136:44172 length 0 (0) Finished request Waking up in 4.9 seconds. (0) Cleaning up request packet ID 182 with timestamp +4 Ready to process requests (1) Received Access-Request Id 46 from 122.1.5.136:50199 to 122.1.5.84:1812 length 132 (1) User-Name = "radius" (1) NAS-IP-Address = 127.0.1.1 (1) NAS-Port = 0 (1) Message-Authenticator = 0xff590ce3ed45197b4e567a6c711fb172 (1) MS-CHAP-Challenge = 0x8e79aa9e30a1e3ca (1) MS-CHAP-Response = 0x00010000000000000000000000000000000000000000000000004b0f0a7bffeafb3bb5290b7e93b6f3f44381c842bedc6786 (1) # Executing section authorize from file /etc/raddb/sites-enabled/default (1) authorize { (1) policy filter_username { (1) if (&User-Name) { (1) if (&User-Name) -> TRUE (1) if (&User-Name) { (1) if (&User-Name =~ / /) { (1) if (&User-Name =~ / /) -> FALSE (1) if (&User-Name =~ /@[^@]*@/ ) { (1) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (1) if (&User-Name =~ /\.\./ ) { (1) if (&User-Name =~ /\.\./ ) -> FALSE (1) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (1) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (1) if (&User-Name =~ /\.$/) { (1) if (&User-Name =~ /\.$/) -> FALSE (1) if (&User-Name =~ /@\./) { (1) if (&User-Name =~ /@\./) -> FALSE (1) } # if (&User-Name) = notfound (1) } # policy filter_username = notfound (1) [preprocess] = ok (1) [chap] = noop (1) mschap: Found MS-CHAP attributes. Setting 'Auth-Type = mschap' (1) [mschap] = ok (1) [digest] = noop (1) suffix: Checking for suffix after "@" (1) suffix: No '@' in User-Name = "radius", looking up realm NULL (1) suffix: No such realm "NULL" (1) [suffix] = noop (1) eap: No EAP-Message, not doing EAP (1) [eap] = noop (1) [files] = noop rlm_ldap (ldap): Closing connection (2): Hit idle_timeout, was idle for 129 seconds rlm_ldap (ldap): Closing connection (3): Hit idle_timeout, was idle for 129 seconds rlm_ldap (ldap): Closing connection (4): Hit idle_timeout, was idle for 129 seconds rlm_ldap (ldap): Closing connection (0): Hit idle_timeout, was idle for 125 seconds rlm_ldap (ldap): Closing connection (5): Hit idle_timeout, was idle for 124 seconds rlm_ldap (ldap): You probably need to lower "min" rlm_ldap (ldap): Closing connection (1): Hit idle_timeout, was idle for 124 seconds rlm_ldap (ldap): You probably need to lower "min" rlm_ldap (ldap): Closing connection (6): Hit idle_timeout, was idle for 124 seconds rlm_ldap (ldap): You probably need to lower "min" rlm_ldap (ldap): 0 of 0 connections in use. You may need to increase "spare" rlm_ldap (ldap): Opening additional connection (7), 1 of 32 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful rlm_ldap (ldap): Reserved connection (7) (1) ldap: EXPAND (uid=%{%{Stripped-User-Name}:-%{User-Name}}) (1) ldap: --> (uid=radius) (1) ldap: Performing search in "cn=users,cn=accounts,dc=qi-cap,dc=com" with filter "(uid=radius)", scope "sub" (1) ldap: Waiting for search result... (1) ldap: User object found at DN "uid=radius,cn=users,cn=accounts,dc=qi-cap,dc=com" (1) ldap: Processing user attributes (1) ldap: WARNING: No "known good" password added. Ensure the admin user has permission to read the password attribute (1) ldap: WARNING: PAP authentication will *NOT* work with Active Directory (if that is what you were trying to configure) rlm_ldap (ldap): Released connection (7) Need 2 more connections to reach min connections (3) rlm_ldap (ldap): Opening additional connection (8), 1 of 31 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful (1) [ldap] = ok (1) if ((ok || updated) && User-Password) { (1) if ((ok || updated) && User-Password) -> FALSE (1) [expiration] = noop (1) [logintime] = noop Not doing PAP as Auth-Type is already set. (1) [pap] = noop (1) } # authorize = ok (1) Found Auth-Type = mschap (1) # Executing group from file /etc/raddb/sites-enabled/default (1) authenticate { (1) mschap: WARNING: No Cleartext-Password configured. Cannot create NT-Password (1) mschap: Client is using MS-CHAPv1 with NT-Password (1) mschap: ERROR: FAILED: No NT-Password. Cannot perform authentication (1) mschap: ERROR: MS-CHAP2-Response is incorrect (1) [mschap] = reject (1) } # authenticate = reject (1) Failed to authenticate the user (1) Using Post-Auth-Type Reject (1) # Executing group from file /etc/raddb/sites-enabled/default (1) Post-Auth-Type REJECT { (1) attr_filter.access_reject: EXPAND %{User-Name} (1) attr_filter.access_reject: --> radius (1) attr_filter.access_reject: Matched entry DEFAULT at line 11 (1) [attr_filter.access_reject] = updated (1) [eap] = noop (1) policy remove_reply_message_if_eap { (1) if (&reply:EAP-Message && &reply:Reply-Message) { (1) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE (1) else { (1) [noop] = noop (1) } # else = noop (1) } # policy remove_reply_message_if_eap = noop (1) } # Post-Auth-Type REJECT = updated (1) Delaying response for 1.000000 seconds Waking up in 0.1 seconds. Waking up in 0.8 seconds. (1) Sending delayed response (1) Sent Access-Reject Id 46 from 122.1.5.84:1812 to 122.1.5.136:50199 length 61 (1) MS-CHAP-Error = "\000E=691 R=1 C=899cfc6adf2a51c4 V=2" Waking up in 3.9 seconds. (1) Cleaning up request packet ID 46 with timestamp +129 ============================================================================== When running a normal radtest receiving an accept message and below is the same along with debug report. *=====================================================================================* radtest radius Freeip@1234 122.1.5.84 1812 testing123 User-Name = "radius" User-Password = "Freeip@1234" NAS-IP-Address = 127.0.1.1 NAS-Port = 1812 Message-Authenticator = 0x00 Cleartext-Password = "Freeip@1234" Received Access-Accept Id 182 from 122.1.5.84:1812 to 122.1.5.136:44172 length 20 ======================================================================================= 0) Received Access-Request Id 182 from 122.1.5.136:44172 to 122.1.5.84:1812 length 76 (0) User-Name = "radius" (0) User-Password = "Freeip@1234" (0) NAS-IP-Address = 127.0.1.1 (0) NAS-Port = 1812 (0) Message-Authenticator = 0xefcc067a8ce57cfeb193b3298eed0b57 (0) # Executing section authorize from file /etc/raddb/sites-enabled/default (0) authorize { (0) policy filter_username { (0) if (&User-Name) { (0) if (&User-Name) -> TRUE (0) if (&User-Name) { (0) if (&User-Name =~ / /) { (0) if (&User-Name =~ / /) -> FALSE (0) if (&User-Name =~ /@[^@]*@/ ) { (0) if (&User-Name =~ /@[^@]*@/ ) -> FALSE (0) if (&User-Name =~ /\.\./ ) { (0) if (&User-Name =~ /\.\./ ) -> FALSE (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) { (0) if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/)) -> FALSE (0) if (&User-Name =~ /\.$/) { (0) if (&User-Name =~ /\.$/) -> FALSE (0) if (&User-Name =~ /@\./) { (0) if (&User-Name =~ /@\./) -> FALSE (0) } # if (&User-Name) = notfound (0) } # policy filter_username = notfound (0) [preprocess] = ok (0) [chap] = noop (0) [mschap] = noop (0) [digest] = noop (0) suffix: Checking for suffix after "@" (0) suffix: No '@' in User-Name = "radius", looking up realm NULL (0) suffix: No such realm "NULL" (0) [suffix] = noop (0) eap: No EAP-Message, not doing EAP (0) [eap] = noop (0) [files] = noop rlm_ldap (ldap): Reserved connection (0) (0) ldap: EXPAND (uid=%{%{Stripped-User-Name}:-%{User-Name}}) (0) ldap: --> (uid=radius) (0) ldap: Performing search in "cn=users,cn=accounts,dc=qi-cap,dc=com" with filter "(uid=radius)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: User object found at DN "uid=radius,cn=users,cn=accounts,dc=qi-cap,dc=com" (0) ldap: Processing user attributes (0) ldap: WARNING: No "known good" password added. Ensure the admin user has permission to read the password attribute (0) ldap: WARNING: PAP authentication will *NOT* work with Active Directory (if that is what you were trying to configure) rlm_ldap (ldap): Released connection (0) Need 5 more connections to reach 10 spares rlm_ldap (ldap): Opening additional connection (5), 1 of 27 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful (0) [ldap] = ok (0) if ((ok || updated) && User-Password) { (0) if ((ok || updated) && User-Password) -> TRUE (0) if ((ok || updated) && User-Password) { (0) update { (0) control:Auth-Type := LDAP (0) } # update = noop (0) } # if ((ok || updated) && User-Password) = noop (0) [expiration] = noop (0) [logintime] = noop Not doing PAP as Auth-Type is already set. (0) [pap] = noop (0) } # authorize = ok (0) Found Auth-Type = LDAP (0) # Executing group from file /etc/raddb/sites-enabled/default (0) Auth-Type LDAP { rlm_ldap (ldap): Reserved connection (1) (0) ldap: Login attempt by "radius" (0) ldap: Using user DN from request "uid=radius,cn=users,cn=accounts,dc=qi-cap,dc=com" (0) ldap: Waiting for bind result... (0) ldap: Bind successful (0) ldap: Bind as user "uid=radius,cn=users,cn=accounts,dc=qi-cap,dc=com" was successful rlm_ldap (ldap): Released connection (1) Need 4 more connections to reach 10 spares rlm_ldap (ldap): Opening additional connection (6), 1 of 26 pending slots used rlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 rlm_ldap (ldap): Waiting for bind result... rlm_ldap (ldap): Bind successful (0) [ldap] = ok (0) } # Auth-Type LDAP = ok (0) # Executing section post-auth from file /etc/raddb/sites-enabled/default (0) post-auth { (0) if (session-state:User-Name && reply:User-Name && request:User-Name && (reply:User-Name == request:User-Name)) { (0) if (session-state:User-Name && reply:User-Name && request:User-Name && (reply:User-Name == request:User-Name)) -> FALSE (0) update { (0) No attributes updated for RHS &session-state: (0) } # update = noop (0) [exec] = noop (0) policy remove_reply_message_if_eap { (0) if (&reply:EAP-Message && &reply:Reply-Message) { (0) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE (0) else { (0) [noop] = noop (0) } # else = noop (0) } # policy remove_reply_message_if_eap = noop (0) } # post-auth = noop (0) Sent Access-Accept Id 182 from 122.1.5.84:1812 to 122.1.5.136:44172 length 0 (0) Finished request Waking up in 4.9 seconds. (0) Cleaning up request packet ID 182 with timestamp +4 Ready to process requests *Thanks* *Krishna Chaitanya Ala* *Network and Operations Engineer* *QI Cap Markets LLP* *Bangalore,Karnataka* *Slack : krishna.chaitanya@qi-cap.com <krishna.chaitanya@qi-cap.com>* On Fri, 15 Jul 2022 at 12:22, Michael Schwartzkopff <ms@sys4.de> wrote:
On 15.07.22 06:01, Krishna Chaitanya wrote:
Looks like I found the reason, the issue is because the wireless router is not added in the cd /etc/raddb/client.conf file. And I can see the radtest requests are getting accepted by the Freeradius server for the user profiles on FreeIPA Directory as shown below.
====================================================================================================
krishna@QICAP:~$ radtest radius Freeip@1234 122.1.5.84 1812 testing123 Sent Access-Request Id 50 from 0.0.0.0:43213 to 122.1.5.84:1812 length 76 User-Name = "radius" User-Password = "Freeip@1234" NAS-IP-Address = 127.0.1.1 NAS-Port = 1812 Message-Authenticator = 0x00 Cleartext-Password = "Freeip@1234" Received Access-Accept Id 50 from 122.1.5.84:1812 to 122.1.5.136:43213 length 20
===================================================================================
However, when a user is trying to authenticate to wireless services, getting a debug report as below and connection to wireless is failing:
---------------------------------------------------------------------------------------------------------------------------
(146) Received Access-Request Id 0 from 122.1.5.89:38592 to 122.1.5.84:1812 length 125 (146) User-Name = "radius"
(...)
(154) ldap: User object found at DN
"uid=radius,cn=users,cn=compat,dc=qi-cap,dc=com" (154) ldap: Processing user attributes (154) ldap: WARNING: No "known good" password added. Ensure the admin user has permission to read the password attribute (...) (154) eap_mschapv2: authenticate { (154) mschap: WARNING: No Cleartext-Password configured. Cannot create NT-Password (154) mschap: Creating challenge hash with username: radius (154) mschap: Client is using MS-CHAPv2 (154) mschap: ERROR: FAILED: No NT-Password. Cannot perform authentication (154) mschap: ERROR: MS-CHAP2-Response is incorrect (154) eap_mschapv2: [mschap] = reject (154) eap_mschapv2: } # authenticate = reject (...) However,just to troubleshoot, added a user profile in user config file at sudo vim /etc/raddb/users and below is the same. And when trying to authenticate with this test profile am able to authenticate and connect to network (QICAP_5G-2). [image: image.png] So, not really sure why authentication is failing for other user profiles which are not added in the user config file and that is not the expected behaviour. Thanks Krishna
(...)
read the logs. I shortened the logs to make clear the important parts. The truth is on the logs.
or, to make it even more clear:
ldap: WARNING: No "known good" password added. Ensure the admin user has permission to read the password attribute
No password, no authentication.
Given the history of our conversation on the list here, please note that there are a lot of competent people and companies that provide paid support. First of all, I would refer to https://networkradius.com
On Jul 21, 2022, at 7:05 AM, Krishna Chaitanya <krishna.chaitanya@qi-cap.com> wrote:
FreeRADIUS: Using mschapv2 with freeipa for wireless authentication. I am following the below links to use mschapv2 authentication to have authenticate wireless users using FreeIPA+ Freeradius. https://fy.blackhats.net.au/blog/html/2015/07/06/FreeIPA:_Giving_permissions... https://fy.blackhats.net.au/blog/html/2016/01/13/FreeRADIUS:_Using_mschapv2_...
That documentation might work. On quick inspection it's not completely wrong, which is a big win.
However, I am getting some bind errors when running radius in Debug mode.The Debug report shows that ldap bind is unsuccessful due to invalid credentials and am sure that bind credentials mentioned in *mods-available/ldap *module is correct.
Well, if FreeIPA says "invalid credentials", then the credentials are invalid. We don't need to see the module configuration. All of the documentation says to just post the debug output.
* }rlm_ldap (ldap): Opening additional connection (0), 1 of 32 pending slots usedrlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 <http://122.1.5.84:389>rlm_ldap (ldap): Waiting for bind result...rlm_ldap (ldap): Bind credentials incorrect: Invalid credentialsrlm_ldap (ldap): Opening connection failed (0)rlm_ldap (ldap): Removing connection pool/etc/raddb/mods-enabled/ldap[8]: Instantiation failed for module
That's been "helpfully" reformatted to be difficult to read. But OK... If the credentials are invalid, then they're invalid. That's really it. The ldap module also contains instructions for how to test the configuration using ldapsearch. You can try that, too.
==================================================================================== When I comment out *Identity and password* details in Ldap module radius can get started in debug mode.However, below radtest with mschap type is getting rejected.
It's helpful to read the messages. They tell you what's wrong.
Below is the radtest command on client and debug report on IPA server.
We don't need to see radtest either. The documentation is very clear on this.
... (0) ldap: Performing search in "cn=users,cn=accounts,dc=qi-cap,dc=com" with filter "(uid=radius)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: User object found at DN "uid=radius,cn=users,cn=accounts,dc=qi-cap,dc=com" (0) ldap: Processing user attributes (0) ldap: WARNING: No "known good" password added. Ensure the admin user has permission to read the password attribute
FreeIPA isn't giving FreeRADiUS the users password. You can't hand the MS-CHAP stuff to FreeIPA, as it doesn't do MS-CHAP. FreeRADIUS does MS-CHAP, but it needs the users password. And FreeIPA will only give the password to FreeRADIUS when FreeRADIUS uses a "read-only" administrator account. i.e. an account which has permission to read the password. Use ldapsearch to test the FreeRADIUS configuration. There are instructions in the default mods-enabled/ldap file on how to do this. Alan DeKok.
Can anyone suggest a guide to make ms-chap authentication work when using freeIPA + Freeradius. Thanks in Advance. *Krishna Chaitanya Ala* *Network and Operations Engineer* *QI Cap Markets LLP* *Bangalore,Karnataka* *Slack : krishna.chaitanya@qi-cap.com <krishna.chaitanya@qi-cap.com>* On Thu, 21 Jul 2022 at 17:35, Alan DeKok <aland@deployingradius.com> wrote:
On Jul 21, 2022, at 7:05 AM, Krishna Chaitanya < krishna.chaitanya@qi-cap.com> wrote:
FreeRADIUS: Using mschapv2 with freeipa for wireless authentication. I am following the below links to use mschapv2 authentication to have authenticate wireless users using FreeIPA+ Freeradius.
https://fy.blackhats.net.au/blog/html/2015/07/06/FreeIPA:_Giving_permissions...
https://fy.blackhats.net.au/blog/html/2016/01/13/FreeRADIUS:_Using_mschapv2_...
That documentation might work. On quick inspection it's not completely wrong, which is a big win.
However, I am getting some bind errors when running radius in Debug mode.The Debug report shows that ldap bind is unsuccessful due to invalid credentials and am sure that bind credentials mentioned in *mods-available/ldap *module is correct.
Well, if FreeIPA says "invalid credentials", then the credentials are invalid.
We don't need to see the module configuration. All of the documentation says to just post the debug output.
* }rlm_ldap (ldap): Opening additional connection (0), 1 of 32 pending slots usedrlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 <http://122.1.5.84:389>rlm_ldap (ldap): Waiting for bind result...rlm_ldap (ldap): Bind credentials incorrect: Invalid credentialsrlm_ldap (ldap): Opening connection failed (0)rlm_ldap (ldap): Removing connection pool/etc/raddb/mods-enabled/ldap[8]: Instantiation failed for module
That's been "helpfully" reformatted to be difficult to read. But OK...
If the credentials are invalid, then they're invalid. That's really it.
The ldap module also contains instructions for how to test the configuration using ldapsearch. You can try that, too.
====================================================================================
When I comment out *Identity and password* details in Ldap module radius can get started in debug mode.However, below radtest with mschap type is getting rejected.
It's helpful to read the messages. They tell you what's wrong.
Below is the radtest command on client and debug report on IPA server.
We don't need to see radtest either. The documentation is very clear on this.
... (0) ldap: Performing search in "cn=users,cn=accounts,dc=qi-cap,dc=com" with filter "(uid=radius)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: User object found at DN "uid=radius,cn=users,cn=accounts,dc=qi-cap,dc=com" (0) ldap: Processing user attributes (0) ldap: WARNING: No "known good" password added. Ensure the admin user has permission to read the password attribute
FreeIPA isn't giving FreeRADiUS the users password.
You can't hand the MS-CHAP stuff to FreeIPA, as it doesn't do MS-CHAP. FreeRADIUS does MS-CHAP, but it needs the users password. And FreeIPA will only give the password to FreeRADIUS when FreeRADIUS uses a "read-only" administrator account.
i.e. an account which has permission to read the password.
Use ldapsearch to test the FreeRADIUS configuration. There are instructions in the default mods-enabled/ldap file on how to do this.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On 25.07.22 10:08, Krishna Chaitanya wrote:
Can anyone suggest a guide to make ms-chap authentication work when using freeIPA + Freeradius. Thanks in Advance.
*Krishna Chaitanya Ala* *Network and Operations Engineer*
*QI Cap Markets LLP* *Bangalore,Karnataka* *Slack : krishna.chaitanya@qi-cap.com <krishna.chaitanya@qi-cap.com>*
On Thu, 21 Jul 2022 at 17:35, Alan DeKok <aland@deployingradius.com> wrote:
On Jul 21, 2022, at 7:05 AM, Krishna Chaitanya < krishna.chaitanya@qi-cap.com> wrote:
FreeRADIUS: Using mschapv2 with freeipa for wireless authentication. I am following the below links to use mschapv2 authentication to have authenticate wireless users using FreeIPA+ Freeradius.
https://fy.blackhats.net.au/blog/html/2015/07/06/FreeIPA:_Giving_permissions... https://fy.blackhats.net.au/blog/html/2016/01/13/FreeRADIUS:_Using_mschapv2_...
That documentation might work. On quick inspection it's not completely wrong, which is a big win.
However, I am getting some bind errors when running radius in Debug mode.The Debug report shows that ldap bind is unsuccessful due to invalid credentials and am sure that bind credentials mentioned in *mods-available/ldap *module is correct. Well, if FreeIPA says "invalid credentials", then the credentials are invalid.
We don't need to see the module configuration. All of the documentation says to just post the debug output.
* }rlm_ldap (ldap): Opening additional connection (0), 1 of 32 pending slots usedrlm_ldap (ldap): Connecting to ldap://122.1.5.84:389 <http://122.1.5.84:389>rlm_ldap (ldap): Waiting for bind result...rlm_ldap (ldap): Bind credentials incorrect: Invalid credentialsrlm_ldap (ldap): Opening connection failed (0)rlm_ldap (ldap): Removing connection pool/etc/raddb/mods-enabled/ldap[8]: Instantiation failed for module That's been "helpfully" reformatted to be difficult to read. But OK...
If the credentials are invalid, then they're invalid. That's really it.
The ldap module also contains instructions for how to test the configuration using ldapsearch. You can try that, too.
====================================================================================
When I comment out *Identity and password* details in Ldap module radius can get started in debug mode.However, below radtest with mschap type is getting rejected. It's helpful to read the messages. They tell you what's wrong.
Below is the radtest command on client and debug report on IPA server. We don't need to see radtest either. The documentation is very clear on this.
... (0) ldap: Performing search in "cn=users,cn=accounts,dc=qi-cap,dc=com" with filter "(uid=radius)", scope "sub" (0) ldap: Waiting for search result... (0) ldap: User object found at DN "uid=radius,cn=users,cn=accounts,dc=qi-cap,dc=com" (0) ldap: Processing user attributes (0) ldap: WARNING: No "known good" password added. Ensure the admin user has permission to read the password attribute FreeIPA isn't giving FreeRADiUS the users password.
You can't hand the MS-CHAP stuff to FreeIPA, as it doesn't do MS-CHAP. FreeRADIUS does MS-CHAP, but it needs the users password. And FreeIPA will only give the password to FreeRADIUS when FreeRADIUS uses a "read-only" administrator account.
i.e. an account which has permission to read the password.
Use ldapsearch to test the FreeRADIUS configuration. There are instructions in the default mods-enabled/ldap file on how to do this.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Did you do the ldapsearch? Do you get a password attribute from the FreeIPA LDAP? for mschap auth the password does not work with salted hashes. See: http://deployingradius.com/documents/protocols/compatibility.html As far as I know, FreeIPA stores the password as salted hashes. Perhaps you should take one step back and first thick about what you want to achieve. What service do you want to authenticate with RADIUS? What is the backend? How does it store passwords? How can you access the password attribute? What AUTH protocol do you want to use? And finally: Are your ideas technically feasible? Without access to a password attribute, FreeRADIUS cannot authenticate nothing. Do not work against the protocol compatibility matrix. It just won't work. Mit freundlichen Grüßen, -- [*] sys4 AG https://sys4.de, +49 (89) 30 90 46 64 Schleißheimer Straße 26/MG,80333 München Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief Aufsichtsratsvorsitzender: Florian Kirstein
participants (4)
-
Alan DeKok -
Krishna Chaitanya -
Matthew Newton -
Michael Schwartzkopff