<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font face="Carlito">Hi all,</font><br>
    <font face="Carlito"><br>
    </font><br>
    <font face="Carlito">I agree on it's look like a 32 bit issue.
      Trying to reproduce on Fedora 64 bit; no problems</font><br>
    <font face="Carlito"><br>
      Trying to reproduce on Fedora 23 32 bit (x886):</font><br>
    <font face="Carlito"><br>
    </font>
    <blockquote><font face="Carlito">[root@freeipa ~]# journalctl -l -u
        <a class="moz-txt-link-abbreviated" href="mailto:ipa-otpd@0-6397-0.service">ipa-otpd@0-6397-0.service</a></font><br>
      <font face="Carlito">-- Logs begin at vr 2016-06-10 09:23:33 CEST,
        end at vr 2016-06-10 10:53:28 CEST. --</font><br>
      <font face="Carlito">jun 10 10:53:27 freeipa.local.lan systemd[1]:
        Started ipa-otpd service (PID 6397/UID 0).</font><br>
      <font face="Carlito">jun 10 10:53:27 freeipa.local.lan systemd[1]:
        Starting ipa-otpd service (PID 6397/UID 0)...</font><br>
      <font face="Carlito">jun 10 10:53:27 freeipa.local.lan
        ipa-otpd[7320]: LDAP:
        ldapi://%2fvar%2frun%2fslapd-LOCAL-LAN.socket</font><br>
      <font face="Carlito">jun 10 10:53:28 freeipa.local.lan
        ipa-otpd[7320]: <a class="moz-txt-link-abbreviated" href="mailto:otpuser@LOCAL.LAN">otpuser@LOCAL.LAN</a>: request received</font><br>
      <font face="Carlito">jun 10 10:53:28 freeipa.local.lan
        ipa-otpd[7320]: <a class="moz-txt-link-abbreviated" href="mailto:otpuser@LOCAL.LAN">otpuser@LOCAL.LAN</a>: user query start</font><br>
      <font face="Carlito">jun 10 10:53:28 freeipa.local.lan
        ipa-otpd[7320]: <a class="moz-txt-link-abbreviated" href="mailto:otpuser@LOCAL.LAN">otpuser@LOCAL.LAN</a>: user query end:
        uid=otpuser,cn=users,cn=accounts,dc=local,dc=lan</font><br>
      <font face="Carlito">jun 10 10:53:28 freeipa.local.lan
        ipa-otpd[7320]: <a class="moz-txt-link-abbreviated" href="mailto:otpuser@LOCAL.LAN">otpuser@LOCAL.LAN</a>: bind start:
        uid=otpuser,cn=users,cn=accounts,dc=local,dc=lan</font><br>
      <font face="Carlito">jun 10 10:53:28 freeipa.local.lan
        ipa-otpd[7320]: <a class="moz-txt-link-abbreviated" href="mailto:otpuser@LOCAL.LAN">otpuser@LOCAL.LAN</a>: bind end: success</font><br>
      <font face="Carlito">jun 10 10:53:28 freeipa.local.lan
        ipa-otpd[7320]: <a class="moz-txt-link-abbreviated" href="mailto:otpuser@LOCAL.LAN">otpuser@LOCAL.LAN</a>: response sent: Access-Accept</font><br>
      <font face="Carlito">jun 10 10:53:28 freeipa.local.lan
        ipa-otpd[7320]: stdio.c:073: Connection reset by peer: Error
        receiving packet</font><br>
      <font face="Carlito">jun 10 10:53:28 freeipa.local.lan systemd[1]:
        <a class="moz-txt-link-abbreviated" href="mailto:ipa-otpd@0-6397-0.service">ipa-otpd@0-6397-0.service</a>: Main process exited, code=exited,
        status=1/FAILURE</font><br>
      <font face="Carlito">jun 10 10:53:28 freeipa.local.lan systemd[1]:
        <a class="moz-txt-link-abbreviated" href="mailto:ipa-otpd@0-6397-0.service">ipa-otpd@0-6397-0.service</a>: Unit entered failed state.</font><br>
      <font face="Carlito">jun 10 10:53:28 freeipa.local.lan systemd[1]:
        <a class="moz-txt-link-abbreviated" href="mailto:ipa-otpd@0-6397-0.service">ipa-otpd@0-6397-0.service</a>: Failed with result 'exit-code'.</font><br>
    </blockquote>
    <br>
    Same error as on Fedora ARM which is also 32 bit.<br>
    Removing libverto-tevent doesn't work.<br>
    Cheers you all!<br>
    <br>
    <br>
    Winny<br>
    <div class="moz-cite-prefix">Op 09-06-16 om 18:51 schreef Sumit
      Bose:<br>
    </div>
    <blockquote
cite="mid:20160609165109.GN3302@p.Speedport_W_724V_Typ_A_05011603_00_009"
      type="cite">
      <pre wrap="">On Thu, Jun 09, 2016 at 08:42:59AM -0400, Nathaniel McCallum wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">On Thu, 2016-06-09 at 10:46 +0200, Sumit Bose wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">On Thu, Jun 09, 2016 at 08:16:13AM +0200, Winfried de Heiden wrote:
</pre>
          <blockquote type="cite">
            <pre wrap="">Hi all,

I can install libvert-libev but removing libverto-tevent will
remove 123
dependencies also. (wget, tomcat and much more...)

Hence, I installed libverto-libev, but dit not remove libverto-
tevent to give
it a try. After ipactl restart still the same problem:
</pre>
          </blockquote>
          <pre wrap="">
fyi, I think I can reproduce the issue on 32bit Fedora. I tried
libverto-libev as well but I removed libverto-tevent after installing
libverto-libev with 'rpm -e --nodeps ....' to make sure libverto has
no
other chance.

So it looks a bit like a libverto 32bit issue. I used
libverto-0.2.6-4.fc22. Since I knew that is was working before on
32bits
I tried libverto-0.2.5 and libverto-0.2.4 as well with no lock.

Nathaniel, do you have any suggestions what to check with gdb?
</pre>
        </blockquote>
        <pre wrap="">
It may not be a libverto issue at all. Just to summarize, krb5kdc sends
the otp request to ipa-otpd using RADIUS-over-UNIX-socket.

It appears that ipa-otpd receives the request and sends the appropriate
response. However, krb5kdc never appears to receive the request and
times out. Once it times out, it closes the socket and ipa-otpd exits.

The question is: why?

This could be a bug in krb5kdc, libkrad or libverto. Does the event
actually fire from libverto? Does libkrad process it correctly? Does
krb5kdc process it correctly?

There are lots of places to attach gdb. I would probably start here:
<a class="moz-txt-link-freetext" href="https://github.com/krb5/krb5/blob/master/src/lib/krad/client.c#L193">https://github.com/krb5/krb5/blob/master/src/lib/krad/client.c#L193</a>
</pre>
      </blockquote>
      <pre wrap="">
It looks like the 3rd argument of recv(), the buffer length, becomes
negative aka very big in on_io_read()

    i = recv(verto_get_fd(rr->io), rr->buffer.data + rr->buffer.length,
             pktlen - rr->buffer.length, 0);

because pktlen is 4 and rr->buffer.length is 16 on my 32bit system. I
wonder if pktlen isn't sufficient here because it already is the result
of 'len - buffer->length' which is calculated in
krad_packet_bytes_needed() ?

bye,
Sumit

</pre>
    </blockquote>
    <br>
  </body>
</html>