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

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2009-08-11T10:47:38+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=8&amp;t=240</id>
<entry>
<author><name><![CDATA[zubrick]]></name></author>
<updated>2009-08-11T10:47:38+01:00</updated>
<published>2009-08-11T10:47:38+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=240&amp;p=1658#p1658</id>
<link href="https://forum.yubico.com/viewtopic.php?t=240&amp;p=1658#p1658"/>
<title type="html"><![CDATA[Re: pam_yubico_ldap]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=240&amp;p=1658#p1658"><![CDATA[
Was very busy.<br /><br />I just commited r186 in the yubico-pam SVN with some of the code of tpohl plus some other corrections. <br />Now you have to enter a ldap_uri parameter like <!-- m --><a class="postlink" href="ldap://localhost">ldap://localhost</a><!-- m --> instead of a hostname in ldapserver parameter.<br />ldapserver is not used any more.<br /><br />Can someone test it on other systems? I only have 32bit Debian servers available.<br /><br />regards<br /><br />Zubrick<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=329">zubrick</a> — Tue Aug 11, 2009 10:47 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[fergus]]></name></author>
<updated>2009-03-22T15:06:37+01:00</updated>
<published>2009-03-22T15:06:37+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=240&amp;p=1313#p1313</id>
<link href="https://forum.yubico.com/viewtopic.php?t=240&amp;p=1313#p1313"/>
<title type="html"><![CDATA[Re: pam_yubico_ldap]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=240&amp;p=1313#p1313"><![CDATA[
tpohl,<br /><br />I have been working on a new yubico-pam patch and would like some help testing with an LDAP setup.  I just incorporated your changes, can you please test it out and let me know if it works for you?  The configuration has changed a bit, you can read more in this thread, <a href="http://forum.yubico.com/viewtopic.php?f=3&amp;t=295" class="postlink">http://forum.yubico.com/viewtopic.php?f=3&amp;t=295</a>.<br /><br />I am also thinking we should change the setting from ldap_server to ldap_url, thoughts?<br /><br />Patch is here<br /><a href="http://yubico-squirrelmail-plugin.googlecode.com/files/yubico-pam-1.11-updates5.patch" class="postlink">http://yubico-squirrelmail-plugin.googlecode.com/files/yubico-pam-1.11-updates5.patch</a><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=413">fergus</a> — Sun Mar 22, 2009 3:06 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[tpohl]]></name></author>
<updated>2009-03-20T19:56:30+01:00</updated>
<published>2009-03-20T19:56:30+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=240&amp;p=1308#p1308</id>
<link href="https://forum.yubico.com/viewtopic.php?t=240&amp;p=1308#p1308"/>
<title type="html"><![CDATA[Re: pam_yubico_ldap]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=240&amp;p=1308#p1308"><![CDATA[
I just got the pam_yubico module to work with LDAP under 64bit CentOS.  I had to make some coding changes (against the 1.11 module) to use the non-deprecated ldap methods.  Also, the value of the ldapserver needs to be an LDAP uri (e.g. ldap://localhost/) instead of a hostname. Below is my version of the validate_user_token_ldap method:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">static int<br />validate_user_token_ldap (const char *ldapserver,<br />                          const char *ldapdn, const char *user_attr,<br />                          const char *yubi_attr, const char *user,<br />                          const char *token_id)<br />{<br /><br />  int retval = 0;<br />#ifdef HAVE_LIBLDAP<br />  LDAP *ld;<br />  LDAPMessage *result, *e;<br />  BerElement *ber;<br />  char *a;<br />  struct berval **vals;<br />  int i, rc;<br />  /* FIXME: dont' use hard coded buffers here. */<br />  char find&#91;256&#93; = &quot;&quot;;<br />  char sr&#91;128&#93; = &quot;(&quot;;<br />  char sep&#91;2&#93; = &quot;,&quot;;<br />  char eq&#91;2&#93; = &quot;=&quot;;<br />  char sren&#91;4&#93; = &quot;=*)&quot;;<br /><br /><br /><br />  strcat (find, user_attr);<br />  strcat (find, eq);<br />  strcat (find, user);<br />  strcat (find, sep);<br />  strcat (find, ldapdn);<br /><br />  strcat (sr, yubi_attr);<br />  strcat (sr, sren);<br /><br />  <br />  /* Get a handle to an LDAP connection. */<br />  if (ldap_initialize(&amp;ld,ldapserver) != NULL)<br />    {<br />      D ((&quot;ldap_init&quot;));<br />      return (0);<br />    }<br /><br />  /* Bind anonymously to the LDAP server. */<br />  rc = ldap_simple_bind_s (ld, NULL, NULL);<br /><br />  if (rc != LDAP_SUCCESS)<br />    {<br />      D ((&quot;ldap_simple_bind_s: %s&quot;, ldap_err2string (rc)));<br />      return (0);<br />    }<br />  <br />  /* Search for the entry. */<br />  D ((&quot;ldap-dn: %s&quot;, find));<br />  D ((&quot;ldap-filter: %s&quot;, sr));<br /><br />  if ((rc = ldap_search_ext_s (ld, find, LDAP_SCOPE_BASE,<br />                               sr, NULL, 0, NULL, NULL, LDAP_NO_LIMIT,<br />                               LDAP_NO_LIMIT, &amp;result)) != LDAP_SUCCESS)<br />    {<br />      D ((&quot;ldap_search_ext_s: %s&quot;, ldap_err2string (rc)));<br /><br />      return (0);<br />    }<br />  e = ldap_first_entry (ld, result);<br />  if (e != NULL)<br />    {<br /><br />      /* Iterate through each attribute in the entry. */<br />      for (a = ldap_first_attribute (ld, e, &amp;ber);<br />           a != NULL; a = ldap_next_attribute (ld, e, ber))<br />        {<br />          if ((vals = ldap_get_values_len (ld, e, a)) != NULL)<br />            {<br />              for (i = 0; vals&#91;i&#93; != NULL; i++)<br />                {<br />                  if (!strncmp (token_id, vals&#91;i&#93;-&gt;bv_val, strlen (token_id)))<br />                    {<br />                      D ((&quot;Token Found :: %s&quot;, vals&#91;i&#93;-&gt;bv_val));<br />                      retval = 1;<br />                    }<br />                }<br />              ldap_value_free (vals);<br />            }<br />          ldap_memfree (a);<br />        }<br />      if (ber != NULL)<br />        {<br />          ber_free (ber, 0);<br />        }<br /><br />    }<br /><br />  ldap_msgfree (result);<br />  ldap_unbind (ld);<br />#else<br />  D ((&quot;Trying to use LDAP, but this function is not compiled in pam_yubico!!&quot;));<br />  D ((&quot;Install libldap-dev and then recompile pam_yubico.&quot;));<br />#endif<br />  return retval;<br />}<br /></div><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=539">tpohl</a> — Fri Mar 20, 2009 7:56 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[cmoates]]></name></author>
<updated>2009-02-11T20:47:18+01:00</updated>
<published>2009-02-11T20:47:18+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=240&amp;p=1082#p1082</id>
<link href="https://forum.yubico.com/viewtopic.php?t=240&amp;p=1082#p1082"/>
<title type="html"><![CDATA[Re: pam_yubico_ldap]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=240&amp;p=1082#p1082"><![CDATA[
This is great news! I'll be testing this week and posting any problems I find.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=406">cmoates</a> — Wed Feb 11, 2009 8:47 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[zubrick]]></name></author>
<updated>2009-02-11T18:46:53+01:00</updated>
<published>2009-02-11T18:46:53+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=240&amp;p=1079#p1079</id>
<link href="https://forum.yubico.com/viewtopic.php?t=240&amp;p=1079#p1079"/>
<title type="html"><![CDATA[Re: pam_yubico_ldap]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=240&amp;p=1079#p1079"><![CDATA[
The ldap part as been merged back in pam_yubico.<br /><br />You can download the 1.11 release on the google code page or update through the google code svn.<br />Trac project for pam_yubico_ldap will be closed soon. The development of the ldap part will continue directly in the pam_yubico project.<br /><br />Tell me if you have any problem with the ldap part.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=329">zubrick</a> — Wed Feb 11, 2009 6:46 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[cmoates]]></name></author>
<updated>2009-02-10T15:34:49+01:00</updated>
<published>2009-02-10T15:34:49+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=240&amp;p=1072#p1072</id>
<link href="https://forum.yubico.com/viewtopic.php?t=240&amp;p=1072#p1072"/>
<title type="html"><![CDATA[Re: pam_yubico_ldap]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=240&amp;p=1072#p1072"><![CDATA[
Thanks for this. I really hope that we see it merge with the main pam module. I'll try to get some time this week to test against my 64 bit problems (and patches, if necessary) with the original pam code.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=406">cmoates</a> — Tue Feb 10, 2009 3:34 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[zubrick]]></name></author>
<updated>2009-02-09T12:51:26+01:00</updated>
<published>2009-02-09T12:51:26+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=240&amp;p=1068#p1068</id>
<link href="https://forum.yubico.com/viewtopic.php?t=240&amp;p=1068#p1068"/>
<title type="html"><![CDATA[Re: pam_yubico_ldap]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=240&amp;p=1068#p1068"><![CDATA[
Hi Lucien,<br /><br />I released a version 1.1 with a correction in the ldap search (in fact, I posted the wrong tar.gz on the trac project last time). This version can only do ldap search.<br /><br />I'm working with simon on the merging of the two projects, so you can also test de pam_yubico-dev.tar.gz available in the downloads page of my trac project. This version has both ldap and file capabilities.<br /><br />Regards<br /><br />Zubrick<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=329">zubrick</a> — Mon Feb 09, 2009 12:51 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[lucienboland]]></name></author>
<updated>2009-02-08T14:38:12+01:00</updated>
<published>2009-02-08T14:38:12+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=240&amp;p=1065#p1065</id>
<link href="https://forum.yubico.com/viewtopic.php?t=240&amp;p=1065#p1065"/>
<title type="html"><![CDATA[Re: pam_yubico_ldap]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=240&amp;p=1065#p1065"><![CDATA[
Hi Zubrick,<br /><br />I am a big fan of this LDAP approach for user-key management and will be testing your pam_yubico module variation in the near future.<br /><br />More comments after I try it out and I will be happy to see it merged into the original pam module code.<br /><br />Cheers<br />Lucien<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=419">lucienboland</a> — Sun Feb 08, 2009 2:38 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[zubrick]]></name></author>
<updated>2009-02-11T18:51:59+01:00</updated>
<published>2009-01-23T17:37:35+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=240&amp;p=965#p965</id>
<link href="https://forum.yubico.com/viewtopic.php?t=240&amp;p=965#p965"/>
<title type="html"><![CDATA[pam_yubico_ldap]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=240&amp;p=965#p965"><![CDATA[
Please use pam_yubico to have ldap support (v1.11 or later). pam_yubico_ldap is discontinued.<br />-----<br />Hello,<br /><br />For those of you who do not have the patience to manage the yubikeys user list on all their host, an ldap version of pam_yubico is now available on <!-- m --><a class="postlink" href="https://trac.number6.ch/pam_yubico_ldap">https://trac.number6.ch/pam_yubico_ldap</a><!-- m -->.<br /><br />It works exactly as pam_yubico, but checks the user-key relation on the ldap server instead of the text file.<br /><br />Feel free to post tickets or replay to this post if you have any comment or have feature requests regarding ldap stuff in the pam module.<br /><br />The ldap code will probably be merged in the original pam_yubico project in a near future.<br /><br />Zubrick<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=329">zubrick</a> — Fri Jan 23, 2009 5:37 pm</p><hr />
]]></content>
</entry>
</feed>