<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux Mail Server Setup and Howto Guide &#187; Kerberos</title>
	<atom:link href="http://www.linuxmail.info/category/kerberos/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxmail.info</link>
	<description>Rapidly deploy Linux based mail solutions today</description>
	<lastBuildDate>Sat, 13 Feb 2010 23:39:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Active Directory Single Sign On</title>
		<link>http://www.linuxmail.info/active-directory-single-sign-on/</link>
		<comments>http://www.linuxmail.info/active-directory-single-sign-on/#comments</comments>
		<pubDate>Sat, 29 Nov 2008 08:48:37 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[CentOS 5]]></category>
		<category><![CDATA[Kerberos]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 5]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=160</guid>
		<description><![CDATA[This article describes how to achieve single sign on with Active Directory using LDAP for the user database and Kerberos for authentication.]]></description>
			<content:encoded><![CDATA[<p>This article describes how to achieve single sign on with Active Directory using <strong>Identity Management for Unix</strong> (available in Windows 2003 R2 and above) or <strong>Services for Unix 3.5</strong>.</p>
<span id="more-160"></span>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="5340126843";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<p>Before starting, you need to <a href="/identity-management-unix/">setup Identity Management for UNIX</a>. If you are using Windows Server prior to 2003 R2, you can use Services for Unix 3.5 which can be downloaded from <a href="http://www.microsoft.com/windows/sfu/">here</a>.</p>
<h2>Setup and Configure LDAP User Information</h2>
<p>It is recommended to an Active Directory enabled DNS server, this will ensure that the LDAP lookups and Kerberos authentication will work properly. Also, provide a user account dedicated for the LDAP authentication.</p>
<div class="clearfix steps"><a href="/images/centos-5/authentication.png"><img class="preview" alt="Authentication" src="/images/centos-5/t-authentication.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Click <em>System</em>, select <em>Administration</em> and click <em>Authentication</em>. This will launch the <strong>Authentication Configuration</strong> window.</div>
<div class="clearfix steps"><a href="/images/centos-5/auth-config-user-information.png"><img class="preview" alt="Authentication Configuration" src="/images/centos-5/t-auth-config-user-information.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Check <em>Enable LDAP Support</em> and click the <em>Configure LDAP</em> button.</div>
<div class="clearfix steps"><a href="/images/centos-5/auth-config-ldap-settings.png"><img class="preview" alt="LDAP Settings" src="/images/centos-5/t-auth-config-ldap-settings.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Fill in the <em>LDAP Search Base DN</em> and <em>LDAP Server</em> fields. Click <em>Ok</em> when you are done.</div>
<div class="clearfix steps"><a href="/images/centos-5/auth-config-options.png"><img class="preview" alt="LDAP Settings" src="/images/centos-5/t-auth-config-options.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Click the <em>Options</em> tab and check <em>Local authorization is sufficient for local users</em> and <em>Create home directories on the first login</em>. Click <em>Ok</em> when you are done.</div>
<div class="clearfix steps"><a href="/images/centos-5/edit-ldap-conf.png"><img class="preview" alt="Edit ldap.conf" src="/images/centos-5/t-edit-ldap-conf.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Edit the file <em>/etc/ldap.conf</em> and add the following lines below.
<pre class="steps">
binddn <em>user account</em>
bindpw <em>password for binddn</em>
nss_map_objectclass posixAccount User
nss_map_objectclass posixGroup Group
nss_map_attribute homeDirectory unixHomeDirectory
</pre>
</div>
<div class="clearfix steps">If you are using Services for Unix 3.5, remove the homeDirectory mapping above and add the lines below.
<pre class="steps">
nss_map_attribute uid msSFU30Name
nss_map_attribute uidNumber msSFU30UidNumber
nss_map_attribute gidNumber msSFU30GidNumber
nss_map_attribute homeDirectory msSFU30HomeDirectory
nss_map_attribute loginShell msSFU30LoginShell
</pre>
</div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />If you are not using an Active Directory enabled DNS server, you need to add the line <tt>referrals no</tt> to make this work.</div>
<div class="clearfix steps"><a href="/images/centos-5/terminal-getent-passwd.png"><img class="preview" alt="getent passwd" src="/images/centos-5/t-terminal-getent-passwd.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. Type in <tt>getent passwd</tt> in a terminal window. You should see your Active Directory user accounts.</div>
<div class="clearfix steps"><a href="/images/centos-5/terminal-getent-group.png"><img class="preview" alt="getent passwd" src="/images/centos-5/t-terminal-getent-group.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>6. Type in <tt>getent group</tt> in a terminal window. You should see your Active Directory groups.</div>
<h2>Setup and Configure Kerberos Authentication</h2>
<p>The Kerberos network authentication protocol requires the clocks of the involved machines to be synchronized or at least the difference is less than 5 minutes.</p>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="8337256735";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<div class="clearfix steps"><a href="/images/centos-5/auth-config-a.png"><img class="preview" alt="Authentication" src="/images/centos-5/t-auth-config-a.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Launch the <strong>Authentication Configuration</strong> window. Click the <em>Authentication</em> tab and check the <em>Enable Kerberos Support</em>. Next, click the <em>Configure Kerberos</em> button.</div>
<div class="clearfix steps"><a href="/images/centos-5/kerberos-settings.png"><img class="preview" alt="Kerberos Settings" src="/images/centos-5/t-kerberos-settings.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. In the <strong>Kerberos Settings</strong> window, fill in the <em>Realm</em>, clear out <em>KDC</em> and <em>Admin Servers</em> and check the <em>Use DNS to locate KDCs for realms</em>. Realm is usually your domain name capitalized, <em>capitalization is important.</em> KDC is your Active Directory server. Click <em>Ok</em> when you&#8217;re done.</div>
<p><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />To make sure that your KDC can be automatically located, type in the command <tt>host -t any _kerberos._tcp.acme.local</tt> in a terminal window. Replace <em>acme.local</em> with your own realm. If it replies &#8220;_kerberos._tcp.acme.local has SRV record &#8230;&#8221; then it works. This should work if you are using an Active Directory enabled DNS server. Otherwise, you need to manually fill in the KDC field above. You can specify more than one KDC by separating each server with a comma or space.</p>
<div class="clearfix steps"><a href="/images/centos-5/terminal-kinit.png"><img class="preview" alt="Terminal" src="/images/centos-5/t-terminal-kinit.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Test Kerberos by typing in <tt>kinit username</tt> in a terminal window. If you need help in making sense of the kinit error messages, check out <a href="/troubleshooting-active-directory-centos-5/#test-kerberos">Test the Kerberos Authentication</a>.</div>
<p>That&#8217;s it, you should now be able to login using Active Directory user accounts.</p>
<div class="clearfix steps"><img class="icon32x32 left" alt="Important" src="/images/emblem-important.png" />The version of <em>sudo</em> that comes with RHEL/CentOS 5 does not work with non local user accounts. While this is not yet fixed, use the <a href="http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/sudo">sudo rpm package for Fedora 8</a>.</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/active-directory-single-sign-on/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Active Directory and Cyrus SASL Authentication</title>
		<link>http://www.linuxmail.info/active-directory-cyrus-sasl-authentication/</link>
		<comments>http://www.linuxmail.info/active-directory-cyrus-sasl-authentication/#comments</comments>
		<pubDate>Sat, 12 Apr 2008 23:17:00 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[CentOS 5]]></category>
		<category><![CDATA[Kerberos]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 5]]></category>
		<category><![CDATA[SASL]]></category>

		<guid isPermaLink="false">http://www.linux-mail.info/active-directory-cyrus-sasl-authentication/</guid>
		<description><![CDATA[How to configure Cyrus SASL to authenticate to an Active Directory server using the Kerberos network authentication protocol and Linux PAM.]]></description>
			<content:encoded><![CDATA[<p>The Postfix Cyrus SASL support is used to authenticate remote SMTP clients to the Postfix SMTP server. Thanks to the Pluggable Authentication Modules (PAM) in Linux, we can configure Cyrus SASL to delegate the authentication process to an Active Directory server.</p>
<span id="more-63"></span>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="5340126843";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<h2>Setup and Configure Kerberos</h2>
<p>The steps below describes how to configure Kerberos using the GUI tool. You can apply the changes manually by editing the file <em>/etc/krb5.conf</em>.</p>
<p><img class="icon32x32 left" alt="Important" src="/images/emblem-important.png" />The Kerberos network authentication protocol requires the clocks of the involved machines to be synchronized or at least the difference is less than 5 minutes.</p>
<div class="clearfix steps"><a href="/images/centos-5/authentication.png"><img class="preview" alt="Authentication" src="/images/centos-5/t-authentication.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Click <em>System</em>, select <em>Administration</em> and click <em>Authentication</em>. This will launch the <strong>Authentication Configuration</strong> window.</div>
<div class="clearfix steps"><a href="/images/centos-5/auth-config-a.png"><img class="preview" alt="Authentication" src="/images/centos-5/t-auth-config-a.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Click the <em>Authentication</em> tab and check the <em>Enable Kerberos Support</em>. Next, click the <em>Configure Kerberos</em> button.</div>
<div class="clearfix steps"><a href="/images/centos-5/kerberos-settings.png"><img class="preview" alt="Kerberos Settings" src="/images/centos-5/t-kerberos-settings.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. In the <strong>Kerberos Settings</strong> window, fill in the <em>Realm</em>, clear out <em>KDC</em> and <em>Admin Servers</em> and check the <em>Use DNS to locate KDCs for realms</em>. Realm is usually your domain name capitalized, <em>capitalization is important.</em> KDC is your Active Directory server. Click <em>Ok</em> when you&#8217;re done.</div>
<p><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />To make sure that your KDC can be automatically located, type in the command <tt>host -t any _kerberos._tcp.acme.local</tt> in a terminal window. Replace <em>acme.local</em> with your own realm. If it replies &#8220;_kerberos._tcp.acme.local has SRV record &#8230;&#8221; then it works, otherwise you&#8217;ll have to fill in the KDC field above. This is how the Windows workstation is able to find the domain controller during domain logon.</p>
<div class="clearfix steps"><a href="/images/centos-5/auth-config-b.png"><img class="preview" alt="Authentication" src="/images/centos-5/t-auth-config-b.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Uncheck the <em>Enable Kerberos Support</em> and click <em>Ok</em>. We don&#8217;t actually want to use Kerberos authentication in Linux, we just want the tool to setup Kerberos for us.</div>
<div class="clearfix steps"><a href="/images/centos-5/terminal-kinit.png"><img class="preview" alt="Terminal" src="/images/centos-5/t-terminal-kinit.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. Test Kerberos by typing in <tt>kinit username</tt> in a terminal window. If you need help in making sense of the kinit error messages, check out <a href="/troubleshooting-active-directory-centos-5/#test-kerberos">Test the Kerberos Authentication</a>.</div>
<h2>Configuring Cyrus SASL</h2>
<div class="clearfix steps"><a href="/images/centos-5/edit-pam-smtp-postfix.png"><img class="preview" alt="Edit pam dovecot" src="/images/centos-5/t-edit-pam-smtp-postfix.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Edit the file <em>/etc/pam.d/smtp.postfix</em> and replace the content with the lines below.
</div>
<pre class="steps">
auth        sufficient   pam_krb5.so no_user_check validate
account     sufficient   pam_permit.so
</pre>
<div class="clearfix steps"><a href="/images/centos-5/service-config-saslauthd.png"><img class="preview" alt="Service Configuration" src="/images/centos-5/t-service-config-saslauthd.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Restart the saslauthd service.</div>
<div class="clearfix steps"><a href="/images/centos-5/terminal-testsaslauthd.png"><img class="preview" alt="Terminal" src="/images/centos-5/t-terminal-testsaslauthd.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Test saslauthd by typing in <tt>testsaslauthd -u <em>username</em> -p <em>password</em> -r <em>domain</em> -s smtp</tt> in a terminal window.</div>
<p>Cyrus SASL is now configured to authenticate against an Active Directory server. Proceed to <a href="/smtp-authentication-postfix-centos-5/">Postfix SMTP Authentication</a> for instructions on configuring Postfix. Or restart Postfix or MailScanner and jump directly to the <a href="/smtp-authentication-postfix-centos-5/#test-postfix">Test Postfix using Telnet</a> part if you have already done so.</p>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/active-directory-cyrus-sasl-authentication/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Active Directory and Dovecot PAM Authentication</title>
		<link>http://www.linuxmail.info/active-directory-dovecot-pam-authentication/</link>
		<comments>http://www.linuxmail.info/active-directory-dovecot-pam-authentication/#comments</comments>
		<pubDate>Sat, 12 Apr 2008 05:34:17 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[CentOS 5]]></category>
		<category><![CDATA[Dovecot]]></category>
		<category><![CDATA[Kerberos]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 5]]></category>

		<guid isPermaLink="false">http://www.linux-mail.info/active-directory-dovecot-pam-authentication/</guid>
		<description><![CDATA[How to enable Dovecot to authenticate to an Active Directory server using the Kerberos network authentication protocol and Linux PAM.]]></description>
			<content:encoded><![CDATA[<p>LDAP authentication is available in Dovecot starting version 1.0. Since Active Directory is an implementation of LDAP directory services, we can use the LDAP authentication to <a href="/postfix-dovecot-ldap-centos-5/#dovecot-ldap">authenticate Dovecot against an Active Directory server</a>. But for users of Dovecot prior to 1.0 or those having problems with LDAP authentication, we can instead use the Kerberos authentication mechanism in Windows via the Linux PAM.</p>
<span id="more-62"></span>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="5340126843";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<h2>Setup and Configure Kerberos</h2>
<p>The steps below describes how to configure Kerberos using the GUI tool. You can apply the changes manually by editing the file <em>/etc/krb5.conf</em>.</p>
<p><img class="icon32x32 left" alt="Important" src="/images/emblem-important.png" />The Kerberos network authentication protocol requires the clocks of the involved machines to be synchronized or at least the difference is less than 5 minutes.</p>
<div class="clearfix steps"><a href="/images/centos-5/authentication.png"><img class="preview" alt="Authentication" src="/images/centos-5/t-authentication.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Click <em>System</em>, select <em>Administration</em> and click <em>Authentication</em>. This will launch the <strong>Authentication Configuration</strong> window.</div>
<div class="clearfix steps"><a href="/images/centos-5/auth-config-a.png"><img class="preview" alt="Authentication" src="/images/centos-5/t-auth-config-a.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Click the <em>Authentication</em> tab and check the <em>Enable Kerberos Support</em>. Next, click the <em>Configure Kerberos</em> button.</div>
<div class="clearfix steps"><a href="/images/centos-5/kerberos-settings.png"><img class="preview" alt="Kerberos Settings" src="/images/centos-5/t-kerberos-settings.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. In the <strong>Kerberos Settings</strong> window, fill in the <em>Realm</em>, clear out <em>KDC</em> and <em>Admin Servers</em> and check the <em>Use DNS to locate KDCs for realms</em>. Realm is usually your domain name capitalized, <em>capitalization is important.</em> KDC is your Active Directory server. Click <em>Ok</em> when you&#8217;re done.</div>
<p><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />To make sure that your KDC can be automatically located, type in the command <tt>host -t any _kerberos._tcp.acme.local</tt> in a terminal window. Replace <em>acme.local</em> with your own realm. If it replies &#8220;_kerberos._tcp.acme.local has SRV record &#8230;&#8221; then it works. This is how the Windows workstation is able to find the domain controller during domain logon. If it does not work, something is wrong with your DNS setting. You could either fix your DNS settings or manually fill in the KDC field above. You can specify more than one KDC by separating each server with a comma or space.</p>
<div class="clearfix steps"><a href="/images/centos-5/auth-config-b.png"><img class="preview" alt="Authentication" src="/images/centos-5/t-auth-config-b.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Uncheck the <em>Enable Kerberos Support</em> and click <em>Ok</em>. We don&#8217;t actually want to use Kerberos authentication in Linux, we just want the tool to setup Kerberos for us.</div>
<div class="clearfix steps"><a href="/images/centos-5/terminal-kinit.png"><img class="preview" alt="Terminal" src="/images/centos-5/t-terminal-kinit.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. Test Kerberos by typing in <tt>kinit username</tt> in a terminal window. If you need help in making sense of the kinit error messages, check out <a href="/troubleshooting-active-directory-centos-5/#test-kerberos">Test the Kerberos Authentication</a>.</div>
<h2>Configuring Dovecot PAM</h2>
<div class="clearfix steps"><a href="/images/centos-5/edit-pam-dovecot.png"><img class="preview" alt="Edit pam dovecot" src="/images/centos-5/t-edit-pam-dovecot.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Edit the file <em>/etc/pam.d/dovecot</em> and replace the content with the lines below.
</div>
<pre class="steps">
auth        sufficient   pam_krb5.so no_user_check validate
account     sufficient   pam_permit.so
</pre>
<div class="clearfix steps"><a href="/images/centos-5/edit-dovecot-conf-virtual.png"><img class="preview" alt="Edit dovecot.conf" src="/images/centos-5/t-edit-dovecot-conf-virtual.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Edit the file <em>/etc/dovecot.conf</em> and change the value of the following keys below</div>
<pre class="steps">
passdb pam {
}

userdb static {
  args = uid=501 gid=501 home=/home/vmail/%Lu
}
</pre>
<p><em>uid</em>, <em>gid</em> and <em>home</em> should contain the user id, group id and home directory respectively of the vmail user account.</p>
<div class="clearfix steps"><a href="/images/centos-5/service-config-3.png"><img class="preview" alt="Service Configuration" src="/images/centos-5/t-service-config-3.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Restart the dovecot service. <a href="/how-to-start-stop-services-centos-5/">Learn how to start and stop services here.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/terminal.png"><img class="preview" alt="Terminal" src="/images/centos-5/t-terminal.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. You should now be able to login using the user names found in your Active Directory server. See <a href="/install-setup-dovecot-centos-5/#test-dovecot">Test Dovecot using Telnet</a> and try using Active Directory user names instead of the system user names.</div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />If you encounter any problems, check the log file at <em>/var/log/maillog.</em></div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/active-directory-dovecot-pam-authentication/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Troubleshooting Active Directory and Winbind</title>
		<link>http://www.linuxmail.info/troubleshooting-active-directory-centos-5/</link>
		<comments>http://www.linuxmail.info/troubleshooting-active-directory-centos-5/#comments</comments>
		<pubDate>Wed, 25 Apr 2007 15:56:19 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Kerberos]]></category>
		<category><![CDATA[Samba]]></category>

		<guid isPermaLink="false">http://www.linux-mail.info/troubleshooting-active-directory-centos-5/</guid>
		<description><![CDATA[How to troubleshoot Active Directory integration in Red Hat Enterprise Linux 5 or CentOS 5]]></description>
			<content:encoded><![CDATA[<p>If you weren&#8217;t able to succeed in integrating Active Directory into Linux, don&#8217;t worry. This article will show you how to test the Kerberos authentication and join the Active Directory domain manually so you can identify the problem.</p>
<span id="more-43"></span>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="5340126843";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<p>Launch the terminal window and type in the highlighted items below.</p>
<h2 id="test-kerberos">Test the Kerberos authentication</h2>
<p>Kerberos is an authentication mechanism used by Active Directory to verify user or host identity. We will use <em>kinit</em>, an executable used to obtain Kerberos access granting ticket, to test the Kerberos authentication mechanism.</p>
<pre class="steps">[root@mail ~]# <strong>kinit bugsbunny</strong></pre>
<p>Change <em>bugsbunny</em> to any Active Directory user account.</p>
<p>If it replies</p>
<ul>
<li><em>Cannot resolve network address for KDC in requested realm while getting initial credentials</em><br /><p>DNS problem, check the DNS or use ip addresses in the Domain Controllers field of the Winbind Settings.</p></li>
<li><em>Cannot find KDC for requested realm while getting initial credentials</em><br /><p>Check the spelling of your Active Directory realm and check the spelling in Winbind Settings. Capitalization is important.</p></li>
<li><em>Client not found in Kerberos database while getting initial credentials</em><br /><p>Check the user name you used if it exists in Active Directory.</p></li>
<li><em>Cannot contact any KDC for requested realm while getting initial credentials</em><br /><p>Check if the domain controller you specified in Winbind Settings is indeed working is not firewalled.</p></li>
</ul>
<p><a href="/active-directory-integration-samba-centos-5/#winbind-settings">See Winbind Setting for RHEL/CentOS 5</a><br />
<a href="/active-directory-integration-samba-centos-4/#winbind-settings">See Winbind Setting for RHEL/CentOS 4</a></p>
<pre class="steps">Password for bugsbunny@ACME.LOCAL: <strong>type in the password here</strong>
</pre>
<p>If it replies</p>
<ul>
<li><em>Preauthentication failed while getting initial credentials</em><br /><p>It means the password is wrong.</p></li>
<li><em>Password has expired while getting initial credentials</em><br /><p>The password is no longer valid and needs to be changed.</p></li>
<li><em>Clock skew too great while getting initial credentials</em><br /><p>Synchronize your clocks using NTP. For a quick and temporary fix, use <strong>net time set</strong> to synchronize time with the domain controller.</p>
<p>To permanently fix the problem, both the Active Directory server and the Linux server should synchronize their time with an NTP server. See <a href="/synchronize-system-clock-centos-5/">how to synchronize system clock in Linux.</a> For Windows, use the command</p>
<pre class="steps">
net time /setsntp:"0.pool.ntp.org 1.pool.ntp.org"
</pre>
<p>Replace &#8220;0.pool.ntp.org &#8230;&#8221; with your preferred NTP server.</p></li>
<li><em>KDC reply did not match expectations while getting initial credentials</em><br /><p>Make sure the realm is correct and capitalized in <em>/etc/krb5.conf</em>. If the realm is <em>ACME.LOCAL</em>, this error will appear if <em>ACME</em>, <em>acme</em>, <em>acme.local</em> is used as the realm.</p></li>
</ul>
<h2>Join the Active Directory Domain</h2>
<pre class="steps">[root@mail ~]# <strong>net ads join -U administrator</strong></pre>
<p>Replace <strong>administrator</strong> with any user name having Domain Admin rights. Specify your password when asked. You should be able to join the Active Directory domain now. </p>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/troubleshooting-active-directory-centos-5/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
