Attribute values passed into rlm_perl are truncated. rad_recv: Access-Request packet from host 127.0.0.1 port 43312, id=164, length=77 User-Name = 'baduser' User-Password = 'password' NAS-IP-Address = 127.0.0.1 NAS-Port = 0 Message-Authenticator = 0xe2fd6fe6902a551f5dcb8e603b6d981d rlm_perl: RAD_REQUEST: User-Name = badu rlm_perl: RAD_REQUEST: User-Password = pass rlm_perl: RAD_REQUEST: NAS-Port = 0 rlm_perl: RAD_REQUEST: NAS-IP-Address = 127.0.0.1 rlm_perl: RAD_REQUEST: Message-Authenticator = xe2fd6fe6902a551f5dcb8e603b6d981d The string values are truncated to 4 characters.
in src/lib/print.c the vp_prints_value function is defined like this: size_t vp_prints_value(char *out, size_t outlen, VALUE_PAIR const *vp, int8_t quote) which at some point does this: return fr_print_string(vp->vp_strvalue, vp->length, out, sizeof(out)); Note the length field of fr_print_string is passed as sizeof(out), but out is a pointer, on a system whose pointers are 4 bytes the maximum string emitted will be 4 characters. The correct length to pass is the outlen parameter.
freeradius-3.0.1-3.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/freeradius-3.0.1-3.fc20
Package freeradius-3.0.1-3.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing freeradius-3.0.1-3.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-2964/freeradius-3.0.1-3.fc20 then log in and leave karma (feedback).
freeradius-3.0.1-4.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/freeradius-3.0.1-4.fc20
freeradius-3.0.1-4.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.