'Segmentation fault' loading rlm_sql_postgresql
Christiaan Ehlers
Christiaan.Ehlers at inclarity.co.uk
Fri Jun 3 19:27:13 CEST 2005
Hi,
Managed to find the code and plug it into the right place... (I am NO C
programmer!) All compiled well and the CALLING_STATION_ID is getting passed
on to the server...
Here is the diff if anybody is interested in doing the same
==============================================
1258d1257
< CONST char *rhost;
1306,1312d1304
< retval = pam_get_item(pamh, PAM_RHOST, (CONST void **) &rhost);
< PAM_FAIL_CHECK;
< if (rhost) {
< add_attribute(request, PW_CALLING_STATION_ID, (unsigned char *) rhost,
< strlen(rhost));
< }
<
1613d1604
<
===============================================
Thanks
Christiaan Ehlers
-----Original Message-----
From: Alan DeKok [mailto:aland at ox.org]
Sent: 03 June 2005 17:30
To: FreeRadius users mailing list
Subject: Re: 'Segmentation fault' loading rlm_sql_postgresql
Achim Friedland <mailinglists at ahzf.de> wrote:
> is there a known problem with freeradius 1.0.2 and rlm_sql_postgresql?
> Load the sql.conf just makes my freeradius segfaulting...
It's a libltdl problem. It can't find the postgres libraries on
your system, as they're probably installed in a non-standard place.
Set LD_LIBRARY_PATH, or in radiusd.conf, "libdir".
Or, build the server statically.
Or, install the postgres libraries in a standard place.
Alan DeKok.
-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20050603/c6a4edcc/attachment.html>
More information about the Freeradius-Users
mailing list