<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="https://forum.yubico.com/feed.php?f=3&amp;t=1742" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2015-02-17T08:32:31+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=3&amp;t=1742</id>
<entry>
<author><name><![CDATA[davand01]]></name></author>
<updated>2015-02-17T08:32:31+01:00</updated>
<published>2015-02-17T08:32:31+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1742&amp;p=6868#p6868</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1742&amp;p=6868#p6868"/>
<title type="html"><![CDATA[Re: pam_yubico stalls, no api response]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1742&amp;p=6868#p6868"><![CDATA[
Debug output shows the following:<br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />debug: pam_yubico.c:972 (pam_sm_authenticate): conv returned 45 bytes<br />debug: pam_yubico.c:990 (pam_sm_authenticate): Skipping first 1 bytes. Length is 45, token_id set to 12 and token OTP always 32.<br />debug: pam_yubico.c:997 (pam_sm_authenticate): OTP: sdfölkjasdflökjasdflökjasdflökjasdfölkj ID: sdfölkjasdf<br />debug: pam_yubico.c:1012 (pam_sm_authenticate): Extracted a probable system password entered before the OTP - setting item PAM_AUTHTOK<br /></div><br /><br />And upon looking at the file pam_yubico.c [https://github.com/Yubico/yubico-pam-dpkg/blob/master/pam_yubico.c], the pam apparently stalls somewhere within these lines of code:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">      retval = pam_set_item (pamh, PAM_AUTHTOK, onlypasswd);<br />      free (onlypasswd);<br />      if (retval != PAM_SUCCESS)<br />   {<br />     DBG ((&quot;set_item returned error: %s&quot;, pam_strerror (pamh, retval)));<br />     goto done;<br />   }<br />    }<br />  else<br />    password = NULL;<br /><br />  rc = ykclient_request (ykc, otp);</div><br /><br />My suspicion is that it is the <strong>ykclient_request (ykc, otp)</strong> that won't work... But all libs are installed and linked into /usr/lib... Any ideas?<br /><br />BR<br />//David<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3527">davand01</a> — Tue Feb 17, 2015 8:32 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[davand01]]></name></author>
<updated>2015-02-12T22:06:12+01:00</updated>
<published>2015-02-12T22:06:12+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1742&amp;p=6856#p6856</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1742&amp;p=6856#p6856"/>
<title type="html"><![CDATA[pam_yubico stalls, no api response]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1742&amp;p=6856#p6856"><![CDATA[
Hi,<br /><br />I'm trying to get Openvpn to work with pam on pfsense. So far, no luck. In order to debug it, i tried using in in the /etc/pam.d/su file, with the following result:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">debug: pam_yubico.c:764 (parse_cfg): called.<br />debug: pam_yubico.c:765 (parse_cfg): flags 0 argc 3<br />debug: pam_yubico.c:767 (parse_cfg): argv&#91;0&#93;=id=16<br />debug: pam_yubico.c:767 (parse_cfg): argv&#91;1&#93;=authfile=/etc/yubikeyid<br />debug: pam_yubico.c:767 (parse_cfg): argv&#91;2&#93;=debug<br />debug: pam_yubico.c:768 (parse_cfg): id=16<br />debug: pam_yubico.c:769 (parse_cfg): key=(null)<br />debug: pam_yubico.c:770 (parse_cfg): debug=1<br />debug: pam_yubico.c:771 (parse_cfg): alwaysok=0<br />debug: pam_yubico.c:772 (parse_cfg): verbose_otp=0<br />debug: pam_yubico.c:773 (parse_cfg): try_first_pass=0<br />debug: pam_yubico.c:774 (parse_cfg): use_first_pass=0<br />debug: pam_yubico.c:775 (parse_cfg): authfile=/etc/yubikeyid<br />debug: pam_yubico.c:776 (parse_cfg): ldapserver=(null)<br />debug: pam_yubico.c:777 (parse_cfg): ldap_uri=(null)<br />debug: pam_yubico.c:778 (parse_cfg): ldapdn=(null)<br />debug: pam_yubico.c:779 (parse_cfg): user_attr=(null)<br />debug: pam_yubico.c:780 (parse_cfg): yubi_attr=(null)<br />debug: pam_yubico.c:781 (parse_cfg): yubi_attr_prefix=(null)<br />debug: pam_yubico.c:782 (parse_cfg): url=(null)<br />debug: pam_yubico.c:783 (parse_cfg): urllist=(null)<br />debug: pam_yubico.c:784 (parse_cfg): capath=(null)<br />debug: pam_yubico.c:785 (parse_cfg): token_id_length=12<br />debug: pam_yubico.c:786 (parse_cfg): mode=client<br />debug: pam_yubico.c:787 (parse_cfg): chalresp_path=(null)<br />debug: pam_yubico.c:829 (pam_sm_authenticate): get user returned: XXXX<br />YubiKey for `davand01':<br />debug: pam_yubico.c:972 (pam_sm_authenticate): conv returned 44 bytes<br />debug: pam_yubico.c:990 (pam_sm_authenticate): Skipping first 0 bytes. Length is 44, token_id set to 12 and token OTP always 32.<br />debug: pam_yubico.c:997 (pam_sm_authenticate): OTP: XXXXXXXXXXX ID: XXXXXXXX<br /></div><br /><br />But after this point, nothing happens. I also tried using tcpdump -i host api.yubico.com, but that yields no result what so ever. What could be wrong? I used the pam_yubico that's available as a package for freebsd.<br /><br />Any ideas?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3527">davand01</a> — Thu Feb 12, 2015 10:06 pm</p><hr />
]]></content>
</entry>
</feed>