<?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>Malaysia VMware Communities &#187; AD</title>
	<atom:link href="http://malaysiavm.com/blog/tag/ad/feed/" rel="self" type="application/rss+xml" />
	<link>http://malaysiavm.com/blog</link>
	<description></description>
	<lastBuildDate>Wed, 21 Jul 2010 06:59:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>VMware ESX 3.5 Authentication Login Using Active Directory</title>
		<link>http://malaysiavm.com/blog/vmware-esx-35-authentication-login-using-active-directory/</link>
		<comments>http://malaysiavm.com/blog/vmware-esx-35-authentication-login-using-active-directory/#comments</comments>
		<pubDate>Tue, 26 Aug 2008 03:53:00 +0000</pubDate>
		<dc:creator>jlchannel</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[AD]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://malaysiavm.com/blog/?p=157</guid>
		<description><![CDATA[If you look for VMware authentication login using Microsoft Active Directory, I&#8217;m sure you can easily found on any seach enginer but most of the documents slightly outdated which is based on VMware ESX 2.x. The following article try to give better understanding about latest VMware ESX 3.5 authentication login using AD. Use esxcfg-auth command [...]


Related posts:<ol><li><a href='http://malaysiavm.com/blog/vmware-data-recovery-mount-show-password-detail/' rel='bookmark' title='Permanent Link: VMware Data Recovery Mount Show Password Detail?'>VMware Data Recovery Mount Show Password Detail?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-7430566020196385";
/* MVM Index Link Code 468x15, created 1/3/10 */
google_ad_slot = "5937837755";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p><p>If you look for <a href="http://malaysiavm.com/blog/tag/vmware">VMware</a> authentication login using <a href="http://malaysiavm.com/blog/tag/microsoft">Microsoft</a> Active Directory, I&#8217;m sure you can easily found on any seach enginer but most of the documents slightly outdated which is based on <a href="http://malaysiavm.com/blog/tag/vmware">VMware</a> ESX 2.x.</p>
<p>The following article try to give better understanding about latest <a href="http://malaysiavm.com/blog/tag/vmware">VMware</a> ESX 3.5 authentication login using AD.</p>
<p>Use <strong>esxcfg-auth</strong> command &#8211; <a href="http://malaysiavm.com/blog/tag/vmware">VMware</a> ESX Server Network Management Utility</p>
<p>Login to VMware <a href="http://malaysiavm.com/blog/tag/esx">ESX</a> host using SSH as root</p>
<p>Ping <em>ad.malaysiavm.com</em> to make sure you can reach AD server.</p>
<p>The <strong>esxcfg‐auth</strong> command includes options for configuring interoperability with several authentication providers. This note focuses on the options that are relevant to Active Directory:<br />
esxcfg‐auth [ [ ‐‐enablead | ‐‐disablead ] [ ‐‐addomain= ] [‐‐addc= ]</p>
<p>Type <em>man esxcfg-auth</em> for more information.</p>
<p>&#8211;disableab<br />
Reverts the changes required to authenticate the user against Active Directory.</p>
<p>&#8211;enablead<br />
Sets up the Console OS to authenticate the user against an Active Directory server. addomain and addc are required with this option.</p>
<p>&#8211;addomain<br />
Sets the domain against which the user is to be authenticated when authenticating against an Active Directory server.</p>
<p>&#8211;addc<br />
Sets the domain controller against which the user&#8217;s password should be checked.</p>
<p><textarea cols="50" rows="1"># esxcfg-auth &#8211;enablead &#8211;addomain=AD.MALAYSIAVM.COM &#8211;addc=dc01.ad.malaysiavm.com</textarea></p>
<p>This enables <a href="http://malaysiavm.com/blog/tag/ad">Active Directory</a> based user authentication in the ad.malaysiavm.com domain<br />
with the domain controller dc01.ad.malaysiavm.com.</p>
<p>Basically the system will generate <strong>/etc/krb5.conf</strong> file as example below:</p>
<p><span id="more-157"></span></p>
<p>[domain_realm]<br />
ad.malaysiavm.com = AD.MALAYSIAVM.COM<br />
.ad.malaysiavm.com = AD.MALAYSIAVM.COM</p>
<p>[libdefaults]<br />
default_realm = AD.MALAYSIAVM.COM</p>
<p>[realms]<br />
AD.MALAYSIAVM.COM = {<br />
admin_server = dc01.ad.malaysiavm.com:464<br />
default_domain = AD.MALAYSIAVM.COM<br />
kdc = dc01.ad.malaysiavm.com:88</p>
<p>Basically the different between ESX 2.x and 3.x is in PAM configuration, make sure you have correct <a href="http://malaysiavm.com/blog/tag/pam">PAM</a> configuration as example below:</p>
<p><strong>/etc/pam.d/vmware-authd</strong><br />
auth       required     pam_stack.so service=system-auth<br />
account    required     pam_stack.so service=system-auth</p>
<p><strong>/etc/pam.d/system-auth</strong><br />
account         sufficient      /lib/security/$ISA/pam_krb5.so<br />
account         required        /lib/security/$ISA/pam_unix.so</p>
<p>auth            required        /lib/security/$ISA/pam_env.so<br />
auth            sufficient      /lib/security/$ISA/pam_unix.so              likeauth nullok<br />
auth            sufficient      /lib/security/$ISA/pam_krb5.so              use_first_pass<br />
auth            required        /lib/security/$ISA/pam_deny.so</p>
<p>password        required        /lib/security/$ISA/pam_cracklib.so          retry=3<br />
password        sufficient      /lib/security/$ISA/pam_unix.so              nullok use_authtok md5 shadow<br />
password        sufficient      /lib/security/$ISA/pam_krb5.so              use_authtok<br />
password        required        /lib/security/$ISA/pam_deny.so</p>
<p>session         required        /lib/security/$ISA/pam_limits.so<br />
session         required        /lib/security/$ISA/pam_unix.so<br />
session         sufficient      /lib/security/$ISA/pam_krb5.so</p>
<p>According to previous article from <a href="http://www.vmware.com/pdf/esx_authentication_AD.pdf">VMware</a>, you&#8217;re require /var/kerberos/krb5kdc/kdc.conf which it&#8217;s worked without this file on <a href="http://www.malaysiavm.com/blog/tag/vmware">VMware</a> ESX 3.5 update 2.</p>
<p>Create a user on the <a href="http://www.malaysiavm.com/blog/tag/vmware">VMware</a> ESX Server system with permissions to use the service console or SSH. To create a user, use the <a href="http://www.malaysiavm.com/blog/tag/linux">Linux</a> command <em>useradd</em>.</p>
<p><textarea cols="50" rows="1"># /usr/sbin/useradd user1</textarea></p>
<p>Note: please make sure you have user1 in your <a href="http://malaysiavm.com/blog/tag/ad">AD</a> or create any other AD account.</p>
<p>Open a new <a href="http://malaysiavm.com/blog/tag/ssh">SSH</a> session(I used putty) and login with username: user1 and AD password. If you have any problem with AD authentication logon, please refer to <em>/var/log/message</em>.</p>
<p>In case you need to access to <a href="http://malaysiavm.com/blog/tag/vmware">VMware</a> ESX host directly, you&#8217;re require to define user test1 in permission tab under VI.</p>
<p><img src="http://malaysiavm.com/images/vi_permission.png" alt="VMware VI" /></p>
<p>Done! Congratulation! You should be able to login to ESX server using Active Directory authentication.</p>
<p>Related Post:</p>
<ul>
<li><a href="http://www.planetmy.com/blog/how-to-authenticate-to-active-directory-on-suse-linux-9/">SLES 9 Authentication Login Using Active Directory</a></li>
<li><a href="http://www.planetmy.com/blog/using-active-directory-for-suse-linux-10-authentication/">SLES 10 Authentication Login Using Active Directory</a></li>
<li><a href="http://blog.scottlowe.org/2006/05/01/esx-server-integration-with-active-directory/" target="_blank">ESX Server Integration with Active Directory</a></li>
</ul>


<p>Related posts:<ol><li><a href='http://malaysiavm.com/blog/vmware-data-recovery-mount-show-password-detail/' rel='bookmark' title='Permanent Link: VMware Data Recovery Mount Show Password Detail?'>VMware Data Recovery Mount Show Password Detail?</a></li>
</ol></p>
	Tags: <a href="http://malaysiavm.com/blog/tag/active-directory/" title="Active Directory" rel="tag">Active Directory</a>, <a href="http://malaysiavm.com/blog/tag/ad/" title="AD" rel="tag">AD</a>, <a href="http://malaysiavm.com/blog/tag/esx/" title="ESX" rel="tag">ESX</a>, <a href="http://malaysiavm.com/blog/tag/login/" title="login" rel="tag">login</a>, <a href="http://malaysiavm.com/blog/tag/microsoft/" title="Microsoft" rel="tag">Microsoft</a>, <a href="http://malaysiavm.com/blog/tag/ssh/" title="ssh" rel="tag">ssh</a>, <a href="http://malaysiavm.com/blog/tag/vmware/" title="VMware" rel="tag">VMware</a><br />
]]></content:encoded>
			<wfw:commentRss>http://malaysiavm.com/blog/vmware-esx-35-authentication-login-using-active-directory/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.347 seconds -->
