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

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2014-06-17T15:49:54+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=5&amp;t=744</id>
<entry>
<author><name><![CDATA[lem]]></name></author>
<updated>2014-06-17T15:49:54+01:00</updated>
<published>2014-06-17T15:49:54+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=744&amp;p=5335#p5335</id>
<link href="https://forum.yubico.com/viewtopic.php?t=744&amp;p=5335#p5335"/>
<title type="html"><![CDATA[Re: LDAP two-factor authentication]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=744&amp;p=5335#p5335"><![CDATA[
I understand that this is an old thread but if anyone could provide me with a few pointers on getting this running, I would be very grateful.<br /><br />I'm running OpenLDAP on Ubuntu.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2924">lem</a> — Tue Jun 17, 2014 3:49 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[bjencks]]></name></author>
<updated>2012-04-03T18:48:06+01:00</updated>
<published>2012-04-03T18:48:06+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=744&amp;p=2983#p2983</id>
<link href="https://forum.yubico.com/viewtopic.php?t=744&amp;p=2983#p2983"/>
<title type="html"><![CDATA[Re: LDAP two-factor authentication]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=744&amp;p=2983#p2983"><![CDATA[
Here it is: <!-- m --><a class="postlink" href="https://github.com/meddius/yubisaslauthd">https://github.com/meddius/yubisaslauthd</a><!-- m --><br /><br />It's pretty short and simple code; I recommend reading it to make sure it does what you expect.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1932">bjencks</a> — Tue Apr 03, 2012 6:48 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[freedenizen]]></name></author>
<updated>2012-03-30T20:58:15+01:00</updated>
<published>2012-03-30T20:58:15+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=744&amp;p=2982#p2982</id>
<link href="https://forum.yubico.com/viewtopic.php?t=744&amp;p=2982#p2982"/>
<title type="html"><![CDATA[Re: LDAP two-factor authentication]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=744&amp;p=2982#p2982"><![CDATA[
<div class="quotetitle">bjencks wrote:</div><div class="quotecontent"><br />I ended up solving the problem by writing my own replacement for saslauthd that does exactly what I need:<br /><ol style="list-style-type: decimal"><li>OTP+pass bind to LDAP server</li><li>call to custom saslauthd</li><li>saslauthd splits OTP and password</li><li>validates OTP directly</li><li>queries LDAP (without binding as the user) for yubikey ID and hashed password</li><li>validates yubikey and password</li></ol><br />I'm hoping to publish it as open-source, but I need to get an OK from my company first. I'll post a link here if/when it's available.<br /></div><br /><br />Assuming you can't get permission, any hints/tips on modifying saslauthd, looking to do a similar thing here.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2004">freedenizen</a> — Fri Mar 30, 2012 8:58 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[bjencks]]></name></author>
<updated>2012-03-06T20:15:32+01:00</updated>
<published>2012-03-06T20:15:32+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=744&amp;p=2955#p2955</id>
<link href="https://forum.yubico.com/viewtopic.php?t=744&amp;p=2955#p2955"/>
<title type="html"><![CDATA[Re: LDAP two-factor authentication]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=744&amp;p=2955#p2955"><![CDATA[
Not quite; that would generate a loop: <br /><ol style="list-style-type: decimal"><li>OTP+pass bind to LDAP server</li><li>call to saslauthd</li><li>OTP+pass handed to pam_yubico</li><li>pass only handed to pam_ldap</li><li>pass only bind to LDAP server</li><li>call to saslauthd</li><li>pass only handed to pam_yubico</li><li>failure</li></ol><br />I ended up solving the problem by writing my own replacement for saslauthd that does exactly what I need:<br /><ol style="list-style-type: decimal"><li>OTP+pass bind to LDAP server</li><li>call to custom saslauthd</li><li>saslauthd splits OTP and password</li><li>validates OTP directly</li><li>queries LDAP (without binding as the user) for yubikey ID and hashed password</li><li>validates yubikey and password</li></ol><br />I'm hoping to publish it as open-source, but I need to get an OK from my company first. I'll post a link here if/when it's available.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1932">bjencks</a> — Tue Mar 06, 2012 8:15 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Anonymous]]></name></author>
<updated>2012-03-06T11:25:44+01:00</updated>
<published>2012-03-06T11:25:44+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=744&amp;p=2954#p2954</id>
<link href="https://forum.yubico.com/viewtopic.php?t=744&amp;p=2954#p2954"/>
<title type="html"><![CDATA[Re: LDAP two-factor authentication]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=744&amp;p=2954#p2954"><![CDATA[
I might misunderstand what you mean, but wouldn't this work?<br /><br />1) use pam_yubico to validate OTP, and look in LDAP for an attribute (available using anonymous bind) containing the public_id to username mapping<br />2) if step 1 was successful, the pam_yubico module would have stripped the OTP from the authtoken and pam_ldap can be used to do an authenticated bind to the LDAP server to verify the password<br /><br />/Fredrik<p>Statistics: Posted by Guest — Tue Mar 06, 2012 11:25 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[bjencks]]></name></author>
<updated>2012-01-11T23:54:27+01:00</updated>
<published>2012-01-11T23:54:27+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=744&amp;p=2898#p2898</id>
<link href="https://forum.yubico.com/viewtopic.php?t=744&amp;p=2898#p2898"/>
<title type="html"><![CDATA[LDAP two-factor authentication]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=744&amp;p=2898#p2898"><![CDATA[
My goal is to have an LDAP server that I can bind to using a two-factor password (regular and OTP concatenated), and to have the password and yubikey ID stored in that LDAP server. Also, some users should have regular passwords only.<br /><br />So far I've managed single-factor authentication like so:<br /><ul><li> Simple bind to OpenLDAP</li><li> OpenLDAP looks in the userPassword attribute. If it's a regular password ({CRYPT} or {SSHA}), authentication stops here. For Yubikey, it contains &quot;{SASL}username&quot;.</li><li> username and password are passed to saslauthd, which invokes PAM</li><li> PAM calls pam_yubico, which checks the OTP against the validation server</li><li> pam_yubico connects back to the LDAP server, retrieves the yubikeyID attribute for the user, and checks that it matches the validated OTP.</li></ul><br />The only way I can think of to real two-factor auth is to set up a proxy LDAP server in front of the main one, where the main one contains a real password in userPassword, and the proxy replaces userPassword with {SASL}username if there's a yubikeyId attribute. PAM would then call pam_ldap to bind to the backend server using the real password, after pam_yubico has stripped the OTP off the end of the password string.<br /><br />This seems like it's getting way too complicated, plus it would be a headache to keep the proxy in sync with the backend. Am I missing some easier way to do this? I'd think this would be a pretty common use case, but I can't find any documentation on this setup.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1932">bjencks</a> — Wed Jan 11, 2012 11:54 pm</p><hr />
]]></content>
</entry>
</feed>