AW: Post-Auth Section not executed

NOC WVNET noclist at wvnet.at
Tue Feb 20 09:01:55 CET 2018


>  Read http://wiki.freeradius.org/radiusd-X

Sorry, my first post

FreeRADIUS Version 3.0.16
Copyright (C) 1999-2017 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/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/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/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/linelog
including configuration file /etc/raddb/mods-enabled/logintime
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/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/abfab-tr
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/moonshot-targeted-ids
including configuration file /etc/raddb/policy.d/operator-name
including files in directory /etc/raddb/sites-enabled/
including configuration file /etc/raddb/sites-enabled/wvnet-aaa
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"
        panic_action = "exit"
        hostname_lookups = no
        max_request_time = 10
        cleanup_delay = 5
        max_requests = 16384
        pidfile = "/var/run/radiusd/radiusd.pid"
        checkrad = "/usr/sbin/checkrad"
        debug_level = 0
        proxy_requests = no
 log {
        stripped_names = no
        auth = yes
        auth_badpass = yes
        auth_goodpass = no
        colourise = yes
        msg_denied = "You are already logged in - access denied"
 }
 resources {
 }
 security {
        max_attributes = 100
        reject_delay = 2.000000
        status_server = no
        allow_vulnerable_openssl = "CVE-2016-6304"
 }
}
radiusd: #### Loading Realms and Home Servers ####
radiusd: #### Loading Clients ####
 client localhost {
        ipaddr = 127.0.0.1
        require_message_authenticator = no
        secret = <<< secret >>>
        nas_type = "other"
        virtual_server = "wvnet-aaa"
        proto = "*"
  limit {
        max_connections = 16
        lifetime = 0
        idle_timeout = 30
  }
 }
client ATVIED6INFRACLUST-RADCLIENT {
        ipaddr = 10.214.0.0/16
        require_message_authenticator = no
        secret = <<< secret >>>
        nas_type = "other"
        virtual_server = "wvnet-aaa"
        proto = "udp"
  limit {
        max_connections = 16
        lifetime = 0
        idle_timeout = 30
  }
 }
Debugger not attached
 # Creating Auth-Type = PAP
 # Creating Auth-Type = CHAP
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_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
  }
  # 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_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_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_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 {
        with_ascend_hack = no
        ascend_channels_per_line = 23
        with_ntdomain_hack = no
        with_specialix_jetstream_hack = no
        with_cisco_vsa_hack = yes
        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 "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_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 "ATVIED6INFRAH4LDAP" from file /etc/raddb/mods-enabled/ldap
  ldap ATVIED6INFRAH4LDAP {
        server = "ldaps://ATVIED6INFRAH4LDAP.as29081.net"
        identity = "cn=raddbldap,dc=as29081,dc=net"
        password = <<< secret >>>
   sasl {
   }
        valuepair_attribute = "radiusAttribute"
        read_clients = no
   user {
        scope = "sub"
        access_attribute = "dialupAccess"
        access_positive = yes
    sasl {
    }
   }
   group {
        scope = "sub"
        name_attribute = "cn"
        cacheable_name = no
        cacheable_dn = no
   }
   client {
        filter = "(objectClass=radiusClient)"
        scope = "sub"
        base_dn = "ou=AccessServer,ou=AAA,dc=as29081,dc=net"
   }
   profile {
   }
   options {
        ldap_debug = 40
        dereference = "never"
        chase_referrals = yes
        rebind = yes
        net_timeout = 2
        res_timeout = 10
        srv_timelimit = 3
        idle = 60
        probes = 3
        interval = 3
   }
   tls {
        ca_path = "/etc/openldap/certs"
        certificate_file = "/etc/openldap/certs/as29081_net.crt"
        private_key_file = "/etc/openldap/certs/as29081_net.key"
        random_file = "/dev/urandom"
        start_tls = no
        require_cert = "allow"
   }
  }
Creating attribute ATVIED6INFRAH4LDAP-LDAP-Group
  # 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
