<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	>
<channel>
	<title>Comments on: ESX Server-AD Integration</title>
	<atom:link href="http://blog.scottlowe.org/2007/07/10/esx-server-ad-integration/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.scottlowe.org/2007/07/10/esx-server-ad-integration/</link>
	<description>The weblog of an IT pro specializing in virtualization, storage, and servers</description>
	<pubDate>Tue, 16 Mar 2010 00:15:30 +0000</pubDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Steven Petrillo</title>
		<link>http://blog.scottlowe.org/2007/07/10/esx-server-ad-integration/comment-page-1/#comment-46837</link>
		<dc:creator>Steven Petrillo</dc:creator>
		<pubDate>Tue, 01 Dec 2009 21:40:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scottlowe.org/2007/07/10/esx-server-ad-integration/#comment-46837</guid>
		<description>Hi Scott,

I have carefully followed your terrific instruction set but when I try GETENT on a AD domain account I get nothing back. I have validated that I believe I set things up. What tips to aid in troubleshooting this?

Steve</description>
		<content:encoded><![CDATA[<p>Hi Scott,</p>
<p>I have carefully followed your terrific instruction set but when I try GETENT on a AD domain account I get nothing back. I have validated that I believe I set things up. What tips to aid in troubleshooting this?</p>
<p>Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: slowe</title>
		<link>http://blog.scottlowe.org/2007/07/10/esx-server-ad-integration/comment-page-1/#comment-43747</link>
		<dc:creator>slowe</dc:creator>
		<pubDate>Sun, 01 Mar 2009 19:54:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scottlowe.org/2007/07/10/esx-server-ad-integration/#comment-43747</guid>
		<description>Iben,

The AD integration only handles logins to the Service Console. Logins via the VI Client are handled by the Windows infrastructure underneath vCenter Server, which use either local Windows server accounts or Active Directory user accounts.

I am not aware of a way to do the same thing with ESXi, since there is no Service Console per se that needs to be handled. CLI access to ESXi is handled via the Remote CLI appliance or VIMA, so it might be possible to configure those but I have not tested it.</description>
		<content:encoded><![CDATA[<p>Iben,</p>
<p>The AD integration only handles logins to the Service Console. Logins via the VI Client are handled by the Windows infrastructure underneath vCenter Server, which use either local Windows server accounts or Active Directory user accounts.</p>
<p>I am not aware of a way to do the same thing with ESXi, since there is no Service Console per se that needs to be handled. CLI access to ESXi is handled via the Remote CLI appliance or VIMA, so it might be possible to configure those but I have not tested it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Iben Rodriguez</title>
		<link>http://blog.scottlowe.org/2007/07/10/esx-server-ad-integration/comment-page-1/#comment-43745</link>
		<dc:creator>Iben Rodriguez</dc:creator>
		<pubDate>Sun, 01 Mar 2009 17:16:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scottlowe.org/2007/07/10/esx-server-ad-integration/#comment-43745</guid>
		<description>Hi Scott,

Thanks for this web site and these great tips! About The AD Authentication Procedure...

Does this work for both SSH and VIC logins? Can you configure which users can SSH and which can use VIC? 

Also, 

Might it be possible to configure ESXI for AD authentication too? SSH and / or VIC would be needed too.

Thanks!


I b e n</description>
		<content:encoded><![CDATA[<p>Hi Scott,</p>
<p>Thanks for this web site and these great tips! About The AD Authentication Procedure&#8230;</p>
<p>Does this work for both SSH and VIC logins? Can you configure which users can SSH and which can use VIC? </p>
<p>Also, </p>
<p>Might it be possible to configure ESXI for AD authentication too? SSH and / or VIC would be needed too.</p>
<p>Thanks!</p>
<p>I b e n</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruubster</title>
		<link>http://blog.scottlowe.org/2007/07/10/esx-server-ad-integration/comment-page-1/#comment-43734</link>
		<dc:creator>Ruubster</dc:creator>
		<pubDate>Fri, 27 Feb 2009 10:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scottlowe.org/2007/07/10/esx-server-ad-integration/#comment-43734</guid>
		<description>Hi,

It is not really necessary to use Kerberos authentication to authenticate against a Windows Domain (Controller). Yes, it is a secure protocol, but when you logon to your service console, you will use ssh, which by itself is pretty secure. You also dont have to worry about your ESX server not syncing your time correctly when just using LDAP without Kerberos.

Nevertheless, we are using just the LDAP configuration to authenticate users against the domain controller on the service console. This is how we set it up:

On ESX:
=======================================================

esxcfg-auth --enableldap --enableldapauth --ldapserver  --ldapbasedn "ou=,dc=,dc=,dc="

vi the /etc/ldap.conf and add  specific attributes (these are from Services for Unix on Windows 2003, different attributes are used on Windows 2003 R2 Identidy for UNIX) :


nss_base_group ou=,dc=,dc=,dc=?sub
nss_base_passwd ou=,dc=,dc=,dc=?sub
nss_base_shadow ou=,dc=,dc=,dc=?sub
nss_map_attribute cn sAMAccountName
nss_map_attribute gecos name
nss_map_attribute uid sAMAccountName
nss_map_attribute gidNumber msSFU30GidNumber
nss_map_attribute uidNumber msSFU30UidNumber
nss_map_attribute homeDirectory msSFU30HomeDirectory
nss_map_attribute loginShell msSFU30LoginShell
nss_map_attribute userPassword msSFU30Password
nss_map_attribute uniqueMember member
nss_map_objectclass shadowAccount User
nss_map_objectclass posixGroup Group
nss_map_objectclass posixAccount User
pam_filter objectclass=User
pam_login_attribute sAMAccountName
pam_password ad

You can also add a bind user if not using anonymous access to query your domain. Add this to the /etc/ldap.conf:

binddn CN=,ou=,dc=,dc=,dc=
bindpw 

And then add the ldap to the /etc/nsswitch.conf:

group:    	        files ldap
passwd:    	files ldap
shadow:    	files ldap

No restarts are necessary.

We have had some strange issues when using a Domain Controller as a host for ldap, instead of the domain. When using DC's virtual and they are located on that specific ESX server, the DC that is configured as HOST freezes when you stop the service mgmt-vmware and start it again (or restart). Even more you cannot even connect to your ESX server, unless you disconnect it from VC, which takes about 5-10 minutes). After that it comes up again...

Anybody knows why such behaviour can occur?

Ruub</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>It is not really necessary to use Kerberos authentication to authenticate against a Windows Domain (Controller). Yes, it is a secure protocol, but when you logon to your service console, you will use ssh, which by itself is pretty secure. You also dont have to worry about your ESX server not syncing your time correctly when just using LDAP without Kerberos.</p>
<p>Nevertheless, we are using just the LDAP configuration to authenticate users against the domain controller on the service console. This is how we set it up:</p>
<p>On ESX:<br />
=======================================================</p>
<p>esxcfg-auth &#8211;enableldap &#8211;enableldapauth &#8211;ldapserver  &#8211;ldapbasedn &#8220;ou=,dc=,dc=,dc=&#8221;</p>
<p>vi the /etc/ldap.conf and add  specific attributes (these are from Services for Unix on Windows 2003, different attributes are used on Windows 2003 R2 Identidy for UNIX) :</p>
<p>nss_base_group ou=,dc=,dc=,dc=?sub<br />
nss_base_passwd ou=,dc=,dc=,dc=?sub<br />
nss_base_shadow ou=,dc=,dc=,dc=?sub<br />
nss_map_attribute cn sAMAccountName<br />
nss_map_attribute gecos name<br />
nss_map_attribute uid sAMAccountName<br />
nss_map_attribute gidNumber msSFU30GidNumber<br />
nss_map_attribute uidNumber msSFU30UidNumber<br />
nss_map_attribute homeDirectory msSFU30HomeDirectory<br />
nss_map_attribute loginShell msSFU30LoginShell<br />
nss_map_attribute userPassword msSFU30Password<br />
nss_map_attribute uniqueMember member<br />
nss_map_objectclass shadowAccount User<br />
nss_map_objectclass posixGroup Group<br />
nss_map_objectclass posixAccount User<br />
pam_filter objectclass=User<br />
pam_login_attribute sAMAccountName<br />
pam_password ad</p>
<p>You can also add a bind user if not using anonymous access to query your domain. Add this to the /etc/ldap.conf:</p>
<p>binddn CN=,ou=,dc=,dc=,dc=<br />
bindpw </p>
<p>And then add the ldap to the /etc/nsswitch.conf:</p>
<p>group:    	        files ldap<br />
passwd:    	files ldap<br />
shadow:    	files ldap</p>
<p>No restarts are necessary.</p>
<p>We have had some strange issues when using a Domain Controller as a host for ldap, instead of the domain. When using DC&#8217;s virtual and they are located on that specific ESX server, the DC that is configured as HOST freezes when you stop the service mgmt-vmware and start it again (or restart). Even more you cannot even connect to your ESX server, unless you disconnect it from VC, which takes about 5-10 minutes). After that it comes up again&#8230;</p>
<p>Anybody knows why such behaviour can occur?</p>
<p>Ruub</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://blog.scottlowe.org/2007/07/10/esx-server-ad-integration/comment-page-1/#comment-43255</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Mon, 05 Jan 2009 21:50:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scottlowe.org/2007/07/10/esx-server-ad-integration/#comment-43255</guid>
		<description>if I type "getent passwd" I get a list of all accounts, including unix enabled AD accounts.  It I type "getent passwd user" I get nothing.</description>
		<content:encoded><![CDATA[<p>if I type &#8220;getent passwd&#8221; I get a list of all accounts, including unix enabled AD accounts.  It I type &#8220;getent passwd user&#8221; I get nothing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://blog.scottlowe.org/2007/07/10/esx-server-ad-integration/comment-page-1/#comment-39418</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Sun, 15 Jun 2008 10:50:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scottlowe.org/2007/07/10/esx-server-ad-integration/#comment-39418</guid>
		<description>Hi Scott,

Thanks for the reply - it was my firewall config! I was so focused on the more copmplicated issue of getting my .conf files right I missed the simpler option!

thanks a lot for your help!

Paul</description>
		<content:encoded><![CDATA[<p>Hi Scott,</p>
<p>Thanks for the reply - it was my firewall config! I was so focused on the more copmplicated issue of getting my .conf files right I missed the simpler option!</p>
<p>thanks a lot for your help!</p>
<p>Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: slowe</title>
		<link>http://blog.scottlowe.org/2007/07/10/esx-server-ad-integration/comment-page-1/#comment-39412</link>
		<dc:creator>slowe</dc:creator>
		<pubDate>Fri, 13 Jun 2008 20:37:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scottlowe.org/2007/07/10/esx-server-ad-integration/#comment-39412</guid>
		<description>Paul,

You do have UNIX-enabled users in AD, right? I gloss over the details of configuring AD in this article, referring you instead to other articles I've written that have the full details. Be sure that you have extended the AD schema (if needed) and that users have been given a UID, GID, home directory, and login shell.

Also, you may need to double-check the ESX firewall using esxcfg-firewall to ensure that LDAP traffic is allowed out the firewall.

Hope this helps!</description>
		<content:encoded><![CDATA[<p>Paul,</p>
<p>You do have UNIX-enabled users in AD, right? I gloss over the details of configuring AD in this article, referring you instead to other articles I&#8217;ve written that have the full details. Be sure that you have extended the AD schema (if needed) and that users have been given a UID, GID, home directory, and login shell.</p>
<p>Also, you may need to double-check the ESX firewall using esxcfg-firewall to ensure that LDAP traffic is allowed out the firewall.</p>
<p>Hope this helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://blog.scottlowe.org/2007/07/10/esx-server-ad-integration/comment-page-1/#comment-39411</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Fri, 13 Jun 2008 16:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scottlowe.org/2007/07/10/esx-server-ad-integration/#comment-39411</guid>
		<description>Hi Scott,

I'm really struggling to get this working at all.

I've been through all the documents many times but can't get anything back from "getent passwd user"

I've checked my krb5.conf, ldap.conf, nsswitch.conf files several times but can't see what I'm missing. is there anything else i can try?

thanks</description>
		<content:encoded><![CDATA[<p>Hi Scott,</p>
<p>I&#8217;m really struggling to get this working at all.</p>
<p>I&#8217;ve been through all the documents many times but can&#8217;t get anything back from &#8220;getent passwd user&#8221;</p>
<p>I&#8217;ve checked my krb5.conf, ldap.conf, nsswitch.conf files several times but can&#8217;t see what I&#8217;m missing. is there anything else i can try?</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: slowe</title>
		<link>http://blog.scottlowe.org/2007/07/10/esx-server-ad-integration/comment-page-1/#comment-38448</link>
		<dc:creator>slowe</dc:creator>
		<pubDate>Tue, 20 May 2008 20:47:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scottlowe.org/2007/07/10/esx-server-ad-integration/#comment-38448</guid>
		<description>Hok,

Send me your /etc/pam.d/system-auth, your /etc/ldap.conf, your /etc/nsswitch.conf, and your /etc/krb5.conf via e-mail. I'll have a look at them and see if I can figure out what might be misconfigured.</description>
		<content:encoded><![CDATA[<p>Hok,</p>
<p>Send me your /etc/pam.d/system-auth, your /etc/ldap.conf, your /etc/nsswitch.conf, and your /etc/krb5.conf via e-mail. I&#8217;ll have a look at them and see if I can figure out what might be misconfigured.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hok</title>
		<link>http://blog.scottlowe.org/2007/07/10/esx-server-ad-integration/comment-page-1/#comment-38428</link>
		<dc:creator>Hok</dc:creator>
		<pubDate>Tue, 20 May 2008 16:44:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scottlowe.org/2007/07/10/esx-server-ad-integration/#comment-38428</guid>
		<description>that is correct. /etc/nsswitch.conf was modified to include ldap for line item: group,passwd and shadow.
esxcfg-auth was not run after manual editing.</description>
		<content:encoded><![CDATA[<p>that is correct. /etc/nsswitch.conf was modified to include ldap for line item: group,passwd and shadow.<br />
esxcfg-auth was not run after manual editing.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
