<?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=5&amp;t=1855" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2015-04-25T15:05:58+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=5&amp;t=1855</id>
<entry>
<author><name><![CDATA[mdx54]]></name></author>
<updated>2015-04-25T15:05:58+01:00</updated>
<published>2015-04-25T15:05:58+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1855&amp;p=7251#p7251</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1855&amp;p=7251#p7251"/>
<title type="html"><![CDATA[ykclient failing with MISSING_PARAMETER on otp pam login]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1855&amp;p=7251#p7251"><![CDATA[
Hello, just wanted to test drive pam_yubico for PAM session authentication but it seems to be failing. <br /><br />and added the following to my /etc/pam.d/login:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">auth     sufficient     pam_yubico.so id=&#91;redacted&#93; authfile=/etc/yubikey_mappings debug<br /></div><br /><br />and configured the yubi ID in the authfile as defined above (username:yubi ID)<br /><br />When I try to log in, the above entry works, ensuring a prompt for Yubikey. Then it fails, regardless of the try_first_pass entry added to the unix pam module (found in the file common-auth-pc).<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">&#91;pam_yubico.c:parse_cfg(764)&#93; called.<br />&#91;pam_yubico.c:parse_cfg(765)&#93; flags 0 argc 3<br />&#91;pam_yubico.c:parse_cfg(767)&#93; argv&#91;0&#93;=id=&#91;redacted&#93;<br />&#91;pam_yubico.c:parse_cfg(767)&#93; argv&#91;1&#93;=authfile=/etc/yubikey_mappings<br />&#91;pam_yubico.c:parse_cfg(767)&#93; argv&#91;2&#93;=debug<br />&#91;pam_yubico.c:parse_cfg(768)&#93; id=-1<br />&#91;pam_yubico.c:parse_cfg(769)&#93; key=(null)<br />&#91;pam_yubico.c:parse_cfg(770)&#93; debug=1<br />&#91;pam_yubico.c:parse_cfg(771)&#93; alwaysok=0<br />&#91;pam_yubico.c:parse_cfg(772)&#93; verbose_otp=0<br />&#91;pam_yubico.c:parse_cfg(773)&#93; try_first_pass=0<br />&#91;pam_yubico.c:parse_cfg(774)&#93; use_first_pass=0<br />&#91;pam_yubico.c:parse_cfg(775)&#93; authfile=/etc/yubikey_mappings<br />&#91;pam_yubico.c:parse_cfg(776)&#93; ldapserver=(null)<br />&#91;pam_yubico.c:parse_cfg(777)&#93; ldap_uri=(null)<br />&#91;pam_yubico.c:parse_cfg(778)&#93; ldapdn=(null)<br />&#91;pam_yubico.c:parse_cfg(779)&#93; user_attr=(null)<br />&#91;pam_yubico.c:parse_cfg(780)&#93; yubi_attr=(null)<br />&#91;pam_yubico.c:parse_cfg(781)&#93; yubi_attr_prefix=(null)<br />&#91;pam_yubico.c:parse_cfg(782)&#93; url=(null)<br />&#91;pam_yubico.c:parse_cfg(783)&#93; urllist=(null)<br />&#91;pam_yubico.c:parse_cfg(784)&#93; capath=(null)<br />&#91;pam_yubico.c:parse_cfg(785)&#93; token_id_length=12<br />&#91;pam_yubico.c:parse_cfg(786)&#93; mode=client<br />&#91;pam_yubico.c:parse_cfg(787)&#93; chalresp_path=(null)<br />&#91;pam_yubico.c:pam_sm_authenticate(830)&#93; get user returned: username<br />&#91;pam_yubico.c:pam_sm_authenticate(972)&#93; conv returned 44 bytes<br />&#91;pam_yubico.c:pam_sm_authenticate(990)&#93; Skipping first 0 bytes. Length is 44, token_id set to 12 and token OTP always 32.<br />&#91;pam_yubico.c:pam_sm_authenticate(997)&#93; OTP: &#91;redacted&#93; ID: &#91;redacted&#93;<br />&#91;pam_yubico.c:pam_sm_authenticate(1028)&#93; ykclient return value (4): Request was missing a parameter (MISSING_PARAMETER)<br />&#91;pam_yubico.c:pam_sm_authenticate(1091)&#93; done. &#91;Authentication service cannot retrieve authentication info&#93;<br /></div><br /><br />Anyone have any idea why this happens?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3682">mdx54</a> — Sat Apr 25, 2015 3:05 pm</p><hr />
]]></content>
</entry>
</feed>