[/etc/raddb/mods-config/attr_filter/access_reject]:11 Check item "FreeRADIUS-Response-Delay"    found in filter list for realm "DEFAULT".
[/etc/raddb/mods-config/attr_filter/access_reject]:11 Check item "FreeRADIUS-Response-Delay-USec"       found in filter list for realm "DEFAULT".
  # 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 "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 "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 "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
  # Instantiating module "IPASS" from file /etc/raddb/mods-enabled/realm
  # Instantiating module "suffix" 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 "ATVIED6INFRAH4LDAP" from file /etc/raddb/mods-enabled/ldap
rlm_ldap: libldap vendor: OpenLDAP, version: 20445
   accounting {
        reference = "."
   }
   post-auth {
        reference = "."
   }
rlm_ldap (ATVIED6INFRAH4LDAP): Initialising connection pool
   pool {
        start = 5
        min = 3
        max = 32
        spare = 10
        uses = 0
        lifetime = 0
        cleanup_interval = 30
        idle_timeout = 60
        retry_delay = 20
        spread = no
   }
rlm_ldap (ATVIED6INFRAH4LDAP): Opening additional connection (0), 1 of 32 pending slots used
rlm_ldap (ATVIED6INFRAH4LDAP): Connecting to ldaps://ATVIED6INFRAH4LDAP.as29081.net:636
TLS certificate verification: Error, self signed certificate in certificate chain
rlm_ldap (ATVIED6INFRAH4LDAP): Waiting for bind result...
rlm_ldap (ATVIED6INFRAH4LDAP): Bind successful
rlm_ldap (ATVIED6INFRAH4LDAP): Opening additional connection (1), 1 of 31 pending slots used
rlm_ldap (ATVIED6INFRAH4LDAP): Connecting to ldaps://ATVIED6INFRAH4LDAP.as29081.net:636
TLS certificate verification: Error, self signed certificate in certificate chain
rlm_ldap (ATVIED6INFRAH4LDAP): Waiting for bind result...
rlm_ldap (ATVIED6INFRAH4LDAP): Bind successful
rlm_ldap (ATVIED6INFRAH4LDAP): Opening additional connection (2), 1 of 30 pending slots used
rlm_ldap (ATVIED6INFRAH4LDAP): Connecting to ldaps://ATVIED6INFRAH4LDAP.as29081.net:636
TLS certificate verification: Error, self signed certificate in certificate chain
rlm_ldap (ATVIED6INFRAH4LDAP): Waiting for bind result...
rlm_ldap (ATVIED6INFRAH4LDAP): Bind successful
rlm_ldap (ATVIED6INFRAH4LDAP): Opening additional connection (3), 1 of 29 pending slots used
rlm_ldap (ATVIED6INFRAH4LDAP): Connecting to ldaps://ATVIED6INFRAH4LDAP.as29081.net:636
TLS certificate verification: Error, self signed certificate in certificate chain
rlm_ldap (ATVIED6INFRAH4LDAP): Waiting for bind result...
rlm_ldap (ATVIED6INFRAH4LDAP): Bind successful
rlm_ldap (ATVIED6INFRAH4LDAP): Opening additional connection (4), 1 of 28 pending slots used
rlm_ldap (ATVIED6INFRAH4LDAP): Connecting to ldaps://ATVIED6INFRAH4LDAP.as29081.net:636
TLS certificate verification: Error, self signed certificate in certificate chain
rlm_ldap (ATVIED6INFRAH4LDAP): Waiting for bind result...
rlm_ldap (ATVIED6INFRAH4LDAP): Bind successful
 } # modules
radiusd: #### Loading Virtual Servers ####
server { # from file /etc/raddb/radiusd.conf
} # server
server wvnet-aaa { # from file /etc/raddb/sites-enabled/wvnet-aaa
 # Loading authenticate {...}
 # Loading authorize {...}
} # server wvnet-aaa
radiusd: #### Opening IP addresses and Ports ####
listen {
        type = "auth"
        ipaddr = ATVIED6INFRAH4AAA IPv4 address [10.214.200.35]
        port = 1812
}
Listening on auth address 10.214.200.35 port 1812 bound to server wvnet-aaa
Ready to process requests

