Problem with ldap module invalid variable expansion

Orion Timbale timbaledorion at hotmail.com
Mon Dec 28 20:36:24 CET 2015


When i try to authenticate through EAP/PEAP/MSCHAPV2 i got the following
error

Mon Dec 28 20:25:20 2015 : Debug: rlm_ldap (ldap): Reserved connection (4)
Mon Dec 28 20:25:20 2015 : ERROR: (1) ldap : (uid=%u)
Mon Dec 28 20:25:20 2015 : ERROR: (1) ldap :       ^ Invalid variable
expansion
Mon Dec 28 20:25:20 2015 : ERROR: (1) ldap : Unable to create filter
Mon Dec 28 20:25:20 2015 : Debug: rlm_ldap (ldap): Released connection (4)


Does anybody knows where its come from? I have had to use my own built
that may explain many but i don't know where to seek for solutions
Thanks for your help!!!!


FYI:

I'm using eapol_test with the following configuration file

network={
        key_mgmt=NONE
        eap=MSCHAPV2
        identity="XXXXX"
        password="******"
}


He is my ldap module configuration file

ldap {
        server = "127.0.0.1"
        identity = "cn=Manager, dc=pipoiohxui"
        password = "********"
        basedn = "ou=Users,dc=pipoiohxui"
        filter = "(uid=%{%{Stripped-User-Name}:-%{User-Name}})"
        base_filter = "(objectclass=radiusprofile)"
        ldap_connections_number = 5
        timeout = 4
        timelimit = 3
        net_timeout = 1
        tls {
                start_tls = no
        }
        dictionary_mapping = ${confdir}/ldap.attrmap
        edir_account_policy_check = no
}


Here is the start of radiusd
Mon Dec 28 20:19:01 2015 : Info: radiusd: FreeRADIUS Version 3.0.3, for
host x86_64-redhat-linux-gnu, built on Dec 28 2015 at 20:12:25^[[0m
Mon Dec 28 20:19:01 2015 : Debug: Server was built with:
Mon Dec 28 20:19:01 2015 : Debug:   accounting
Mon Dec 28 20:19:01 2015 : Debug:   authentication
Mon Dec 28 20:19:01 2015 : Debug:   ascend binary attributes
Mon Dec 28 20:19:01 2015 : Debug:   coa
Mon Dec 28 20:19:01 2015 : Debug:   control-socket
Mon Dec 28 20:19:01 2015 : Debug:   detail
Mon Dec 28 20:19:01 2015 : Debug:   dhcp
Mon Dec 28 20:19:01 2015 : Debug:   dynamic clients
Mon Dec 28 20:19:01 2015 : Debug:   proxy
Mon Dec 28 20:19:01 2015 : Debug:   regex-pcre
Mon Dec 28 20:19:01 2015 : Debug:   session-management
Mon Dec 28 20:19:01 2015 : Debug:   stats
Mon Dec 28 20:19:01 2015 : Debug:   tcp
Mon Dec 28 20:19:01 2015 : Debug:   threads
Mon Dec 28 20:19:01 2015 : Debug:   tls
Mon Dec 28 20:19:01 2015 : Debug:   unlang
Mon Dec 28 20:19:01 2015 : Debug:   vmps
Mon Dec 28 20:19:01 2015 : Debug: Server core libs:
Mon Dec 28 20:19:01 2015 : Debug:   talloc : 2.0.*
Mon Dec 28 20:19:01 2015 : Debug:   ssl    : OpenSSL 1.0.1g-fips 23 Dec
2015 0x01000107f (1.0.1g-15)
Mon Dec 28 20:19:01 2015 : Debug: Library magic number:
Mon Dec 28 20:19:01 2015 : Debug:   0xf403000300000000
Mon Dec 28 20:19:01 2015 : Debug: Endianess:
Mon Dec 28 20:19:01 2015 : Debug:   little

This is my own build for security purposes linked to openSSL library.




More information about the Freeradius-Users mailing list