segfault calling rc_auth()
Herwin Weststrate
herwin at quarantainenet.nl
Wed Feb 3 10:57:47 CET 2016
On 02-02-16 21:46, dev wrote:
> I have an ldap password plugin which calls rc_auth() to authenticate
> the user/pass combination with a freeradius server. I've used a
> plugin template from openLDAP and the code from radexample.c
> (1.1.6 on ubuntu 14.04) for the radius bits.
>
> I'm getting segfaults in libc sometimes in kernel.log and not sure
> what's causing the problem:
> traps: slapd[5181] general protection ip:7fa35a699c7f
> sp:7fa353664f90 error:0 in libc-2.19.so[7fa35a602000+1bb000]
>
> I have the code on pastebin to help clarify:
> line 126 (http://pastebin.com/NNzeetz5).
>
> Does this seem like an issue in the 1.1.6 freeradiusclient library
> somehow, or am I doing something boneheaded? Not sure at this point
> where to start looking for the problem. dmesg only shows the segfault
> entry and /var/log/freeradius/radius.log says "ldap_search() failed:
> LDAP connection lost.". The output in debug mode for the ldap server
> simply terminates as the segfault takes out slapd.
It's probably the problem reported at
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=732052. If you just
add a radius_deadtime option to the config the bug may disappear.
--
Herwin Weststrate
More information about the Freeradius-Users
mailing list