Interestingly it seems to have come down to how UINT4 was defined.<br><br>Changing in the radius.h UINT4 from being a unsigned long to a unit32_t seemed to have sorted the problem:<br><br>-------Begin Patch<br>--- radius.h.orig       Fri Sep 24 15:17:05 2010<br>
+++ radius.h    Wed Sep 29 10:56:36 2010<br>@@ -36,7 +36,7 @@<br> #define AUTH_STRING_LEN                128     /* maximum of 254 */<br><br> #ifndef UINT4<br>-typedef unsigned long UINT4;<br>+typedef uint32_t UINT4;<br> #endif<br>
<br> typedef struct pw_auth_hdr {<br>-------End Patch<br>
<br>That has seemed to sort the problem.<br><br><div class="gmail_quote">On Tue, Sep 28, 2010 at 8:31 PM, Alan DeKok <span dir="ltr"><<a href="mailto:aland@deployingradius.com">aland@deployingradius.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">Peter Lambrechtsen wrote:<br>
> It seems around like 734 in pam_radius_auth.c:<br>
><br>
>     if ((hp = gethostbyname(hostname)) == (struct hostent *) NULL) {<br>
>       ipaddr = 0x00000000;    /* no client IP address */<br>
>     } else {<br>
>       ipaddr = ntohl(*(UINT4 *) hp->h_addr); /* use the first one<br>
> available */<br>
>     }<br>
><br>
> That gethostbyname returns an h_addr IP address of "0.0.0.1" on our<br>
> solaris box when running in 64Bit, but not in 32Bit.  The box has IPV6<br>
> fully disabled so we are not sure why it's doing that.<br>
<br>
</div>  Ah... "0.0.0.1" is "::1" in IPv6.<br>
<br>
  OK, the module *should* check the "h_addrtype" field.  It's not doing<br>
that right now.<br>
<div class="im"><br>
> Otherwise we many to using gethostbyname_r rather than gethostbyname and<br>
> get it working that way I'll submit a patch.  And use the get_ipaddr<br>
> function at line 242 only once rather than having two seprate places<br>
> where gethostbyname is called to return an IP Address<br>
<br>
</div>  OK, thanks.<br>
<div><div></div><div class="h5"><br>
  Alan DeKok.<br>
-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br>
</div></div></blockquote></div><br>