<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://manu.agat.net/dotclear/index.php/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
  <title>mooby's blog - kerberos</title>
  <link>http://manu.agat.net/dotclear/index.php/</link>
  <description>Some IT infos</description>
  <language>fr</language>
  <pubDate>Mon, 01 Dec 2008 16:04:36 +0100</pubDate>
  <copyright></copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>apache vhost and kerberos authentification</title>
    <link>http://manu.agat.net/dotclear/index.php/post/2006/11/10/22-apache-vhost-and-kerberos-authentification</link>
    <guid isPermaLink="false">urn:md5:721623d211c7ee29d1bc7a754d35e8ad</guid>
    <pubDate>Fri, 10 Nov 2006 10:20:31 +0000</pubDate>
    <dc:creator>blindaue</dc:creator>
        <category>kerberos</category>
            
    <description>&lt;p&gt;Using kerberos (Active Directory or classical Unix kerberos) is easy to deply for transparent authentication of users, with apache: The mod_auth_kreb do most of the job. But using vhost, some problems arise....&lt;/p&gt;    &lt;p&gt;first, the module complain against &quot;&lt;code&gt;failed to verify krb5 credentials: Server not found in Kerberos database&lt;/code&gt;&quot;&lt;br /&gt;&lt;/p&gt;


&lt;p&gt;I've tried to use adsiedit on a DC, and add &lt;code&gt;HTTP/vhost.domain.com&lt;/code&gt; as another servicePrincipalName for the mapped user which already contain the SPN for the real host.&lt;br /&gt;
The next error which raise up is &quot;&lt;code&gt;gss_acquire_cred() failed: Miscellaneous failure (No principal in keytab matches desired name)&lt;/code&gt;&quot;&lt;br /&gt;
This is normal, your keytab hasn't been updated to contain the new SPN. But It seems that ktpass.exe cannot export two principals in a keytab, nor, using ktutil on linux to get two keytab in ony works, as the kvno is increased.
The question is: Does windows really use the servicePrincipalName or does it use userPrincipalName? The doc says that only one mapping can be done, so I think it uses the UPN...&lt;br /&gt;&lt;/p&gt;



&lt;p&gt;So there is no way to use vhost as easely. You have to use another dummy account, and map HTTP/dummyuser2 to the vhost, and store two keytab on apache...&lt;/p&gt;</description>
    
    
    
          <comments>http://manu.agat.net/dotclear/index.php/post/2006/11/10/22-apache-vhost-and-kerberos-authentification#comment-form</comments>
      <wfw:comment>http://manu.agat.net/dotclear/index.php/post/2006/11/10/22-apache-vhost-and-kerberos-authentification#comment-form</wfw:comment>
      <wfw:commentRss>http://manu.agat.net/dotclear/index.php/feed/rss2/comments/19</wfw:commentRss>
      </item>
    
  <item>
    <title>What jabber server for kerberos integration ?</title>
    <link>http://manu.agat.net/dotclear/index.php/post/2006/08/19/19-what-jabber-server-for-kerberos-integration</link>
    <guid isPermaLink="false">urn:md5:cf8efe621e9c70ad96739b1a6e64f842</guid>
    <pubDate>Sat, 19 Aug 2006 17:40:20 +0000</pubDate>
    <dc:creator>blindaue</dc:creator>
        <category>kerberos</category>
            
    <description>&lt;p&gt;It seems that the only server which support real kerberos authentication ...&lt;/p&gt;    &lt;p&gt;... is &lt;a href=&quot;http://www.jivesoftware.org/wildfire/&quot; hreflang=&quot;en&quot;&gt;wildfire&lt;/a&gt;. And it is GPL. Now, you wil need a kerberos-capable client, and &lt;a href=&quot;http://www.pandion.be/&quot; hreflang=&quot;fr&quot;&gt;pandion&lt;/a&gt; or &lt;a href=&quot;http://www.jivesoftware.org/spark/&quot; hreflang=&quot;en&quot;&gt;spark&lt;/a&gt; are the two interesting clients.
