segfault calling rc_auth()

Alan DeKok aland at deployingradius.com
Tue Feb 2 21:48:06 CET 2016


On Feb 2, 2016, at 3:46 PM, dev <devuan.2 at gmail.com> 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]

  It's quite possibly a bug.  Please try the code from github:  https://github.com/FreeRADIUS/freeradius-client

  It has a number of fixes which may help.

> 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.
> 
> Thanks for any help!
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html




More information about the Freeradius-Users mailing list