<?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"
	>
<channel>
	<title>Comments on: WinBind authentication with VMware host</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/winbind-authentication-with-vmware-host/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/winbind-authentication-with-vmware-host/</link>
	<description></description>
	<pubDate>Fri, 27 Nov 2009 21:10:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: AdamJB</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/winbind-authentication-with-vmware-host/#comment-62194</link>
		<dc:creator>AdamJB</dc:creator>
		<pubDate>Mon, 13 Apr 2009 22:17:36 +0000</pubDate>
		<guid isPermaLink="false">#comment-62194</guid>
		<description>We've been using VMware on Linux Hosts and using AD Authentication for the past couple of years, with great success on both VMware Server 1 &#38; 2.

If you already have your Winbind/Samba configuration working and all you need is a working vmware-authd pam file, here is what we use:

   auth       sufficient   pam_unix.so shadow nullok
   auth       sufficient   pam_winbind.so use_first_pass cached_login
   account    sufficient   pam_unix.so
   account    sufficient   pam_winbind.so cached_login

The 'cached_login' parameter allows Winbind to use cached account info, which allows a domain account that has previously logged in to log in when no domain controllers are available.

We found during testing that if Domain Controllers are unavailable, Winbind would not switch to offline mode reliably on it's own. So,  we created a simple script to check LDAP connectivity to Domain Controllers, and set Winbind to online or offline mode depending on whether or not the DCs are available. The script is scheduled to run once per minute via cron:

   DC1=`nmap -sS -p 389 10.2.1.21&#124;grep open&#124;wc -l`
   DC2=`nmap -sS -p 389 172.21.2.2&#124;grep open&#124;wc -l`
   WINBINDONLINE=`smbcontrol winbindd onlinestatus&#124;grep 'AINET:Online'&#124;wc -l`
   
   if [ "$DC1" -eq "1" -o "$DC2" -eq "1" ]; then
     if [ "$WINBINDONLINE" -eq "0" ]; then
       smbcontrol winbindd online
       echo `date` - Switching winbindd to online mode &#62;&#62; /var/log/samba/smbcontrol
     fi
   else
     if [ "$WINBINDONLINE" -eq "1" ]; then
       smbcontrol winbindd offline
       echo `date` - Switching winbindd to offline mode &#62;&#62; /var/log/samba/         smbcontrol
     fi
   fi</description>
		<content:encoded><![CDATA[<p>We&#8217;ve been using VMware on Linux Hosts and using AD Authentication for the past couple of years, with great success on both VMware Server 1 &amp; 2.</p>
<p>If you already have your Winbind/Samba configuration working and all you need is a working vmware-authd pam file, here is what we use:</p>
<p>   auth       sufficient   pam_unix.so shadow nullok<br />
   auth       sufficient   pam_winbind.so use_first_pass cached_login<br />
   account    sufficient   pam_unix.so<br />
   account    sufficient   pam_winbind.so cached_login</p>
<p>The &#8216;cached_login&#8217; parameter allows Winbind to use cached account info, which allows a domain account that has previously logged in to log in when no domain controllers are available.</p>
<p>We found during testing that if Domain Controllers are unavailable, Winbind would not switch to offline mode reliably on it&#8217;s own. So,  we created a simple script to check LDAP connectivity to Domain Controllers, and set Winbind to online or offline mode depending on whether or not the DCs are available. The script is scheduled to run once per minute via cron:</p>
<p>   DC1=`nmap -sS -p 389 10.2.1.21|grep open|wc -l`<br />
   DC2=`nmap -sS -p 389 172.21.2.2|grep open|wc -l`<br />
   WINBINDONLINE=`smbcontrol winbindd onlinestatus|grep &#8216;AINET:Online&#8217;|wc -l`</p>
<p>   if [ "$DC1" -eq "1" -o "$DC2" -eq "1" ]; then<br />
     if [ "$WINBINDONLINE" -eq "0" ]; then<br />
       smbcontrol winbindd online<br />
       echo `date` - Switching winbindd to online mode &gt;&gt; /var/log/samba/smbcontrol<br />
     fi<br />
   else<br />
     if [ "$WINBINDONLINE" -eq "1" ]; then<br />
       smbcontrol winbindd offline<br />
       echo `date` - Switching winbindd to offline mode &gt;&gt; /var/log/samba/         smbcontrol<br />
     fi<br />
   fi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mshen</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/winbind-authentication-with-vmware-host/#comment-61663</link>
		<dc:creator>Mshen</dc:creator>
		<pubDate>Tue, 31 Mar 2009 18:58:49 +0000</pubDate>
		<guid isPermaLink="false">#comment-61663</guid>
		<description>Purchasing the vCenter Server license, and installing it on a Windows VM or physical machine will allow you to use Active Directory accounts to connect to the vCenter Server to manage your virtual infrastructure.</description>
		<content:encoded><![CDATA[<p>Purchasing the vCenter Server license, and installing it on a Windows VM or physical machine will allow you to use Active Directory accounts to connect to the vCenter Server to manage your virtual infrastructure.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- dynamic -->