For a setup I found this &lt;a href=&quot;http://norman.rasmussen.co.za/dl/sasl-sspi/GSSAPIDocumentation.htm&quot; hreflang=&quot;en&quot;&gt;page&lt;/a&gt;, which I'll test this week probably&lt;/p&gt;</description>
    
    
    
          <comments>http://manu.agat.net/dotclear/index.php/post/2006/08/19/19-what-jabber-server-for-kerberos-integration#comment-form</comments>
      <wfw:comment>http://manu.agat.net/dotclear/index.php/post/2006/08/19/19-what-jabber-server-for-kerberos-integration#comment-form</wfw:comment>
      <wfw:commentRss>http://manu.agat.net/dotclear/index.php/feed/rss2/comments/16</wfw:commentRss>
      </item>
    
  <item>
    <title>kadmin and Active Directory, Microsoft Interoperability</title>
    <link>http://manu.agat.net/dotclear/index.php/post/2006/07/07/15-kadmin-and-active-directory-microsoft-interoperability</link>
    <guid isPermaLink="false">urn:md5:ea10af2e82187b3d34ce16a0b5738ff6</guid>
    <pubDate>Fri, 07 Jul 2006 16:13:11 +0000</pubDate>
    <dc:creator>blindaue</dc:creator>
        <category>kerberos</category>
            
    <description>&lt;p&gt;I was missing the kadmin equivalent MIT kerberos, under Active Directory...&lt;/p&gt;    &lt;p&gt;but I've found one!
&lt;a href=&quot;http://www.css-security.com/downloads.html&quot;&gt;Certified Security Solutions&lt;/a&gt; have a tool named css_adkadmin which does exactly what you want!&lt;/p&gt;


&lt;p&gt;One other information: Microsoft is making some documentation about interoperability with theirs systems, and with open source tools too.
Have a look at the &lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?FamilyId=144f7b82-65cf-4105-b60c-44515299797d&amp;amp;displaylang=en&quot;&gt;two first documentations&lt;/a&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://manu.agat.net/dotclear/index.php/post/2006/07/07/15-kadmin-and-active-directory-microsoft-interoperability#comment-form</comments>
      <wfw:comment>http://manu.agat.net/dotclear/index.php/post/2006/07/07/15-kadmin-and-active-directory-microsoft-interoperability#comment-form</wfw:comment>
      <wfw:commentRss>http://manu.agat.net/dotclear/index.php/feed/rss2/comments/12</wfw:commentRss>
      </item>
    
  <item>
    <title>what's next for nfs v4 and AD?</title>
    <link>http://manu.agat.net/dotclear/index.php/post/2006/06/17/11-what-s-next-for-nfs-v4-and-ad</link>
    <guid isPermaLink="false">urn:md5:b0e8742d4f7c1ee41ba3cc9f688e097b</guid>
    <pubDate>Sat, 17 Jun 2006 08:44:19 +0000</pubDate>
    <dc:creator>blindaue</dc:creator>
        <category>kerberos</category>
            
    <description>&lt;p&gt;In the effort to easily deploy nfs v4 with AD, here my following steps&lt;/p&gt;    &lt;h4&gt;Take a computer, alone just installed :)!!&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;install samba and kerberos&lt;br /&gt;  &lt;code&gt;urpmi samba-client samba-winbind krb5-workstation pam_krb5&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;configure
