segfault calling rc_auth()

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

On Feb 2, 2016, at 3:46 PM, dev <devuan.2 at> 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[7fa35a602000+1bb000]

  It's quite possibly a bug.  Please try the code from github:

  It has a number of fixes which may help.

> I have the code on pastebin to help clarify:
> line 126 (
> 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

More information about the Freeradius-Users mailing list