<?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=2505" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2016-12-15T23:12:38+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=5&amp;t=2505</id>
<entry>
<author><name><![CDATA[plum]]></name></author>
<updated>2016-12-15T23:12:38+01:00</updated>
<published>2016-12-15T23:12:38+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2505&amp;p=9226#p9226</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2505&amp;p=9226#p9226"/>
<title type="html"><![CDATA[IMAP auth through PAM problem]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2505&amp;p=9226#p9226"><![CDATA[
I've successfully deployed yubikey authentication for SSH (and sudo tested so far) on Debian jessie. The PAM config line is as follows:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">auth    required        pam_yubico.so mode=client try_first_pass id=REDACTED debug debug_file=/var/log/yk.log key=REDACTED<br /></div><br /><br />I tried to login to the IMAP the same way as to SSH (password + yubikey OTP) as it uses the same auth config but it fails:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">Dec 15 22:57:12 vps172042 dovecot: auth-worker: Error: &#91;../pam_yubico.c:pam_sm_authenticate(830)&#93; get user returned: REDACTED<br />Dec 15 22:57:12 vps172042 dovecot: auth-worker: Error: &#91;../pam_yubico.c:pam_sm_authenticate(851)&#93; get password returned: (null)<br />Dec 15 22:57:12 vps172042 dovecot: auth-worker: Error: &#91;../pam_yubico.c:pam_sm_authenticate(972)&#93; conv returned 53 bytes<br />Dec 15 22:57:12 vps172042 dovecot: auth-worker: Error: &#91;../pam_yubico.c:pam_sm_authenticate(990)&#93; Skipping first 9 bytes. Length is 53, token_id set to 12 and token OTP always 32.<br />Dec 15 22:57:12 vps172042 dovecot: auth-worker: Error: &#91;../pam_yubico.c:pam_sm_authenticate(997)&#93; OTP: REDACTED ID: REDACTED<br />Dec 15 22:57:12 vps172042 dovecot: auth-worker: Error: &#91;../pam_yubico.c:pam_sm_authenticate(1012)&#93; Extracted a probable system password entered before the OTP - setting item PAM_AUTHTOK<br />Dec 15 22:57:12 vps172042 dovecot: auth-worker: Error: &#91;../pam_yubico.c:pam_sm_authenticate(1028)&#93; ykclient return value (109): Error performing curl<br />Dec 15 22:57:12 vps172042 dovecot: auth-worker: Error: &#91;../pam_yubico.c:pam_sm_authenticate(1091)&#93; done. &#91;Authentication service cannot retrieve authentication info&#93;<br /></div><br /><br />I can't see why the same PAM sometimes works (SSH, sudo) and sometimes fails with curl error. Any ideas?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4581">plum</a> — Thu Dec 15, 2016 11:12 pm</p><hr />
]]></content>
</entry>
</feed>