&lt;ol&gt;
&lt;li&gt;/etc/samba/smb.conf:&lt;br /&gt;  &lt;code&gt;workgroup = DPTINFO&lt;/code&gt; &lt;br /&gt; &lt;code&gt;realm  = DPTINFO.URS.LOCAL&lt;/code&gt;&lt;br /&gt; &lt;code&gt;security = ads&lt;/code&gt; &lt;br /&gt; &lt;code&gt;password server = *&lt;/code&gt;&lt;br /&gt; &lt;code&gt;use kerberos keytab = yes&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;/etc/krb5.conf:&lt;br /&gt;&lt;code&gt;[libdefaults&lt;/code&gt; &lt;br /&gt;&lt;code&gt; default_realm = DPTINFO.URS.LOCAL&lt;/code&gt; &lt;br /&gt;&lt;code&gt;[realms&lt;/code&gt; &lt;br /&gt;&lt;code&gt; DPTINFO.URS.LOCAL = {&lt;/code&gt; &lt;br /&gt;&lt;code&gt;  kdc = myad.u-strasbg.fr:88&lt;/code&gt; &lt;br /&gt;&lt;code&gt;  admin_server = myad.u-strasbg.fr:749&lt;/code&gt; &lt;br /&gt;&lt;code&gt;  default_domain = u-strasbg.fr&lt;/code&gt; &lt;br /&gt;&lt;code&gt; }&lt;/code&gt; &lt;br /&gt;&lt;code&gt;[domain_realm&lt;/code&gt; &lt;br /&gt;&lt;code&gt; .u-strasbg.fr = DPTINFO.URS.LOCAL&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/li&gt;
&lt;li&gt;Join the AD domain:
&lt;ol&gt;
&lt;li&gt;Do it: &lt;br /&gt;&lt;code&gt;$ su - &lt;/code&gt; &lt;br /&gt;&lt;code&gt;Password: ****** &lt;/code&gt; &lt;br /&gt; &lt;code&gt;# kinit Administrator&lt;/code&gt; &lt;br /&gt; &lt;code&gt;Password for Administrator@DPTINFO.URS.LOCAL: ****** &lt;/code&gt;&lt;br /&gt; &lt;code&gt;# net ads join&lt;/code&gt; &lt;br /&gt; &lt;code&gt;# &lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Verify&amp;nbsp;: &lt;br /&gt; &lt;code&gt;# net ads status&lt;/code&gt; &lt;br /&gt; &lt;code&gt; ... Lot of stuff...&lt;/code&gt; &lt;br /&gt; You should see several //servicePrincipalName//, with &lt;code&gt;HOST/FQDN&lt;/code&gt;, &lt;code&gt;HOST/hostname&lt;/code&gt;, &lt;code&gt;CIFS/FQDN&lt;/code&gt; and &lt;code&gt;CIFS/hostname&lt;/code&gt;. If your domain name (DNS) isn't your REALM (AD), you should see two FQDN, I see for my example: &lt;code&gt;HOST/ibis.u-strasbg.fr&lt;/code&gt; and &lt;code&gt;HOST/ibis.dptinfo.urs.local&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/li&gt;
&lt;li&gt;On a DC computer with installed supports tools, verify that your linux box is ready, in a cmd.exe box: &lt;br /&gt; &lt;code&gt;$ setspn -L ibis&lt;/code&gt;  &lt;br /&gt; &lt;code&gt;HOST/ibis.u-strasbg.fr&lt;/code&gt; &lt;br /&gt; &lt;code&gt;HOST/ibis&lt;/code&gt;&lt;br /&gt; &lt;code&gt;HOST/ibis.dptinfo.urs.local&lt;/code&gt;&lt;br /&gt; &lt;code&gt;CIFS/ibis.u-strasbg.fr&lt;/code&gt;&lt;br /&gt; &lt;code&gt;CIFS/ibis&lt;/code&gt;&lt;br /&gt; &lt;code&gt;CIFS/ibis.dptinfo.urs.local&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Add the SPN for nfs: &lt;br /&gt; &lt;code&gt;$ setspn -A nfs/ibis ibis&lt;/code&gt;&lt;br /&gt; &lt;code&gt;Registering ServicePrincipalNames for CN=ibis,CN=Computers,DC=DPTINFO,DC=URS,DC=LOCAL&lt;/code&gt;&lt;br /&gt; &lt;code&gt;        nfs/ibis.u-strasbg.fr&lt;/code&gt;&lt;br /&gt; &lt;code&gt;Updated object&lt;/code&gt; &lt;br /&gt; (add nfs/fqdn too)&lt;/li&gt;
&lt;li&gt;You can verify with &lt;code&gt;setspn -L ibis&lt;/code&gt; that the SPN has been added&lt;/li&gt;
&lt;li&gt;Try to you your new SPN on the linux box: &lt;br /&gt; &lt;code&gt;# kvno  nfs/ibis.u-strasbg.fr&lt;/code&gt; &lt;br /&gt; &lt;code&gt;nfs/ibis.u-strasbg.fr@DPTINFO.URS.LOCAL: kvno = 0&lt;/code&gt; &lt;br /&gt; and after that, verify that the ticket is valid: &lt;br /&gt; &lt;code&gt;# klist  |grep nfs&lt;/code&gt;&lt;br /&gt; &lt;code&gt;06/17/06 06:48:07  06/17/06 13:09:35  nfs/ibis.u-strasbg.fr@DPTINFO.URS.LOCAL&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here come the problem: it seems that we can't use this SPN for rpc.gssd.
What seems to be more confusing is that the keytab which can be generated on windows doesn't seem to be valid:&lt;/p&gt;


&lt;p&gt;&lt;code&gt;# kinit  -k &lt;/code&gt;&lt;br /&gt;
&lt;code&gt;kinit(v5): Client not found in Kerberos database while getting initial credentials&lt;/code&gt;&lt;/p&gt;


&lt;p&gt;&lt;code&gt;# klist -k -e&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;Keytab name: FILE:/etc/krb5.keytab&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;KVNO Principal&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;del&gt;&lt;/del&gt; &lt;del&gt;&lt;/del&gt;&lt;del&gt;&lt;/del&gt;&lt;del&gt;&lt;/del&gt;&lt;del&gt;&lt;/del&gt;&lt;del&gt;&lt;/del&gt;&lt;del&gt;&lt;/del&gt;&lt;del&gt;&lt;/del&gt;&lt;del&gt;&lt;/del&gt;&lt;del&gt;&lt;/del&gt;&lt;del&gt;&lt;/del&gt;&lt;del&gt;&lt;/del&gt;&lt;del&gt;&lt;/del&gt;&lt;del&gt;&lt;/del&gt;&lt;del&gt;&lt;/del&gt;&lt;del&gt;&lt;/del&gt;&lt;del&gt;&lt;/del&gt;&lt;del&gt;&lt;/del&gt;&lt;del&gt;&lt;/del&gt;--&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;   1 nfs/ibis.u-strasbg.fr@DPTINFO.URS.LOCAL (DES cbc mode with CRC-32) &lt;/code&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://manu.agat.net/dotclear/index.php/post/2006/06/17/11-what-s-next-for-nfs-v4-and-ad#comment-form</comments>
      <wfw:comment>http://manu.agat.net/dotclear/index.php/post/2006/06/17/11-what-s-next-for-nfs-v4-and-ad#comment-form</wfw:comment>
      <wfw:commentRss>http://manu.agat.net/dotclear/index.php/feed/rss2/comments/8</wfw:commentRss>
      </item>
    
  <item>
    <title>Authentification: logguer</title>
    <link>http://manu.agat.net/dotclear/index.php/post/2006/05/22/9-authentification-logguer</link>
    <guid isPermaLink="false">urn:md5:63824e9e7f79464f1081a8ac07c085e2</guid>
    <pubDate>Mon, 22 May 2006 09:13:33 +0000</pubDate>
    <dc:creator>blindaue</dc:creator>
        <category>kerberos</category>
            
    <description>&lt;p&gt;Plus facile à chercher qu'à trouver: l'equivalent du bonvieux /var/log/auth.log sous Windows 2K/2K3&lt;/p&gt;    &lt;p&gt;Comment logguer les evenements lié au login, reussi ou pas, avec les differents types d'erreur:&lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;http://manu.agat.net/dotclear/index.php/post/2006/05/22/MSDN KB 326985&quot;&gt;http://support.microsoft.com/kb/326985/en-us&lt;/a&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://manu.agat.net/dotclear/index.php/post/2006/05/22/9-authentification-logguer#comment-form</comments>
      <wfw:comment>http://manu.agat.net/dotclear/index.php/post/2006/05/22/9-authentification-logguer#comment-form</wfw:comment>
      <wfw:commentRss>http://manu.agat.net/dotclear/index.php/feed/rss2/comments/6</wfw:commentRss>
      </item>
    
</channel>
</rss>