(1) Received Access-Request Id 241 from 10.214.30.1:56442 to 10.214.200.35:1812 length 109
(1)   User-Name = "atvied6infraclust-monitor at edsl.wvnet.at"
(1)   User-Password = "secret"
(1)   NAS-IP-Address = 10.214.10.1
(1)   NAS-Port = 1
(1)   Message-Authenticator = 0x12b8ae55a1ceeb961e2fc7441e789f9a
(1) # Executing section authorize from file /etc/raddb/sites-enabled/wvnet-aaa
(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)     policy filter_password {
(1)       if (&User-Password &&            (&User-Password != "%{string:User-Password}")) {
(1)       EXPAND %{string:User-Password}
(1)          --> secret
(1)       if (&User-Password &&            (&User-Password != "%{string:User-Password}"))  -> FALSE
(1)     } # policy filter_password = notfound
(1)     [preprocess] = ok
(1)     if ( &User-Name =~ /^(.*)@(.*$)/ ) {
(1)     if ( &User-Name =~ /^(.*)@(.*$)/ )  -> TRUE
(1)     if ( &User-Name =~ /^(.*)@(.*$)/ )  {
(1)       update request {
(1)         EXPAND %{1}
(1)            --> atvied6infraclust-monitor
(1)         Stripped-User-Name := atvied6infraclust-monitor
(1)         EXPAND %{2}
(1)            --> edsl.wvnet.at
(1)         Realm := edsl.wvnet.at
(1)       } # update request = noop
(1)     } # if ( &User-Name =~ /^(.*)@(.*$)/ )  = noop
(1) auth_log: EXPAND /var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d
(1) auth_log:    --> /var/log/radius/radacct/10.214.30.1/auth-detail-20180220
(1) auth_log: /var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d expands to /var/log/radius/radacct/10.214.30.1/auth-detail-20180220
(1) auth_log: EXPAND %t
(1) auth_log:    --> Tue Feb 20 08:50:56 2018
(1)     [auth_log] = ok
rlm_ldap (ATVIED6INFRAH4LDAP): Closing connection (5): Hit idle_timeout, was idle for 115 seconds
rlm_ldap (ATVIED6INFRAH4LDAP): You probably need to lower "min"
rlm_ldap (ATVIED6INFRAH4LDAP): Closing connection (6): Hit idle_timeout, was idle for 115 seconds
rlm_ldap (ATVIED6INFRAH4LDAP): You probably need to lower "min"
rlm_ldap (ATVIED6INFRAH4LDAP): 0 of 0 connections in use.  You  may need to increase "spare"
rlm_ldap (ATVIED6INFRAH4LDAP): Opening additional connection (7), 1 of 32 pending slots used
rlm_ldap (ATVIED6INFRAH4LDAP): Connecting to ldaps://ATVIED6INFRAH4LDAP.as29081.net:636
TLS certificate verification: Error, self signed certificate in certificate chain
rlm_ldap (ATVIED6INFRAH4LDAP): Waiting for bind result...
rlm_ldap (ATVIED6INFRAH4LDAP): Bind successful
rlm_ldap (ATVIED6INFRAH4LDAP): Reserved connection (7)
(1) ATVIED6INFRAH4LDAP: EXPAND (cn=%{User-Name})
(1) ATVIED6INFRAH4LDAP:    --> (cn=atvied6infraclust-monitor at edsl.wvnet.at)
(1) ATVIED6INFRAH4LDAP: Performing search in "ou=DialIn,ou=AccessService,ou=AAA,dc=as29081,dc=net" with filter "(cn=atvied6infraclust-monitor at edsl.wvnet.at)", scope "sub"
(1) ATVIED6INFRAH4LDAP: Waiting for search result...
(1) ATVIED6INFRAH4LDAP: User object found at DN "cn=atvied6infraclust-monitor at edsl.wvnet.at,ou=edsl.wvnet.at,ou=realm,ou=DialIn,ou=AccessService,ou=AAA,dc=as29081,dc=net"
(1) ATVIED6INFRAH4LDAP: Processing user attributes
(1) ATVIED6INFRAH4LDAP: control:Password-With-Header += 'aaaMon29081'
(1) ATVIED6INFRAH4LDAP: reply::Cisco-AVPair += 'ip:addr-pool=monitor-pool'
(1) ATVIED6INFRAH4LDAP: reply::Cisco-AVPair += 'lcp:interface-config=service-policy input monitor'
rlm_ldap (ATVIED6INFRAH4LDAP): Released connection (7)
Need 2 more connections to reach min connections (3)
rlm_ldap (ATVIED6INFRAH4LDAP): Opening additional connection (8), 1 of 31 pending slots used
rlm_ldap (ATVIED6INFRAH4LDAP): Connecting to ldaps://ATVIED6INFRAH4LDAP.as29081.net:636
TLS certificate verification: Error, self signed certificate in certificate chain
rlm_ldap (ATVIED6INFRAH4LDAP): Waiting for bind result...
rlm_ldap (ATVIED6INFRAH4LDAP): Bind successful
(1)     [ATVIED6INFRAH4LDAP] = updated
(1)     [chap] = noop
(1) pap: No {...} in Password-With-Header, re-writing to Cleartext-Password
(1) pap: Removing &control:Password-With-Header
(1)     [pap] = updated
(1)   } # authorize = updated
(1) Found Auth-Type = PAP
(1) # Executing group from file /etc/raddb/sites-enabled/wvnet-aaa
(1)   Auth-Type PAP {
(1) pap: Login attempt with password
(1) pap: Comparing with "known good" Cleartext-Password
(1) pap: ERROR: Cleartext password does not match "known good" password
(1) pap: Passwords don't match
(1)     [pap] = reject
(1)   } # Auth-Type PAP = reject
(1) Failed to authenticate the user
(1) Using Post-Auth-Type Reject
(1) Post-Auth-Type sub-section not found.  Ignoring.
(1) Login incorrect (pap: Cleartext password does not match "known good" password): [atvied6infraclust-monitor at edsl.wvnet.at/secret] (from client ATVIED6INFRACLUST-RADCLIENT port 1)
(1) Delaying response for 2.000000 seconds
Waking up in 0.6 seconds.
Waking up in 1.3 seconds.
(1) Sending delayed response
(1) Sent Access-Reject Id 241 from 10.214.200.35:1812 to 10.214.30.1:56442 length 110
(1)   Cisco-AVPair += "ip:addr-pool=monitor-pool"
(1)   Cisco-AVPair += "lcp:interface-config=service-policy input monitor"
Waking up in 2.9 seconds.
(1) Cleaning up request packet ID 241 with timestamp +274
Ready to process requests


>  The server *is* running the post-auth section.  If you read the debug output
>you posted to the list, you would see that.
>
>  The problem lies elsewhere:
>
>> ...
>> (1) pap: Login attempt with password
>> (1) pap: Comparing with "known good" Cleartext-Password
>> (1) pap: ERROR: Cleartext password does not match "known good"
>> password
>> (1) pap: Passwords don't match
>
>  What part of that message is unclear?
>
I know that passwords doesn't match - I'm testing this
type of auth failure - Goal is to remove some
Attributes (Cisco-AVPairs) from the Access-Reject Packet

I can also see that something is done with Post-Auth but 
what does it mean ? (Post-Auth-Type sub-section not found.  Ignoring.)

(1) pap: Passwords don't match
(1)     [pap] = reject
(1)   } # Auth-Type PAP = reject
(1) Failed to authenticate the user
(1) Using Post-Auth-Type Reject
(1) Post-Auth-Type sub-section not found.  Ignoring.

My Post-Auth Section (in sites-enabled)

post_auth {
        Post-Auth-Type REJECT {
            update reply {
                Cisco-AVPair !* ANY
            }
            attr_filter.access_reject
        }


BR
Stefan




More information about the Freeradius-Users mailing list