<div class="gmail_quote">On Wed, Sep 22, 2010 at 10:55 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>
> This is what I get back:<br>
><br>
> (gdb) run<br>
> Starting program: /usr/local/bin/sparcv9/pamtester jpam peter authenticate<br>
> procfs:4337 -- process not stopped.<br>
> procfs: ...giving up...<br>
> (gdb) bt<br>
> procfs: couldn't find pid 7326 (kernel thread 1) in procinfo list.<br>
> procfs: couldn't find pid 7326 (kernel thread 1) in procinfo list.<br>
<br>
</div> Well... that's an issue for Solaris && gdb documentation, unfortunately.<br></blockquote><div><br>We have debugged this partially, and are trying to apply patches to Solaris to find out what's going on.<br>
<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 available */<br>
}<br><br>That gethostbyname returns an h_addr IP address of "0.0.0.1" on our solaris box when running in 64Bit, but not in 32Bit. The box has IPV6 fully disabled so we are not sure why it's doing that.<br>
<br>Otherwise we many to using gethostbyname_r rather than gethostbyname and get it working that way I'll submit a patch. And use the get_ipaddr function at line 242 only once rather than having two seprate places where gethostbyname is called to return an IP Address<br>
<br>Cheers<br><br>Peter<br></div></div>