<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: 'Segmentation fault' loading rlm_sql_postgresql</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Hi,</FONT>
</P>
<P><FONT SIZE=2>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...</FONT></P>
<P><FONT SIZE=2>Here is the diff if anybody is interested in doing the same</FONT>
</P>
<P><FONT SIZE=2>==============================================</FONT>
<BR><FONT SIZE=2>1258d1257</FONT>
<BR><FONT SIZE=2>< CONST char *rhost;</FONT>
<BR><FONT SIZE=2>1306,1312d1304</FONT>
<BR><FONT SIZE=2>< retval = pam_get_item(pamh, PAM_RHOST, (CONST void **) &rhost);</FONT>
<BR><FONT SIZE=2>< PAM_FAIL_CHECK;</FONT>
<BR><FONT SIZE=2>< if (rhost) {</FONT>
<BR><FONT SIZE=2>< add_attribute(request, PW_CALLING_STATION_ID, (unsigned char *) rhost,</FONT>
<BR><FONT SIZE=2>< strlen(rhost));</FONT>
<BR><FONT SIZE=2>< }</FONT>
<BR><FONT SIZE=2>< </FONT>
<BR><FONT SIZE=2>1613d1604</FONT>
<BR><FONT SIZE=2><</FONT>
<BR><FONT SIZE=2>===============================================</FONT>
</P>
<P><FONT SIZE=2>Thanks</FONT>
<BR><FONT SIZE=2>Christiaan Ehlers</FONT>
</P>
<BR>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Alan DeKok [<A HREF="mailto:aland@ox.org">mailto:aland@ox.org</A>] </FONT>
<BR><FONT SIZE=2>Sent: 03 June 2005 17:30</FONT>
<BR><FONT SIZE=2>To: FreeRadius users mailing list</FONT>
<BR><FONT SIZE=2>Subject: Re: 'Segmentation fault' loading rlm_sql_postgresql</FONT>
</P>
<P><FONT SIZE=2>Achim Friedland <mailinglists@ahzf.de> wrote:</FONT>
<BR><FONT SIZE=2>> is there a known problem with freeradius 1.0.2 and rlm_sql_postgresql?</FONT>
<BR><FONT SIZE=2>> Load the sql.conf just makes my freeradius segfaulting...</FONT>
</P>
<P><FONT SIZE=2> It's a libltdl problem. It can't find the postgres libraries on</FONT>
<BR><FONT SIZE=2>your system, as they're probably installed in a non-standard place.</FONT>
<BR><FONT SIZE=2>Set LD_LIBRARY_PATH, or in radiusd.conf, "libdir".</FONT>
</P>
<P><FONT SIZE=2> Or, build the server statically.</FONT>
</P>
<P><FONT SIZE=2> Or, install the postgres libraries in a standard place.</FONT>
</P>
<P><FONT SIZE=2> Alan DeKok.</FONT>
</P>
<P><FONT SIZE=2>- </FONT>
<BR><FONT SIZE=2>List info/subscribe/unsubscribe? See <A HREF="http://www.freeradius.org/list/users.html" TARGET="_blank">http://www.freeradius.org/list/users.html</A></FONT>
</P>
</BODY>
</HTML>