<?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; Active Directory</title>
	<atom:link href="http://www.linuxmail.info/category/active-directory/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxmail.info</link>
	<description>Rapidly deploy Linux based mail solutions today</description>
	<lastBuildDate>Sat, 26 Jun 2010 16:30:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>389 Directory and Active Directory SSL Synchronization</title>
		<link>http://www.linuxmail.info/389-directory-active-directory-ssl-synch/</link>
		<comments>http://www.linuxmail.info/389-directory-active-directory-ssl-synch/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 07:13:24 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[389 Directory Server]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[SSL/TLS]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=369</guid>
		<description><![CDATA[This article describes how to configure and test 389 Directory Server to synchronize with an Active Directory Server via an SSL LDAP connection.]]></description>
			<content:encoded><![CDATA[<p>An SSL connection to Active Directory is required in order to update a user&#8217;s password using LDAP. This article describes how to configure and test 389 Directory Server to synchronize with an Active Directory Server via an SSL LDAP connection.</p>
<span id="more-369"></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>Configuring SSL Connection</h2>
<div class="clearfix steps"><a href="/images/windows-2003/certificate-authority-issued-certs.png"><img class="preview" alt="Certificate Authority" src="/images/windows-2003/t-certificate-authority-issued-certs.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Make sure SSL is enabled in Active Directory. <a href="/enable-ldap-ssl-active-directory/">Learn how to enable LDAP SSL in Active Directory.</a></div>
<div class="clearfix steps"><a href="/images/windows-2003/certificate-wizard-4.png"><img class="preview" alt="Certificate Export Wizard" src="/images/windows-2003/t-certificate-wizard-4.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. <a href="/export-ssl-certificate-windows-2003/">Export a base-64 encoded SSL certificate from your Active Directory Server.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-manage-certificates-1.png"><img class="preview" alt="389 Directory Manage Certificates" src="/images/centos-5/t-389-ds-manage-certificates-1.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Make sure SSL is enabled in 389 Directory Server. <a href="/389-directory-server-setup-howto-centos-5/#setup-ssl">Learn how to enable LDAP SSL in 389 Directory Server.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-manage-certificates-3.png"><img class="preview" alt="389 Directory Manage Certificates" src="/images/centos-5/t-389-ds-manage-certificates-3.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. <a href="/install-ssl-certificate-fds/">Install the exported SSL certificate into 389 Directory Server.</a></div>
<h2>Testing SSL Connection</h2>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-ldapsearch.png"><img class="preview" alt="ldapsearch" src="/images/centos-5/t-389-ds-ldapsearch.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Type the command below to test if you can do a plain LDAP connection to your Active Directory server. You&#8217;ll be asked for the password of the user account you specified in the <strong>-D</strong> option.
<pre class="steps">
/usr/lib/mozldap/ldapsearch -b "dc=acme,dc=local" 
-h server.acme.local -R 
-D "cn=fds,cn=users,dc=acme,dc=local" 
-w - "objectclass=*"
</pre>
<p>Replace the value after <strong>-b</strong> with your search base, the value after <strong>-h</strong> with your server hostname and the value after <strong>-D</strong> with the distinguished name of a user account having read/write access to your Active Directory server.</p>
</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-ldapsearch-ssl.png"><img class="preview" alt="ldapsearch SSL" src="/images/centos-5/t-389-ds-ldapsearch-ssl.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Type the command below to test if you can do an SSL enabled LDAP connection to your Active Directory server.
<pre class="steps">
/usr/lib/mozldap/ldapsearch -b "dc=acme,dc=local" 
-h server.acme.local -R 
-D "cn=fds,cn=users,dc=acme,dc=local" 
-w - -Z -P /etc/dirsrv/slapd-mail "objectclass=*"
</pre>
</div>
<p>Replace the value after <strong>-P</strong> with the settings path of your 389 Directory server.</p>
<p>If the two test above succeeds, you can use SSL connection to synchronize with Active Directory.</p>
<h2>Troubleshooting</h2>
<p>If the output from the test above contains</p>
<ul>
<li><em>Invalid credentials</em><br /><p>Check the distinguished name of the user account after the <strong>-D</strong> option and the bind password for it. To check the distinguished name, type the command below.</p>
<pre class="steps">
/usr/lib/mozldap/ldapsearch -b "dc=acme,dc=local" -h server 
-R -D "ACME\fds" -w - "samaccountname=fds" DN
</pre>
<p>Replace the value <strong>ACME</strong> with your own domain and <strong>fds</strong> with your own user name. It will output the distinguished name of the user name you specified.</p>
</li>
<li><em>TCP connection reset by peer</em><br /><p>Check the host name you specified after <strong>-h</strong>. If the host name is correct, check the firewall.</p></li>
<li><em>security library: bad database</em><br /><p>Make sure <a href="/389-directory-server-setup-howto-centos-5/#setup-ssl">SSL is enabled in 389 Directory Server.</a> And check the path you specified after <strong>-P</strong>.</p></li>
<li><em>Encountered end of file</em><br /><p>After <a href="/enable-ldap-ssl-active-directory/">configuring SSL in Active Directory</a>, you probably did not reboot your Active Directory server. Reboot your AD server to complete the changes and try the test again.</p></li>
<li><em>Peer&#8217;s Certificate has expired</em><br /><p>Make sure the <a href="/synchronize-system-clock-centos-5/">system clock is synchronized in the Linux server</a> and the Active Directory server. And the check the certificate, it may indeed be expired.</p></li>
<li><em>Peer&#8217;s certificate issuer has been marked as not trusted by the user</em><br /><p>Check the trust setting you specified in the certificate of the 389 Directory server. <a href="/install-ssl-certificate-fds/#intended-purpose"><em>Making connections to other servers</em> should be checked.</a></p></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/389-directory-active-directory-ssl-synch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Active Directory and 389 Directory Server Sync Issues</title>
		<link>http://www.linuxmail.info/active-directory-fds-sync-issues/</link>
		<comments>http://www.linuxmail.info/active-directory-fds-sync-issues/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 12:52:53 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[389 Directory Server]]></category>
		<category><![CDATA[Active Directory]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=229</guid>
		<description><![CDATA[This article describes possible issues that may be encountered while implementing the Active Directory and 389 Directory Server synchronization.]]></description>
			<content:encoded><![CDATA[<p>389 Directory Server have the capability to synchronize with Active Directory. But this capability is not perfect. I&#8217;ll discuss below the problems you may encounter when <a href="/ad-fds-sync-howto/">using the synchronization feature</a>.</p>
<span id="more-229"></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>Users</h2>
<div class="clearfix steps"><a href="/images/windows-2003/ad-users-bugs.png"><img class="preview" alt="User Bugs Bunny" src="/images/windows-2003/t-ad-users-bugs.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>The <em>Last Name</em> is required in 389 Directory Server so make sure all users have it in Active Directory.</div>
<h2>User Passwords</h2>
<div class="clearfix steps"><a href="/images/windows-2003/reset-user-password.png"><img class="preview" alt="Reset User Password" src="/images/windows-2003/t-reset-user-password.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>The Active Directory user passwords can only be replicated to 389 Directory Server by <a href="/synch-ad-password-fds/">installing the PassSync utility</a> to capture password changes before they are stored in a hashed format. This is the only way to get the user&#8217;s password from Active Directory.</div>
<div class="clearfix steps"><a href="/images/windows-2003/passsync-welcome.png"><img class="preview" alt="Reset User Password" src="/images/windows-2003/t-passsync-welcome.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>The PassSync utility does not work in the 64 bit versions of Windows Server. It also stores the passwords used to authenticate with 389 Directory Server and the certificate database unencrypted in the registry.</div>
<h2>Organizational Units</h2>
<div class="clearfix steps"><a href="/images/windows-2003/ad-acme.png"><img class="preview" alt="Active Directory Users and Computers" src="/images/windows-2003/t-ad-acme.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>Organizational Units, like <em>Accounting</em>, <em>Domain Controllers</em>, <em>Engineering</em> and <em>Sales and Marketing</em> in the screen shot, are not automatically synchronized. Every time you create a new one in Active Directory, you need to manually create the same in Fedora Directory Server to synchronize its contents.</div>
<h2>Containers</h2>
<div class="clearfix steps"><a href="/images/windows-2003/ad-acme.png"><img class="preview" alt="Active Directory Users and Computers" src="/images/windows-2003/t-ad-acme.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>Containers, like <em>Computers</em>, <em>ForeignSecurityPrincipals</em>, and <em>Users</em> in the screen shot, is similar to the Organizational Unit but uses a different distinguished name.</div>
<div class="clearfix steps"><a href="/images/windows-2003/adsiedit-acme.png"><img class="preview" alt="ADSI Edit" src="/images/windows-2003/t-adsiedit-acme.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>It uses <em>CN=name</em> instead of <em>OU=name</em> for its relative distinguished name.</div>
<div class="clearfix steps"><a href="/images/centos-5/fds-ds-cn-users.png"><img class="preview" alt="Fedora Management Console" src="/images/centos-5/t-fds-ds-cn-users.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>To create an organizational unit with the same naming convention, you have to extend the FDS schema.</div>
<div class="clearfix steps"><a href="/images/centos-5/terminal-setupusers-sh.png"><img class="preview" alt="setupusers.sh" src="/images/centos-5/t-terminal-setupusers-sh.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>You can use the <a href="/files/setupusers.sh">setupusers.sh</a> script to create the <em>Users</em> organizational unit for you. Just type in <em>./setupusers.sh &#8220;dc=acme,dc=local&#8221;</em> to automatically create the Users container in FDS. Replace <em>&#8220;dc=acme,dc=local&#8221;</em> with your own base DN.</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/active-directory-fds-sync-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Synch Active Directory Password to 389 Directory Server</title>
		<link>http://www.linuxmail.info/synch-ad-password-fds/</link>
		<comments>http://www.linuxmail.info/synch-ad-password-fds/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 14:16:30 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[389 Directory Server]]></category>
		<category><![CDATA[Active Directory]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=216</guid>
		<description><![CDATA[This article describes how to synchronize the Active Directory password to 389 Directory Server using the PassSync utility.]]></description>
			<content:encoded><![CDATA[<p>This article describes how to synchronize the Active Directory password to 389 Directory Server using the PassSync utility.</p>
<span id="more-216"></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>Configuring the User Permission</h2>
<p>The 389 Directory Server sync user account should be given permission to update the password field. In our example, it is <em>uid=SMaster,cn=config</em>. You can <a href="/ad-fds-sync-howto/#create-sync-user-account">create a sync user account using this article</a>.</p>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-console.png"><img class="preview" alt="389 Management Console" src="/images/centos-5/t-389-ds-console.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. <a 
href="/389-directory-server-setup-howto-centos-5/#fds-admin">Launch the 389 Management Console</a>.</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-console-2.png"><img class="preview" alt="389 Management Console" src="/images/centos-5/t-389-ds-console-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Click the + sign corresponding to your server. Next, click the + sign corresponding to <em>Server Group</em> and click <em>Directory Server</em>. Finally, click the <em>Open</em> button in the <em>Directory Server</em> page.</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-ds-permission.png"><img class="preview" alt="Access Permission" src="/images/centos-5/t-389-ds-ds-permission.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Click the <em>Directory</em> tab and click the folder corresponding to your domain.  Next, right click that same folder and click <em>Set Access Permissions</em>.</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-ds-manage-ac.png"><img class="preview" alt="Manage Access Control" src="/images/centos-5/t-389-ds-ds-manage-ac.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. In the <strong>Manage Access Control</strong> window, click <em>New</em>.</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-ds-edit-aci.png"><img class="preview" alt="Edit ACI" src="/images/centos-5/t-389-ds-ds-edit-aci.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. In the <strong>Edit ACI</strong> window, click <em>Edit Manually</em>.</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-ds-edit-aci-manual.png"><img class="preview" alt="Edit ACI Manual" src="/images/centos-5/t-389-ds-ds-edit-aci-manual.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">6. Change the value of the ACI to the one below. Click <em>Ok</em> when you are done.
<pre class="steps">
(targetattr = "*") 
(version 3.0;
acl "PassSync";
allow (all)
(userdn = "ldap:///uid=SMaster,cn=config")
&#59;)
</pre>
<em>userdn</em> should correspond to your sync user account.
</div>
</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-ds-manage-ac-2.png"><img class="preview" alt="Manage Access Control" src="/images/centos-5/t-389-ds-ds-manage-ac-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>7. Finally, click <em>Ok</em>.</div>
<h2>Installing PassSync</h2>
<p>PassSync should be installed in every Windows domain controller in your domain. You can <a href="http://directory.fedoraproject.org/download/PassSync-20060330.msi">download the PassSync installer here</a>.</p>
<div class="clearfix steps"><a href="/images/windows-2003/passsync-welcome.png"><img class="preview" alt="PassSync Welcome" src="/images/windows-2003/t-passsync-welcome.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Launch the <strong>PassSync</strong> installer and click <em>Next</em>.</div>
<div class="clearfix steps"><a href="/images/windows-2003/passsync-setup.png"><img class="preview" alt="PassSync Setup" src="/images/windows-2003/t-passsync-setup.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">2. Fill up the <strong>Password Synchronization Information</strong> page and click <em>Next</em>. Below are the description of the fields. Specify in <em>Cert Token</em> the password you plan to assign to the certificate database when you create it later. The password should be at least 8 characters long, and should contain at least one non-alphabetic character.
<div>&nbsp;</div>
<div class="fw"><em>Host Name</em></div><div>389 Directory Server host name</div>
<div class="fw"><em>Port Number</em></div><div>389 Directory Server SSL port number</div>
<div class="fw"><em>User Name</em></div><div>User account in 389 Directory Server</div>
<div class="fw"><em>Password</em></div><div>Password of user account</div>
<div class="fw"><em>Cert Token</em></div><div>Certificate database password</div>
<div class="fw"><em>Search Base</em></div><div>389 Directory Server base DN</div>
</div>
<br />
</div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />The settings above will be stored in the registry located in the <em>HKEY_LOCAL_MACHINE\SOFTWARE\PasswordSync</em> path.</div>
<div class="clearfix steps"><a href="/images/windows-2003/passsync-ready.png"><img class="preview" alt="PassSync Ready" src="/images/windows-2003/t-passsync-ready.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Click <em>Next</em> in the <strong>Ready to Install</strong> page.</div>
<div class="clearfix steps"><a href="/images/windows-2003/passsync-finish.png"><img class="preview" alt="PassSync Finish" src="/images/windows-2003/t-passsync-finish.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Finally, click <em>Finish</em>.</div>
<h2>Creating the Certificate Database</h2>
<div class="clearfix steps"><a href="/images/centos-5/terminal-pk12util.png"><img class="preview" alt="pk12util" src="/images/centos-5/t-terminal-pk12util.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Export the 389 Directory Server certificate using the command below. Execute the command in the <em>/etc/dirsrv/slapd-xxx</em> directory where <em>xxx</em> corresponds to your directory server identifier. Copy the output file <em>servercert.p12</em> to your target Windows Server.
<pre class="steps">
pk12util -d . -o servercert.p12 -n Server-Cert -k pwdfile.txt
</pre>
<em>pwdfile.txt</em> contains the certificate database password created by the setupssl2.sh script. Use <tt>-K password</tt> to provide your own password if you manually configured SSL in 389 Directory Server.
</div>
<div class="clearfix steps"><a href="/images/windows-2003/cmd-certutil.png"><img class="preview" alt="certutil" src="/images/windows-2003/t-cmd-certutil.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">2. In the Windows Server, create the certificate database and load the 389 Directory Server certificate into it using the commands below. Before executing the commands below, change the Command Prompt&#8217;s current directory to the installation directory of PassSync, usually at &#8220;C:\Program Files\Red Hat Directory Password Synchronization&#8221;.
<pre class="steps">
certutil -d . -N
pk12util -d . -i servercert.p12
certutil -d . -M -n Server-Cert -t "P,P,P"
</pre>
</div>
</div>
<h2>Testing PassSync</h2>
<div class="clearfix steps"><a href="/images/windows-2003/service-passsync.png"><img class="preview" alt="Password Synchronization service" src="/images/windows-2003/t-service-passsync.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Restart the <em>Password Synchronization</em> service.</div>
<div class="clearfix steps"><a href="/images/windows-2003/reset-user-password.png"><img class="preview" alt="Reset user password" src="/images/windows-2003/t-reset-user-password.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Reset a user password and check if it synchronizes with 389 Directory Server.</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>C:\Program Files\Red Hat Directory Password Synchronization\passsync.log</em></div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/synch-ad-password-fds/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Install SSL Certificate in 389 Directory Server</title>
		<link>http://www.linuxmail.info/install-ssl-certificate-fds/</link>
		<comments>http://www.linuxmail.info/install-ssl-certificate-fds/#comments</comments>
		<pubDate>Sun, 18 Jan 2009 02:05:34 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[389 Directory Server]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[SSL/TLS]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=200</guid>
		<description><![CDATA[This article describes how to install an SSL certificate in 389 Directory Server to be able to use encypted SSL connection in synchronization.]]></description>
			<content:encoded><![CDATA[<p>This article describes how to install an <strong>SSL certificate</strong> in 389 Directory Server to be able to use encypted SSL connection during synchronization. If you will be synchronizing with an Active Directory server, make sure <a href="/enable-ldap-ssl-active-directory/">SSL is enabled</a>. You&#8217;ll also need a <a href="/export-ssl-certificate-windows-2003/">base-64 encoded SSL certificate</a> from your Active Directory server.</p>
<span id="more-200"></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>

<div class="clearfix steps"><a href="/images/centos-5/389-ds-console.png"><img class="preview" alt="389 Management Console" src="/images/centos-5/t-389-ds-console.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. <a 
href="/389-directory-server-setup-howto-centos-5/#fds-admin">Launch the 389 Management Console</a>.</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-console-2.png"><img class="preview" alt="389 Management Console" src="/images/centos-5/t-389-ds-console-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Click the + sign corresponding to your server. Next, click the + sign corresponding to <em>Server Group</em> and click <em>Directory Server</em>. Finally, click the <em>Open</em> button in the <em>Directory Server</em> page.</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-ds-tasks.png"><img class="preview" alt="389 Management Console" src="/images/centos-5/t-389-ds-ds-tasks.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Click the <em>Manage Certificates</em> button.</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-manage-certificates-1.png"><img class="preview" alt="389 Management Console" src="/images/centos-5/t-389-ds-manage-certificates-1.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Click the <em>CA Certs</em> tab.</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-manage-certificates-2.png"><img class="preview" alt="389 Management Console" src="/images/centos-5/t-389-ds-manage-certificates-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. Click the <em>Install</em> button.</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-certificate-install-wizard-1.png"><img class="preview" alt="389 Management Console" src="/images/centos-5/t-389-ds-certificate-install-wizard-1.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>6. Select the <em>in this local file</em> option and specify the location where the SSL certificate can be found. Click <em>Next</em> when you are done.</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-certificate-install-wizard-2.png"><img class="preview" alt="389 Management Console" src="/images/centos-5/t-389-ds-certificate-install-wizard-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>7. Verify the certificate information and click <em>Next</em>.</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-certificate-install-wizard-3.png"><img class="preview" alt="389 Management Console" src="/images/centos-5/t-389-ds-certificate-install-wizard-3.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>8. Verify the certificate type and click <em>Next</em>.</div>
<div id="intended-purpose" class="clearfix steps"><a href="/images/centos-5/389-ds-certificate-install-wizard-4.png"><img class="preview" alt="389 Management Console" src="/images/centos-5/t-389-ds-certificate-install-wizard-4.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>9. Click the <em>Done</em> button.</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-manage-certificates-3.png"><img class="preview" alt="389 Management Console" src="/images/centos-5/t-389-ds-manage-certificates-3.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>10. Finally, click <em>Close</em>.</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/install-ssl-certificate-fds/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Active Directory in Linux</title>
		<link>http://www.linuxmail.info/active-directory-linux/</link>
		<comments>http://www.linuxmail.info/active-directory-linux/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 10:33:55 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Active Directory]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=186</guid>
		<description><![CDATA[This article describes how to utilize the Microsoft Active Directory in a Linux environment.]]></description>
			<content:encoded><![CDATA[<p><strong>Active Directory</strong> is a Microsoft Windows Server technology that provides a variety of network services including LDAP-like Directory services, Kerberos based authentication, and DNS based naming service. It also includes a set of graphical tools that makes managing it a cinch. This article describes how to utilize this powerful technology in the Linux environment.</p>
<span id="more-186"></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>Active Directory User Accounts in Linux</h2>
<img style="width: 370px; height: 130px; margin: auto; display: block" alt="Active Directory User Account in Linux" src="/images/illustration-ad-integrated-linux.png" />
<p>&nbsp;</p>
<p>The Active Directory user accounts can be integrated into Linux in such a way that the AD user accounts appears as if they are native user accounts of Linux. There are two ways to accomplish this</p>
<ol>
<li><a href="/active-directory-single-sign-on/">Using Identity Management for Unix/Services For Unix</a><br />Identity Management for Unix is available in Windows 2003 R2 and above while Services For Unix is supported on Windows NT 4.0 and above. IMU/SFU requires more effort to implement but provides more control over user accounts.</li>
<li><a href="/active-directory-integration-samba-centos-5/">Using Samba</a><br />Samba on the other hand is easier to implement due to its template based nature but gives less control over user accounts. In Samba, everyone belongs to the same group and uses the same login shell.</li>
</ol>
<h2>Active Directory Network Services in Linux</h2>
<p>Active Directory includes Kerberos authentication and an LDAP-like Directory services which you can utilize in the various network services of Linux. Below is a sample diagram of Linux network services which can use Active Directory.</p>
<img style="width: 400px; height: 610px; margin: auto; display: block; border: none" alt="Active Directory Network Services in Linux" src="/images/illustration-ad-in-linux.png" usemap="#ad-map" />
<map id ="ad-map" name="ad-map">
<area id="sq-changepass" shape="rect" href="/squirrelmail-active-directory-change-password-howto/" alt="change password" coords="330,177, 435,188" />
<area id="sq-abook" shape="rect" href="/squirrelmail-active-directory-ldap-addressbook/" alt="address book" coords="330,166, 435,176" />
<area id="postfix-list" shape="rect" href="/postfix-active-directory-ldap-lookup-howto/" alt="distribution list" coords="10,203, 105,215" />
<area id="postfix-quota" shape="rect" href="/postfix-quota/" alt="mailbox quota" coords="10,190, 105,202" />
<area id="postfix-mailbox" shape="rect" href="/postfix-dovecot-ldap-centos-5/" alt="mailbox location" coords="10,176, 105,189" />
<area id="dovecot-ldap" shape="rect" href="/postfix-dovecot-ldap-centos-5/" alt="ldap authentication" coords="187,163, 260,175" />
<area id="dovecot-krb" shape="rect" href="/active-directory-dovecot-pam-authentication/" alt="kerberos authentication" coords="187,152, 260,162" />
<area id="fds" shape="rect" href="/ad-fds-sync-howto/" alt="synchronize" coords="20,352, 96,391" />
<area id="squid" shape="rect" href="/squid-active-directory-integration/" alt="ad integration" coords="258,464, 365,501" />
<area id="sq-email" shape="rect" href="/auto-update-squirrelmail-personal-information/" alt="update email" coords="330,150, 435,165" />
<area id="sq-mail" shape="rect" href="/squirrelmail-webmail-setup-howto-in-centos-5/" alt="squirrelmail" coords="272,11, 349,48" />
<area id="postfix-sasl" shape="rect" href="/postfix-smtp-auth-dovecot-sasl/" alt="dovecot sasl" coords="101,42, 175,65" />
</map>
<p>Here are the links on how to implement them.</p>
<h3>Postfix</h3>
<ul>
<li><a href="/postfix-smtp-server-howto-centos-5/">How to install Postfix</a></li>
<li><a href="/postfix-dovecot-ldap-centos-5/">Active Directory accounts and mailbox location</a></li>
<li><a href="/postfix-quota/">Active Directory mailbox quota</a></li>
<li><a href="/postfix-active-directory-ldap-lookup-howto/">Active Directory distribution list</a></li>
<li><a href="/postfix-smtp-auth-dovecot-sasl/">Dovecot SASL authentication</a></li>
</ul>
<h3>Dovecot</h3>
<ul>
<li><a href="/install-setup-dovecot-centos-5/">How to install Dovecot</a></li>
<li><a href="/active-directory-dovecot-pam-authentication/">Kerberos authentication</a></li>
<li><a href="/postfix-dovecot-ldap-centos-5/">LDAP authentication</a></li>
</ul>
<h3>SquirrelMail</h3>
<ul>
<li><a href="/squirrelmail-webmail-setup-howto-in-centos-5/">How to install SquirrelMail</a></li>
<li><a href="/auto-update-squirrelmail-personal-information/">Auto update the full name and email address</a></li>
<li><a href="/squirrelmail-active-directory-ldap-addressbook/">Active Directory address book</a></li>
<li><a href="/squirrelmail-active-directory-change-password-howto/">Change Active Directory password</a></li>
</ul>
<h3>389 Directory Server</h3>
<ul>
<li><a href="/389-directory-server-setup-howto-centos-5/">How to install 389 Directory Server</a></li>
<li><a href="/ad-fds-sync-howto/">Synchronize with Active Directory</a></li>
</ul>
<h3>Squid Proxy Server</h3>
<ul>
<li><a href="/squid-proxy-server-setup-howto/">How to install Squid Proxy Server</a></li>
<li><a href="/squid-active-directory-integration/">Integrate with Active Directory</a></li>
</ul>
<h3>Samba</h3>
<ul>
<li><a href="/active-directory-integration-samba-centos-5/">How to install Samba</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/active-directory-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Active Directory and 389 Directory Server Sync Howto</title>
		<link>http://www.linuxmail.info/ad-fds-sync-howto/</link>
		<comments>http://www.linuxmail.info/ad-fds-sync-howto/#comments</comments>
		<pubDate>Thu, 01 Jan 2009 15:03:26 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[389 Directory Server]]></category>
		<category><![CDATA[Active Directory]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=173</guid>
		<description><![CDATA[This article describes how to configure the 389 Directory Server to synchronize entries with an Active Directory Server.]]></description>
			<content:encoded><![CDATA[<p>This article describes how to configure the 389 Directory Server to synchronize entries with an Active Directory Server.</p>
<span id="more-173"></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>Launching the 389 Management Console</h2>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-console.png"><img class="preview" alt="389 Management Console" src="/images/centos-5/t-389-ds-console.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. <a 
href="/389-directory-server-setup-howto-centos-5/#fds-admin">Launch the 389 Management Console</a>.</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-console-2.png"><img class="preview" alt="389 Management Console" src="/images/centos-5/t-389-ds-console-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Click the + sign corresponding to your server. Next, click the + sign corresponding to <em>Server Group</em> and click <em>Directory Server</em>. Finally, click the <em>Open</em> button in the <em>Directory Server</em> page.</div>
<h2 id="create-sync-user-account">Creating the Sync User Account</h2>
<p>The sync user account will be used by the replication plugin to update the 389 Directory Server. For security reason, it should not be part of the synchronized sub tree.</p>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-ds-new-user.png"><img class="preview" alt="389 Management Console" src="/images/centos-5/t-389-ds-ds-new-user.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Click the <em>Directory</em> tab and click the <em>config</em> folder. Next, right click <em>config</em>, select <em>New</em> and click <em>User</em>.</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-new-user-smaster.png"><img class="preview" alt="Create New User" src="/images/centos-5/t-389-ds-new-user-smaster.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Fill in the <em>First Name</em>, <em>Last Name</em>, <em>Common Name</em>, <em>User ID</em>, <em>Password</em> and <em>Confirm Password</em> fields. Click <em>OK</em> when you are done.</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-ds-directory-2.png"><img class="preview" alt="389 Management Console" src="/images/centos-5/t-389-ds-ds-directory-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Note down the distinguished name of the newly created user located in the bottom part of the window.</div>
<h2>Configuring Replication</h2>
<p>The configuration below is for one way synchronization only, from Active Directory to 389 Directory Server. If you need two way synchronization, select <em>Single Master</em> or <em>Multiple Master</em> as the <em>Replica Role</em> and specify a numeric value for <em>Replica ID</em> (ex. 1) instead of using the default which is <em>Dedicated Consumer</em>.</p>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-ds-config.png"><img class="preview" alt="389 Management Console" src="/images/centos-5/t-389-ds-ds-config.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Click the <em>Configuration</em> tab and click the <em>Replication</em> folder. In the <em>Supplier Settings</em> page, check <em>Enable Changelog</em> and click the <em>Use default</em> button. Click <em>Save</em> when you are done.</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-ds-config-2.png"><img class="preview" alt="389 Management Console" src="/images/centos-5/t-389-ds-ds-config-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Click the + sign corresponding to <em>Replication</em> and click <em>userRoot</em>. Check <em>Enable Replica</em>.</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-ds-config-3.png"><img class="preview" alt="389 Management Console" src="/images/centos-5/t-389-ds-ds-config-3.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Type in the distinguished name of sync user account (<em>uid=SMaster,cn=config</em> in the example above) into the <em>Enter a new Supplier DN</em> field and press <em>Add</em>. Click <em>Save</em> when you are done.</div>
<h2>Creating a Windows Sync Agreement</h2>
<p>To synchronize with Active Directory, you need an Active Directory user account. In the sample below, the <em>fds</em> user account (cn=fds,dc=acme,dc=local) has been created in Active Directory specifically for that purpose. <a href="http://www.sharepointgenius.com/create-user-windows-server/#domain-account">Learn how to create a new user account in Windows Server.</a></p>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-ds-config-4.png"><img class="preview" alt="389 Management Console" src="/images/centos-5/t-389-ds-ds-config-4.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Right click <em>userRoot</em> and click <em>New Windows Sync Agreement</em>.</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-agreement-name.png"><img class="preview" alt="Agreement Name" src="/images/centos-5/t-389-ds-agreement-name.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. In the <strong>Agreement Name</strong> window, fill in the <em>Name</em> and <em>Description</em> fields and click <em>Next</em>.</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-windows-sync-info.png"><img class="preview" alt="Windows Sync Server Info" src="/images/centos-5/t-389-ds-windows-sync-info.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Fill in  the <strong>Windows Sync Server Info</strong> form and click <em>Next</em> when you are done. See the sample values below.
<div>&nbsp;</div>
<div class="m">
<strong>Windows Domain Information</strong>
<div class="fw2">Windows Domain Name</div><div><em>acme.local</em></div>
<div class="fw2">Sync New Windows Users</div><div><em>On</em></div>
<div class="fw2">Sync New Windows Groups</div><div><em>On</em></div>
<div class="fw2">Windows Subtree</div><div><em>dc=acme,dc=local</em></div>
<div class="fw2">DS Subtree</div><div><em>dc=acme,dc=local</em></div>
<div class="fw2">Domain Controller Host</div><div><em>server.acme.local</em></div>
<div class="fw2">Port Num</div><div><em>389</em></div>
<br />
<strong>Connection</strong>
<div class="fw2">Using encrypted SSL connection</div><div><em>Off</em></div>
<div class="fw2">Bind as</div><div><em>cn=fds,dc=acme,dc=local</em></div>
<div class="fw2">Password</div><div><em>secret</em></div>
</div>
</div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />If you prefer to enable encrypted SSL connection, you need to <a href="/install-ssl-certificate-fds/">install an SSL certificate in 389 Directory Server</a>.</div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />If you want the password changes on 389 Directory Server to replicate into the Active Directory Server you need the following
<ul>
<li>A working Single Master/Multiple Master replication</li>
<li>Encrypted SSL connection should be enabled</li>
<li>The bind account (fds in the example above) must have permission to reset user password. The easiest way to accomplish this is to make the bind account a member of Domain Admins.</li>
</ul>
</div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />If you want the password changes on Active Directory Server to replicate into the 389 Directory Server, see <a href="/synch-ad-password-fds/">Synch Active Directory Password to FDS</a>.</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-sync-summary.png"><img class="preview" alt="Summary" src="/images/centos-5/t-389-ds-sync-summary.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Review the settings in the <strong>Summary</strong> window and click <em>Done</em>.</div>
<h2>Starting the Synch Process</h2>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-ds-config-5.png"><img class="preview" alt="389 Management Console" src="/images/centos-5/t-389-ds-ds-config-5.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Right click the newly created agreement and click <em>Initiate Full Re-synchronization</em>.</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-ds-status-2.png"><img class="preview" alt="389 Management Console" src="/images/centos-5/t-389-ds-ds-status-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Click the <em>Status</em> tab and click the <em>Replication Status</em> to check if the replication has completed.</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-ds-status.png"><img class="preview" alt="389 Management Console" src="/images/centos-5/t-389-ds-ds-status.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Click the <em>Error Logs</em> under the <em>Logs</em> folder to check for any synch errors.</div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />Check out <a href="/active-directory-fds-sync-issues/">Active Directory and 389 Directory Server Synchronization Issues</a> for some of the problems you might encounter while implementing this.</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/ad-fds-sync-howto/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<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>Identity Management for UNIX</title>
		<link>http://www.linuxmail.info/identity-management-unix/</link>
		<comments>http://www.linuxmail.info/identity-management-unix/#comments</comments>
		<pubDate>Sat, 29 Nov 2008 08:45:37 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Active Directory]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=158</guid>
		<description><![CDATA[This article describes how to install and use Identity Management for UNIX.]]></description>
			<content:encoded><![CDATA[<p><strong>Identity Management for UNIX</strong> makes it easy to integrate your Active Directory user and group accounts into Unix by extending Active Directory to support attributes needed in Unix. This article describes how to install and use Identity Management for UNIX.</p>
<span id="more-158"></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>Installing Identity Management for UNIX</h2>
<div class="clearfix steps"><a href="/images/windows-2003/add-remove-program-shortcut.png"><img class="preview" alt="Add Remove Programs" src="/images/windows-2003/t-add-remove-program-shortcut.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Click <em>Start</em>, select <em>Control Panel</em>, and click <em>Add or Remove Programs</em>.</div>
<div class="clearfix steps"><a href="/images/windows-2003/windows-component-ads.png"><img class="preview" alt="Add Remove Programs" src="/images/windows-2003/t-windows-component-ads.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Click <em>Add/Remove Windows Components</em>. Next, select the <em>Active Directory Services</em> component and click <em>Details</em>.</div>
<div class="clearfix steps"><a href="/images/windows-2003/windows-component-ads-2.png"><img class="preview" alt="Add Remove Programs" src="/images/windows-2003/t-windows-component-ads-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Check <em>Identity Management for UNIX</em> and click <em>OK</em>. Click <em>Next</em> to begin installation.</div>
<h2>Using Identity Management for UNIX</h2>
<p>Launch the <strong>Active Directory Users and Computers</strong> tool. When you open the property of a user or group, you should see the new <em>UNIX Attributes</em> tab. You can use it to set the attributes that will be used in a Unix computer.</p>
<p>To make managing accounts even easier, the tool automatically increments the User ID and Group ID so you do not have to keep track of the last ID assigned. And it checks for duplicate IDs so you do not have to worry about accidentally reusing IDs.</p>
<p><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />Remember to follow the naming conventions in Unix. Although you can use spaces when you name a user or group, you will not be able to use later it in Unix.</p>
<div class="clearfix steps"><a href="/images/windows-2003/imu-group-properties.png"><img class="preview" alt="Active Directory Group" src="/images/windows-2003/t-imu-group-properties.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>Group property</div>
<div class="clearfix steps"><a href="/images/windows-2003/imu-user-properties.png"><img class="preview" alt="Active Directory User" src="/images/windows-2003/t-imu-user-properties.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>User property</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/identity-management-unix/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Submitting Certificate Request to Microsoft Certificate Services</title>
		<link>http://www.linuxmail.info/submitting-certificate-request-to-microsoft-certificate-services/</link>
		<comments>http://www.linuxmail.info/submitting-certificate-request-to-microsoft-certificate-services/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 23:51:06 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[SSL/TLS]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=81</guid>
		<description><![CDATA[Learn how to submit a certificate request to the Microsoft Certificate Services.]]></description>
			<content:encoded><![CDATA[<p>If you are using Active Directory, you can use the <strong>Microsoft Certificate Services</strong> to generate an SSL certificate suitable for use in an office environment. This page will show you how to request a certificate from the Microsoft Certificate Services for use in a web server.</p>
<span id="more-81"></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>To issue a certificate for a web server, make sure you have all of the items below.</p>
<ul>
<li>Domain administrator account</li>
<li>Internet Explorer</li>
<li>Windows server installed with Microsoft Certificate Services. <a href="/enable-ldap-ssl-active-directory/">Learn how to install Microsoft Certificate Services in Windows 2003 Server.</a></li>
</ul>
<div class="clearfix steps"><a href="/images/windows-xp/certsrv-welcome.png"><img class="preview" alt="CertSrv Welcome" src="/images/windows-xp/t-certsrv-welcome.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Launch Internet Explorer and connect to your Certificate Services server. The URL is <em>http://server/certsrv</em>, replace <em>server</em> with the name of your server. Next, click <em>Request a certificate</em>.</div>
<div class="clearfix steps"><a href="/images/windows-xp/certsrv-certrqus.png"><img class="preview" alt="CertSrv Request" src="/images/windows-xp/t-certsrv-certrqus.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. In the <strong>Request a Certificate</strong> page, click <em>submit an advanced certificate request</em>.</div>
<div class="clearfix steps"><a href="/images/windows-xp/certsrv-certrqad.png"><img class="preview" alt="CertSrv Advanced Request" src="/images/windows-xp/t-certsrv-certrqad.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. In the <strong>Advanced Certificate Request</strong> page, click <em>Submit a certificate request by using a base-64-encoded CMC or PKCS #10 file or submit a renewal request by using a base-64-encoded PKCS#7 file</em>.</div>
<div class="clearfix steps"><a href="/images/windows-xp/certsrv-certrqxt.png"><img class="preview" alt="CertSrv Submit Request" src="/images/windows-xp/t-certsrv-certrqxt.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. In the <strong>Submit a Certificate Request or Renewal Request</strong> page, paste the content of the request file into the <em>Base-64-encoded certificate request</em> box. Select <em>Web Server</em> in the <em>Certificate Template</em> and click <em>Submit</em>.</div>
<div class="clearfix steps"><a href="/images/windows-xp/certsrv-certfnsh.png"><img class="preview" alt="CertSrv Finish" src="/images/windows-xp/t-certsrv-certfnsh.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. In the <strong>Certificate Issued</strong> page, select <em>Base 64 encoded</em> and click <em>Download certificate</em>.</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/submitting-certificate-request-to-microsoft-certificate-services/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SquirrelMail Active Directory Change Password Howto</title>
		<link>http://www.linuxmail.info/squirrelmail-active-directory-change-password-howto/</link>
		<comments>http://www.linuxmail.info/squirrelmail-active-directory-change-password-howto/#comments</comments>
		<pubDate>Mon, 19 May 2008 15:34:27 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[SquirrelMail]]></category>

		<guid isPermaLink="false">http://www.linux-mail.info/squirrelmail-active-directory-change-password-howto/</guid>
		<description><![CDATA[Shows how to change an Active Directory password using the SquirrelMail Change Password plugin.]]></description>
			<content:encoded><![CDATA[<p>This article will show you how to configure the <strong>ldap-chpasswd</strong> included in the <a href="/change_passwd/">SquirrelMail Change Password plugin</a>. The ldap-chpasswd can change an Active Directory or LDAP server password. If you have not yet installed this plugin, see the <a href="/squirrelmail-change-password-howto/">SquirrelMail Change Password Howto</a>.</p>
<span id="more-74"></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>

<div class="clearfix steps"><a href="/images/windows-2003/certificate-authority-certificate.png"><img class="preview" alt="Enable SSL in Active Directory" src="/images/windows-2003/t-certificate-authority-certificate.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Make sure your <a href="/enable-ldap-ssl-active-directory/">Active Directory is enabled for SSL</a>. This is required in Active Directory to change the user password using LDAPS.</div>
<div class="clearfix steps"><a href="/images/centos-5/installing-rpmforge.png"><img class="preview" alt="Install RPMForge" src="/images/centos-5/t-installing-rpmforge.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. If you have not yet configured the RPMForge yum repository, see <a href="/how-to-install-clam-antivirus-centos-5/#rpmforge">Add RPMForge to your Yum repository</a>.</div>
<div class="clearfix steps"><a href="/images/centos-5/yum-install-perl-ldap.png"><img class="preview" alt="Yum Install Perl" src="/images/centos-5/t-yum-install-perl-ldap.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Type in <em>yum install perl perl-ldap</em> from a terminal window. This will install the ldap-chpasswd prerequisites.</div>
<div class="clearfix steps"><a href="/images/centos-5/terminal-ldap-chpasswd.png"><img class="preview" alt="ldap-chpasswd" src="/images/centos-5/t-terminal-ldap-chpasswd.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Go to the <em>/usr/share/squirrelmail/plugin/change_passwd</em> directory. Check if ldap-chpasswd runs by typing in <tt>./ldap-chpasswd</tt>. You should see your autodetected settings.</div>
<div class="clearfix steps"><a href="/images/centos-5/edit-ldap-chpasswd-cfg.png"><img class="preview" alt="ldap-chpasswd" src="/images/centos-5/t-edit-ldap-chpasswd-cfg.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. If any of the autodetected settings are incorrect, copy the file <em>ldap-chpasswd.cfg.sample</em> and save it as <em>ldap-chpasswd.cfg</em>. Next edit the <em>ldap-chpasswd.cfg</em> file and set the correct values.</div>
<div class="clearfix steps"><a href="/images/centos-5/ldap-chpasswd-search.png"><img class="preview" alt="ldap-chpasswd" src="/images/centos-5/t-ldap-chpasswd-search.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>6. Check your configuration by typing in <tt>./ldap-chpasswd user password</tt>. Replace <em>user</em> and <em>password</em> with a valid Active Directory user name and password. You should see the distinguished name of the user.</div>
<div class="clearfix steps"><a href="/images/centos-5/edit-change-passwd-config-2.png"><img class="preview" alt="Edit config.php" src="/images/centos-5/t-edit-change-passwd-config-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>7. Edit <em>config.php</em> and set <em>$overridePathToChpasswd</em> to <em>ldap-chpasswd</em>. That&#8217;s it, you should now be able to change your Active Directory password from SquirrelMail.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/squirrelmail-active-directory-change-password-howto/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>
