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

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2010-04-17T16:19:34+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=3&amp;t=507</id>
<entry>
<author><name><![CDATA[jonr]]></name></author>
<updated>2010-04-17T16:19:34+01:00</updated>
<published>2010-04-17T16:19:34+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=507&amp;p=2165#p2165</id>
<link href="https://forum.yubico.com/viewtopic.php?t=507&amp;p=2165#p2165"/>
<title type="html"><![CDATA[Re: PAM module not working on Ubuntu 9.10 x64]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=507&amp;p=2165#p2165"><![CDATA[
This is the 5 minute solution I used:<br /><br /><!-- l --><a class="postlink-local" href="http://forum.yubico.com/viewtopic.php?f=11&amp;t=210">viewtopic.php?f=11&amp;t=210</a><!-- l --><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=314">jonr</a> — Sat Apr 17, 2010 4:19 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Kami]]></name></author>
<updated>2010-03-17T23:18:49+01:00</updated>
<published>2010-03-17T23:18:49+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=507&amp;p=2132#p2132</id>
<link href="https://forum.yubico.com/viewtopic.php?t=507&amp;p=2132#p2132"/>
<title type="html"><![CDATA[Re: PAM module not working on Ubuntu 9.10 x64]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=507&amp;p=2132#p2132"><![CDATA[
Since I couldn't get the C module to work, I wrote my own PAM module in Python using pam-python (<a href="http://ace-host.stuart.id.au/russell/files/pam_python/" class="postlink">http://ace-host.stuart.id.au/russell/files/pam_python/</a>).<br /><br />I know that using Python for a PAM module is not really the best and most efficient way, but it should serve me (and probably some other users who have problems with the original C extension) well.<br /><br />The code for the extension is located on: <a href="http://github.com/Kami/yubico-pam-module" class="postlink">http://github.com/Kami/yubico-pam-module</a><br /><br /><strong>Keep in mind that this is a first release which is not yet fully feature-complete and it could break (basic functionally should work fine though)</strong><br /><br />I do plan to finish it up so it will be totally compatible with the original C extension and create a new branch with some extra features which I (and maybe someone else will) find useful (offline authentication is one of them for sure).<br /><br />P.S. If you think this should go in a new thread, feel free to merge my post into a new thread <img src="https://forum.yubico.com/images/smilies/icon_e_smile.gif" alt=":)" title="Smile" /><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1115">Kami</a> — Wed Mar 17, 2010 11:18 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Kami]]></name></author>
<updated>2010-03-17T12:07:05+01:00</updated>
<published>2010-03-17T12:07:05+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=507&amp;p=2129#p2129</id>
<link href="https://forum.yubico.com/viewtopic.php?t=507&amp;p=2129#p2129"/>
<title type="html"><![CDATA[Re: PAM module not working on Ubuntu 9.10 x64]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=507&amp;p=2129#p2129"><![CDATA[
Sure, even tough I'm still pretty sure the problem is not related to the configuration (as you can see from the log file) <img src="https://forum.yubico.com/images/smilies/icon_e_smile.gif" alt=":)" title="Smile" /><br /><br />1. I'm using Ubuntu desktop 9.10 x64 (Linux kami-laptop 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:02:26 UTC 2010 x86_64 GNU/Linux)<br /><br />2. It doesn't matter, I have tried configuring it for the gnome-screensaver, sshd, login or even for all of them (common-auth).<br /><br />3. Here is the content of, for example, the gnome-screensaver PAM config file (but like I have previously said, I have tried all the combinations which make sense...):<br /><br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />@include common-auth<br />auth sufficient pam_yubico.so authfile=/etc/yubikeyid id=xxxx key=zzz debug<br />auth optional pam_gnome_keyring.so<br /></div><br /><br />It also does not matter if I change the order (put the pam_yubico.so line above the include) or disable the include of the common-auth file.<br /><br />I'll probably have more time during the weekend and I will be able to try some other PAM modules and maybe try to write my own PAM module in Python using python-pam (yes, I know that that is not very efficient) and I will see if this one works (as I have feeling that the problem is related to the yubico PAM module).<br /><br />Thanks.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1115">Kami</a> — Wed Mar 17, 2010 12:07 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[samir]]></name></author>
<updated>2010-03-17T09:46:08+01:00</updated>
<published>2010-03-17T09:46:08+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=507&amp;p=2127#p2127</id>
<link href="https://forum.yubico.com/viewtopic.php?t=507&amp;p=2127#p2127"/>
<title type="html"><![CDATA[Re: PAM module not working on Ubuntu 9.10 x64]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=507&amp;p=2127#p2127"><![CDATA[
We would appreciate if you can provide us the following information:<br /><br /><ul>1) Operating system: Are you using Ubuntu Server 9.10 or Ubuntu Desktop 9.10? <br />2) Which application are you configuring for YubiKey based two factor authentication?<br />3) Corresponding PAM file (located in /etc/pam.d/ directory) for your application <br /></ul><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1076">samir</a> — Wed Mar 17, 2010 9:46 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Kami]]></name></author>
<updated>2010-03-16T21:59:30+01:00</updated>
<published>2010-03-16T21:59:30+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=507&amp;p=2126#p2126</id>
<link href="https://forum.yubico.com/viewtopic.php?t=507&amp;p=2126#p2126"/>
<title type="html"><![CDATA[PAM module not working on Ubuntu 9.10 x64]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=507&amp;p=2126#p2126"><![CDATA[
Hello,<br /><br />I have just spent almost 3 hours trying go get the pam_yubico.so PAM module to work, but I had no luck.<br /><br />Basically, I enter my OTP and the log file looks like everything went ok, but I don't get logged in.<br /><br />I have tried both single and two-form factor form authentication, but I don't really think this it's a problem.<br /><br />I guess it's something to do with the yk_chkpwd binary or the pam module itself.<br /><br />My configuration:<br /><br />System: Ubuntu 9.10 x64<br />Yubikey: Yubikey 2.0 (yes I know it does not matter, but just for the sake of completeness <img src="https://forum.yubico.com/images/smilies/icon_razz.gif" alt=":P" title="Razz" />)<br /><br />The correct user account name and 12 char id is located in the ~/.yubico/authorized_yubikeys file (I have also tried the authfile method, but I don't really think this is the problem).<br /><br />The correct secret key is placed in the pam config file.<br /><br />Here is the output from the logfile:<br /><br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />[pam_yubico.c:check_user_token(117)] Authorization line: kami:xxx<br />[pam_yubico.c:check_user_token(121)] Matched user: kami<br />[pam_yubico.c:check_user_token(125)] Authorization token: xxxx<br />[pam_yubico.c:check_user_token(128)] Match user/token as kami/xxxx<br />[pam_yubico.c:pam_sm_authenticate(594)] done. [Success]<br />[pam_yubico.c:parse_cfg(381)] called.<br />[pam_yubico.c:parse_cfg(382)] flags 8 argc 4<br />[pam_yubico.c:parse_cfg(384)] argv[0]=authfile=/etc/yubikeyid<br />[pam_yubico.c:parse_cfg(384)] argv[1]=id=3914<br />[pam_yubico.c:parse_cfg(384)] argv[2]=key=XXX<br />[pam_yubico.c:parse_cfg(384)] argv[3]=debug<br />[pam_yubico.c:parse_cfg(385)] id=3914<br />[pam_yubico.c:parse_cfg(386)] key=XXX<br />[pam_yubico.c:parse_cfg(387)] debug=1<br />[pam_yubico.c:parse_cfg(388)] alwaysok=0<br />[pam_yubico.c:parse_cfg(389)] try_first_pass=0<br />[pam_yubico.c:parse_cfg(390)] use_first_pass=0<br />[pam_yubico.c:parse_cfg(391)] authfile=/etc/yubikeyid<br />[pam_yubico.c:parse_cfg(392)] ldap_uri=(null)<br />[pam_yubico.c:parse_cfg(393)] ldapdn=(null)<br />[pam_yubico.c:parse_cfg(394)] user_attr=(null)<br />[pam_yubico.c:parse_cfg(395)] yubi_attr=(null)<br />[pam_yubico.c:pam_sm_setcred(615)] retval: 0<br />[pam_yubico.c:pam_sm_setcred(635)] done. [Success]<br /></div><br /><br />As you can see, everything looks fine.<br /><br />EDIT: I have just check the log file and it's like I have predicted - it's segfault-ing:<br /><br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />Mar 16 20:50:25 kami-laptop kernel: [22998.637336] gnome-screensav[24361]: segfault at 150 ip 00007f422d22fbe1 sp 00007f421f8f7e50 error 6 in libpam.so.0.82.1[7f422d22d000+c000]<br /></div><br /><br />Any help would be more then appreciated.<br /><br />Thanks<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1115">Kami</a> — Tue Mar 16, 2010 9:59 pm</p><hr />
]]></content>
</entry>
</feed>