<?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; LDAP</title>
	<atom:link href="http://www.linuxmail.info/category/ldap/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxmail.info</link>
	<description>Rapidly deploy Linux based mail solutions today</description>
	<lastBuildDate>Sat, 13 Feb 2010 23:39:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using LDAP as NIS Replacement</title>
		<link>http://www.linuxmail.info/ldap-nis-replace/</link>
		<comments>http://www.linuxmail.info/ldap-nis-replace/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 17:24:20 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[389 Directory Server]]></category>
		<category><![CDATA[LDAP]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=372</guid>
		<description><![CDATA[This article describes how to use the 389 Directory Server to function as a Network Information Service by showing how to store the list of service as an example.]]></description>
			<content:encoded><![CDATA[<p>All the information you can store in a <em>Network Information Service (NIS)</em> can also be stored in an LDAP server. This article describes how to use the 389 Directory Server to function as a Network Information Service by showing how to store the list of service as an example.</p>
<span id="more-372"></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>Creating an LDAP entry</h2>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-create-new-org-unit-services.png"><img class="preview" alt="Create Organizational Unit" src="/images/centos-5/t-389-ds-create-new-org-unit-services.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. <a href="/389-management-console-howto/#create-org-unit">Create a new organizational unit</a> called <em>Services</em> that will hold all your services.</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-create-new-others.png"><img class="preview" alt="Create Object" src="/images/centos-5/t-389-ds-create-new-others.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Select the Services organizational unit. Right click an empty space in the right pane, select <em>New</em> then click <em>Other</em>.</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-new-object-ipservice.png"><img class="preview" alt="New Object" src="/images/centos-5/t-389-ds-new-object-ipservice.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. In the <strong>New Object</strong> window, select <em>ipservice</em> and click <em>OK</em>.</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-new-ipserviceprotocol.png"><img class="preview" alt="Property Editor" src="/images/centos-5/t-389-ds-new-ipserviceprotocol.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Fill in the <em>Full name</em>, <em>ipserviceport</em> and <em>ipserviceprotocol</em> and click the <em>Change</em> button.</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-ipservice-change-naming-attribute.png"><img class="preview" alt="Change Naming Attribute" src="/images/centos-5/t-389-ds-ipservice-change-naming-attribute.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. In the <strong>Change Naming Attribute</strong> window, check <em>cn</em> and uncheck <em>ipserviceprotocol</em>. Click the <em>OK</em> button to close the Change Naming window and click <em>OK</em> again to close the Property Editor window.</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-directory-services.png"><img class="preview" alt="Directory Services" src="/images/centos-5/t-389-ds-directory-services.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>6. You should now have a service entry.</div>
<h2>Configuring the Client</h2>
<div class="clearfix steps"><a href="/images/centos-5/edit-ldap-conf-services.png"><img class="preview" alt="Edit ldap.conf" src="/images/centos-5/t-edit-ldap-conf-services.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Edit the file <em>/etc/ldap.conf</em> and update at least the items below with the appropriate values for your environment.
<pre class="steps">
host ldap.acme.local
base dc=acme,dc=local
nss_base_services ou=Services,dc=acme,dc=local?one
</pre>
</div>
<div class="clearfix steps"><a href="/images/centos-5/edit-nsswitch-conf.png"><img class="preview" alt="Edit nsswitch.conf" src="/images/centos-5/t-edit-nsswitch-conf.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Edit the file <em>/etc/nsswitch.conf</em> and add <em>ldap</em> in the <em>services</em> entry. This will tell the system to also look in the LDAP server when enumerating the list of service.</div>
<div class="clearfix steps"><a href="/images/centos-5/getent-services.png"><img class="preview" alt="Edit nsswitch.conf" src="/images/centos-5/t-getent-services.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. To test, type in the command below. You should be able to see the entry you added.
<pre class="steps">
getent services
</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/ldap-nis-replace/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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]]></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>JXplorer Setup Howto</title>
		<link>http://www.linuxmail.info/jxplorer-setup-howto/</link>
		<comments>http://www.linuxmail.info/jxplorer-setup-howto/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 09:00:44 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[LDAP]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=361</guid>
		<description><![CDATA[This article describes to how install the JXplorer open source ldap browser.]]></description>
			<content:encoded><![CDATA[<p><strong>JXplorer</strong> is a standards compliant general purpose open source ldap browser that can be used to read and search any ldap directory, or any X500 directory with an ldap interface. This article describes to how install the JXplorer open source ldap browser.</p>
<span id="more-361"></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 JXplorer</h2>
<div class="clearfix steps"><a href="/images/centos-5/terminal-java-version.png"><img class="preview" alt="Java" src="/images/centos-5/t-terminal-java-version.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. <a href="/java-jre-setup-howto/">Install the Java Runtime Environment.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/jxplorer-download.png"><img class="preview" alt="JXplorer download" src="/images/centos-5/t-jxplorer-download.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Download the JXplorer deploy bz2 archive at <a href="http://sourceforge.net/projects/jxplorer/files/">http://sourceforge.net/projects/jxplorer/files/</a></div>
<div class="clearfix steps"><a href="/images/centos-5/jxplorer-tar-bz2.png"><img class="preview" alt="JXplorer Archive" src="/images/centos-5/t-jxplorer-tar-bz2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Double click the downloaded file to launch the <strong>Archive Manager</strong>.</div>
<div class="clearfix steps"><a href="/images/centos-5/jxplorer-tar-bz2-archive.png"><img class="preview" alt="Archive Manager" src="/images/centos-5/t-jxplorer-tar-bz2-archive.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Click the <em>Extract</em> button to launch the <strong>Extract</strong> window.</div>
<div class="clearfix steps"><a href="/images/centos-5/jxplorer-tar-bz2-extract.png"><img class="preview" alt="Destination" src="/images/centos-5/t-jxplorer-tar-bz2-extract.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. Change the destination folder by clicking on <em>Desktop</em>. In the popup menu, select <em>Other….</em></div>
<div class="clearfix steps"><a href="/images/centos-5/jxplorer-tar-bz2-dest.png"><img class="preview" alt="Destination" src="/images/centos-5/t-jxplorer-tar-bz2-dest.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>6. Click the notepad button and in the Location field type in <em>/opt/</em> and click Open.</div>
<div class="clearfix steps"><a href="/images/centos-5/jxplorer-tar-bz2-extract2.png"><img class="preview" alt="Extract" src="/images/centos-5/t-jxplorer-tar-bz2-extract2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>7. Click the <em>Extract</em> button to start extracting</div>
<div class="clearfix steps"><a href="/images/centos-5/jxplorer-chmod.png"><img class="preview" alt="JXplorer chmod" src="/images/centos-5/t-jxplorer-chmod.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>8. Type in the commands below in a terminal window to give the proper permission to JXplorer.</div>
<h2>Starting JXplorer</h2>
<div class="clearfix steps"><a href="/images/centos-5/jxplorer-sh.png"><img class="preview" alt="JXplorer terminal" src="/images/centos-5/t-jxplorer-sh.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Type in the commands below in a terminal window to launch JXplorer.
<pre class="steps">
cd /opt/jxplorer
./jxplorer.sh
</pre>
</div>
<div class="clearfix steps"><a href="/images/centos-5/jxplorer.png"><img class="preview" alt="JXplorer" src="/images/centos-5/t-jxplorer.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. In <strong>JXplorer</strong>, click the connect button located in the upper left of the window.</div>
<div class="clearfix steps"><a href="/images/centos-5/jxplorer-connect.png"><img class="preview" alt="JXplorer Connect" src="/images/centos-5/t-jxplorer-connect.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Fill in the connection information and click <em>Ok</em>.</div>
<div class="clearfix steps"><a href="/images/centos-5/jxplorer-acme.png"><img class="preview" alt="JXplorer" src="/images/centos-5/t-jxplorer-acme.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. That&#8217;s it, it&#8217;s working.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/jxplorer-setup-howto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LDAP Authentication in RHEL/CentOS 5</title>
		<link>http://www.linuxmail.info/ldap-authentication-centos-5/</link>
		<comments>http://www.linuxmail.info/ldap-authentication-centos-5/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 03:26:09 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[CentOS 5]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 5]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=251</guid>
		<description><![CDATA[This articles describes how to use LDAP authentication in Red Hat Enterprise Linux 5 or CentOS 5.]]></description>
			<content:encoded><![CDATA[<p>An LDAP server like the 389 Directory Server and OpenLDAP can be used to centralize the users and authentication information. This articles describes how to use LDAP based authentication in Red Hat Enterprise Linux 5 or CentOS 5.</p>
<span id="more-251"></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>The attributes below are required to be filled up to be able to use LDAP authentication.</p>
<ul>
<li><em>uid</em> &#8211; User name</li>
<li><em>userPassword</em> &#8211; User password</li>
<li><em>uidNumber</em> &#8211; UID</li>
<li><em>gidNumber</em> &#8211; GID</li>
<li><em>homeDirectory</em> &#8211; Home directory</li>
<li><em>loginShell</em> &#8211; Login shell</li>
</ul>
<div class="clearfix steps"><a href="/images/centos-5/fds-posix-user.png"><img class="preview" alt="Posix User" src="/images/centos-5/t-fds-posix-user.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>If you are using <strong>Fedora Directory Server</strong>, it has a great GUI tool for managing the required Posix attributes.</div>
<h2>Setup Authentication</h2>
<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-authentication.png"><img class="preview" alt="Authentication" src="/images/centos-5/t-auth-config-authentication.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Click the <em>Authentications</em> tab and check <em>Enable LDAP Support</em>.</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>5. 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/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>6. Type in <tt>getent passwd</tt> in a terminal window. You should see your LDAP user accounts.</div>
<p>Finally, reboot your computer. You should now be able to login using LDAP user accounts.</p>
<p><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />If your LDAP server requires authentication or its attributes does not conform to the RFC 2307 specification, you need to edit the file <em>/etc/ldap.conf</em> to make this work. See <a href="/active-directory-single-sign-on/">Active Directory Authentication</a> for an example.</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/ldap-authentication-centos-5/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>389 Directory Server Howto for RHEL/CentOS 5</title>
		<link>http://www.linuxmail.info/389-directory-server-howto-centos-5/</link>
		<comments>http://www.linuxmail.info/389-directory-server-howto-centos-5/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 15:30:54 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[389 Directory Server]]></category>
		<category><![CDATA[LDAP]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=232</guid>
		<description><![CDATA[This article describes how to install and use the 389 Directory Server.]]></description>
			<content:encoded><![CDATA[<p><strong>389 Directory Server</strong>, formerly called the <strong>Fedora Directory Server</strong>, is an enterprise-class open source LDAP server for Linux. 389 Directory Server is very mature and very powerful, below are some of its features.</p>
<span id="more-232"></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>

<ul>
<li>Has graphical tools to manage users, groups, and server configurations</li>
<li>Supports Active Directory synchronization</li>
<li>Supports multi-master replication</li>
<li>Supports secure authentication and communication</li>
<li>Supports LDAP version 3</li>
<li>LDAP based update of schema, configurations, and access control information</li>
</ul>
<p>This article describes how to install and use the 389 Directory Server.</p>
<h2>How to install Linux</h2>
<p>You can use either <a href="http://www.redhat.com">Red Hat Enterprise Linux 5</a> or <a href="http://www.centos.org">CentOS 5</a>. RHEL 5 can be purchased from <a href="http://www.redhat.com">Red Hat</a> and comes with support. CentOS 5 on the other hand can be downloaded <a href="http://isoredirect.centos.org/centos/5/isos/">here</a>.</p>
<div class="clearfix steps"><a href="/images/centos-5/boot.png"><img class="preview" alt="Boot" src="/images/centos-5/t-boot.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. <a href="/how-to-install-centos-5-linux/">How to install CentOS 5.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/welcome2.png"><img class="preview" alt="Welcome" src="/images/centos-5/t-welcome2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. <a href="/how-to-setup-centos-5-linux/">How to setup CentOS 5.</a></div>
<h2>How to install and configure the 389 Directory Server</h2>
<p>This section is about installing 389 Directory Server and using its graphical management tool.</p>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-console-login.png"><img class="preview" alt="389 Directory Server" src="/images/centos-5/t-389-ds-console-login.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. <a href="/389-directory-server-setup-howto-centos-5/">How to setup the 389 Directory Server.</a></div>
<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>2. <a href="/389-management-console-howto/">How to use the 389 Management Console.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-ds-config-plugins.png"><img class="preview" alt="389 Management Console" src="/images/centos-5/t-389-ds-ds-config-plugins.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. <a href="/389-directory-server-plugins-howto/">How to configure 389 Directory Server plug-ins.</a></div>
<h2>Synchronizing with Active Directory</h2>
<p>This section describes how to synchronize with Active Directory. With this feature, you can reduce your Windows Server license requirements for your LDAP applications.</p>
<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. <a href="/ad-fds-sync-howto/">How to synchronize with Active Directory.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/t-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>2. <a href="/389-directory-active-directory-ssl-synch/">How to synchronize via SSL with Active Directory.</a> This is needed to replicate password changes in 389 DS to Active Directory.</div>
<div class="clearfix steps"><a href="/images/windows-2003/reset-user-password.png"><img class="preview" alt="Active Directory Users and Computers" src="/images/windows-2003/t-reset-user-password.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. <a href="/synch-ad-password-fds/">How to replicate Active Directory password changes to 389 Directory Server.</a></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>Active Directory synchronization is not yet perfect. Here are some <a href="/active-directory-fds-sync-issues/">issues you need to be aware of when synchronizing with 389 Directory Server with Active Directory</a>.</div>
<h2>Centralizing Information</h2>
<p>The 389 Directory Server can be used to centralize your users, groups, hosts, services, etc.</p>
<div class="clearfix steps"><a href="/images/centos-5/fds-posix-user.png"><img class="preview" alt="LDAP Authentication" src="/images/centos-5/t-fds-posix-user.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/ldap-authentication-centos-5/">How to use LDAP as a centralized users and authentication system</a></div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-directory-services.png"><img class="preview" alt="LDAP NIS" src="/images/centos-5/t-389-ds-directory-services.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/ldap-nis-replace/">How to use LDAP as a Network Information System (NIS) replacement</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/389-directory-server-howto-centos-5/feed/</wfw:commentRss>
		<slash:comments>1</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>389 Directory Server Setup Howto for RHEL/CentOS 5</title>
		<link>http://www.linuxmail.info/389-directory-server-setup-howto-centos-5/</link>
		<comments>http://www.linuxmail.info/389-directory-server-setup-howto-centos-5/#comments</comments>
		<pubDate>Sun, 25 May 2008 08:29:30 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[389 Directory Server]]></category>
		<category><![CDATA[CentOS 5]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 5]]></category>

		<guid isPermaLink="false">http://www.linux-mail.info/fedora-directory-server-setup-howto-centos-5/</guid>
		<description><![CDATA[How to setup the 389 Directory Server in Red Hat Enterprise Linux 5 or CentOS 5]]></description>
			<content:encoded><![CDATA[<p><strong>389 Directory Server</strong> formerly the <strong>Fedora Directory Server</strong> is an enterprise-class open source LDAP server for Linux. This article will show you how to setup the 389 Directory Server.</p>
<span id="more-78"></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"><img class="icon32x32 left" alt="Important" src="/images/emblem-important.png" />Make sure that your host name is properly registered in your DNS or /etc/hosts file. Check if your hostname is registered properly by executing
<pre class="steps">
ping mail.acme.local
</pre>
in a terminal window, replace mail.acme.local with your own host name. If it returns 127.0.0.1 or unknown host that means it is not registered properly. </div>
<h2>Installing 389 Directory Server</h2>
<div class="clearfix steps"><a href="/images/centos-5/yum-update.png"><img class="preview" alt="Terminal" src="/images/centos-5/t-yum-update.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">1. Type in the command below to update your Red Hat Enterprise Linux 5 or CentOS 5 to version 5.3 or higher.
<pre class="steps">
yum update
</pre>
Version 5.3 and above is required to run the 389 Directory Server.
</div>
</div>
<div class="clearfix steps"><a href="/images/centos-5/terminal-yum-fds.png"><img class="preview" alt="Terminal" src="/images/centos-5/t-terminal-yum-fds.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">2. Install 389 Directory Server by typing in the commands below in a terminal window. This is the content of <a href="/files/fedora-ds.repo">fedora-ds.repo</a>.
<pre class="steps">
cd /etc/yum.repos.d
wget www.linuxmail.info/files/fedora-ds.repo
yum install fedora-ds openldap-clients
</pre>
</div>
</div>
<div class="clearfix steps"><a href="/images/centos-5/create-user-fds.png"><img class="preview" alt="Create New User" src="/images/centos-5/t-create-user-fds.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Create a new user and group named <em>fds</em>. This account will be used to run the fds service. <a href="/how-to-add-remove-user-accounts-centos-5/">Learn how to create a new user.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/terminal-setup-ds-admin.png"><img class="preview" alt="Terminal" src="/images/centos-5/t-terminal-setup-ds-admin.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Type in <tt>setup-ds-admin.pl</tt> in a terminal window to setup 389 Directory Server. Most of the time, the default is simply accepted indicated by the <strong>&crarr;</strong> in the sample session below.</div>
<pre class="steps">
[root@mail ~]# <span class="h">setup-ds-admin.pl</span>

==============================================================================
This program will set up the 389 Directory and Administration Servers.

It is recommended that you have "root" privilege to set up the software.
Tips for using this program:
  - Press "Enter" to choose the default and go to the next screen
  - Type "Control-B" then "Enter" to go back to the previous screen
  - Type "Control-C" to cancel the setup program

Would you like to continue with set up? [yes]: <span class="h">&crarr;</span>

==============================================================================
BY SETTING UP AND USING THIS SOFTWARE YOU ARE CONSENTING TO BE BOUND BY
AND ARE BECOMING A PARTY TO THE AGREEMENT FOUND IN THE
LICENSE.TXT FILE. IF YOU DO NOT AGREE TO ALL OF THE TERMS
OF THIS AGREEMENT, PLEASE DO NOT SET UP OR USE THIS SOFTWARE.

Do you agree to the license terms? [no]: <span class="h">yes</span>

==============================================================================
Your system has been scanned for potential problems, missing patches,
etc.  The following output is a report of the items found that need to
be addressed before running this software in a production
environment.

389 Directory Server system tuning analysis version 10-AUGUST-2007.



NOTICE : System is i686-unknown-linux2.6.18-53.el5 (1 processor).

WARNING: 376MB of physical memory is available on the system. 1024MB is recommended for best performance on large production system.

NOTICE : The net.ipv4.tcp_keepalive_time is set to 7200000 milliseconds
(120 minutes).  This may cause temporary server congestion from lost
client connections.

WARNING: There are only 1024 file descriptors (hard limit) available, which
limit the number of simultaneous connections.  

WARNING: There are only 1024 file descriptors (soft limit) available, which
limit the number of simultaneous connections.  

Would you like to continue? [no]: <span class="h">yes</span>

==============================================================================
Choose a setup type:

   1. Express
       Allows you to quickly set up the servers using the most
       common options and pre-defined defaults. Useful for quick
       evaluation of the products.

   2. Typical
       Allows you to specify common defaults and options.

   3. Custom
       Allows you to specify more advanced options. This is 
       recommended for experienced server administrators only.

To accept the default shown in brackets, press the Enter key.

Choose a setup type [2]: <span class="h">&crarr;</span>

==============================================================================
Enter the fully qualified domain name of the computer
on which you're setting up server software. Using the form
&lt;hostname&gt;.&lt;domainname&gt;
Example: eros.example.com.

To accept the default shown in brackets, press the Enter key.

Computer name [mail.acme.local]: <span class="h">&crarr;</span>

==============================================================================
The servers must run as a specific user in a specific group.
It is strongly recommended that this user should have no privileges
on the computer (i.e. a non-root user).  The setup procedure
will give this user/group some permissions in specific paths/files
to perform server-specific operations.

If you have not yet created a user and group for the servers,
create this user and group using your native operating
system utilities.

System User [nobody]: <span class="h">fds</span>
System Group [nobody]: <span class="h">fds</span>

==============================================================================
Server information is stored in the configuration directory server.
This information is used by the console and administration server to
configure and manage your servers.  If you have already set up a
configuration directory server, you should register any servers you
set up or create with the configuration server.  To do so, the
following information about the configuration server is required: the
fully qualified host name of the form
&lt;hostname&gt;.&lt;domainname&gt;(e.g. hostname.example.com), the port number
(default 389), the suffix, the DN and password of a user having
permission to write the configuration information, usually the
configuration directory administrator, and if you are using security
(TLS/SSL).  If you are using TLS/SSL, specify the TLS/SSL (LDAPS) port
number (default 636) instead of the regular LDAP port number, and
provide the CA certificate (in PEM/ASCII format).

If you do not yet have a configuration directory server, enter 'No' to
be prompted to set up one.

Do you want to register this software with an existing
configuration directory server? [no]: <span class="h">&crarr;</span>

==============================================================================
Please enter the administrator ID for the configuration directory
server.  This is the ID typically used to log in to the console.  You
will also be prompted for the password.

Configuration directory server
administrator ID [admin]: <span class="h">&crarr;</span>
Password: 
Password (confirm): 

==============================================================================
The information stored in the configuration directory server can be
separated into different Administration Domains.  If you are managing
multiple software releases at the same time, or managing information
about multiple domains, you may use the Administration Domain to keep
them separate.

If you are not using administrative domains, press Enter to select the
default.  Otherwise, enter some descriptive, unique name for the
administration domain, such as the name of the organization
responsible for managing the domain.

Administration Domain [acme.local]: <span class="h">&crarr;</span>

==============================================================================
The standard directory server network port number is 389.  However, if
you are not logged as the superuser, or port 389 is in use, the
default value will be a random unused port number greater than 1024.
If you want to use port 389, make sure that you are logged in as the
superuser, that port 389 is not in use.

Directory server network port [389]: <span class="h">&crarr;</span>

==============================================================================
Each instance of a directory server requires a unique identifier.
This identifier is used to name the various
instance specific files and directories in the file system,
as well as for other uses as a server instance identifier.

Directory server identifier [mail]: <span class="h">&crarr;</span>

==============================================================================
The suffix is the root of your directory tree.  The suffix must be a valid DN.
It is recommended that you use the dc=domaincomponent suffix convention.
For example, if your domain is example.com,
you should use dc=example,dc=com for your suffix.
Setup will create this initial suffix for you,
but you may have more than one suffix.
Use the directory server utilities to create additional suffixes.

Suffix [dc=acme, dc=local]: <span class="h">&crarr;</span>

==============================================================================
Certain directory server operations require an administrative user.
This user is referred to as the Directory Manager and typically has a
bind Distinguished Name (DN) of cn=Directory Manager.
You will also be prompted for the password for this user.  The password must
be at least 8 characters long, and contain no spaces.

Directory Manager DN [cn=Directory Manager]: <span class="h">&crarr;</span>
Password: 
Password (confirm): 

==============================================================================
The Administration Server is separate from any of your web or application
servers since it listens to a different port and access to it is
restricted.

Pick a port number between 1024 and 65535 to run your Administration
Server on. You should NOT use a port number which you plan to
run a web or application server on, rather, select a number which you
will remember and which will not be used for anything else.

Administration port [9830]: <span class="h">&crarr;</span>

==============================================================================
The interactive phase is complete.  The script will now set up your
servers.  Enter No or go Back if you want to change something.

Are you ready to set up your servers? [yes]: <span class="h">&crarr;</span>
Creating directory server . . .
Your new DS instance 'mail' was successfully created.
Creating the configuration directory server . . .
Beginning Admin Server creation . . .
Creating Admin Server files and directories . . .
Updating adm.conf . . .
Updating admpw . . .
Registering admin server with the configuration directory server . . .
Updating adm.conf with information from configuration directory server . . .
Updating the configuration for the httpd engine . . .
Starting admin server . . .
The admin server was successfully started.
Admin server was successfully created, configured, and started.
Exiting . . .
Log file is '/tmp/setupcT78dr.log'

[root@mail ~]# 
</pre>
<div id="setup-ssl" class="clearfix steps"><a href="/images/centos-5/terminal-setup-fds-ssl.png"><img class="preview" alt="Terminal" src="/images/centos-5/t-terminal-setup-fds-ssl.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. Setup the 389 Directory Server SSL by executing the commands below in a terminal window</div>
<div class="clearfix steps">
<pre class="steps scroll">
wget http://github.com/richm/scripts/tree/master%2Fsetupssl2.sh?raw=true -O setupssl2.sh
chmod +x setupssl2.sh
./setupssl2.sh /etc/dirsrv/slapd-<strong>mail</strong>
</pre>
Replace <strong>mail</strong> with your own server instance. During setup, you will be asked for the password of directory manager.
</div>
<div class="clearfix steps"><a href="/images/centos-5/service-config.png"><img class="preview" alt="CentOS 5 Service Configuration" src="/images/centos-5/t-service-config.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>6. Restart the <em>dirsrv</em>, <em>dirsrv-admin</em> and <em>httpd</em> service. <a href="/how-to-start-stop-services-centos-5/">Learn how to stop and start services here.</a></div>
<h2 id="fds-admin">Administering 389 Directory Server</h2>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-console-login.png"><img class="preview" alt="FDS Console Login" src="/images/centos-5/t-389-ds-console-login.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. From a terminal window, type in <tt>389-console</tt>. This will launch the <strong>389 Management Console Login</strong> window.
<div>&nbsp;</div>
<div class="m">
    <div class="fw">User ID</div><div><em>cn=directory manager</em></div>
    <div class="fw">Password</div><div><em>the directory manager password</em></div>
    <div class="fw">Administration URL</div><div><em>localhost:9830</em></div>
    <div>&nbsp;</div>
The values above assumes you have used the default values.
</div>
</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>2. Success. <a href="/389-management-console-howto/">Learn more about using the 389 Management Console</a>.</div>
<h2>Related Pages</h2>
<div class="clearfix steps"><a href="/images/centos-5/jxplorer-ad.png"><img class="preview" alt="JXplorer Active Directory" src="/images/centos-5/t-jxplorer-ad.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/postfix-dovecot-ldap-centos-5/">Active Directory/LDAP virtual users in Postfix and Dovecot</a></div>
<div class="clearfix steps"><a href="/images/centos-5/fds-ds-config-5.png"><img class="preview" alt="Fedora Management Console" src="/images/centos-5/t-fds-ds-config-5.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/ad-fds-sync-howto/">Active Directory and Fedora Directory Server Sychronization Howto</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/389-directory-server-setup-howto-centos-5/feed/</wfw:commentRss>
		<slash:comments>68</slash:comments>
		</item>
		<item>
		<title>SquirrelMail LDAP Change Password Howto</title>
		<link>http://www.linuxmail.info/squirrelmail-ldap-change-password-howto/</link>
		<comments>http://www.linuxmail.info/squirrelmail-ldap-change-password-howto/#comments</comments>
		<pubDate>Mon, 19 May 2008 15:36:01 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[LDAP]]></category>
		<category><![CDATA[SquirrelMail]]></category>

		<guid isPermaLink="false">http://www.linux-mail.info/squirrelmail-ldap-change-password-howto/</guid>
		<description><![CDATA[Shows how to change an LDAP password using the SquirrelMail Change Password plugin.]]></description>
			<content:encoded><![CDATA[<p>This page 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 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-77"></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/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>1. 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>2. 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>3. Go to the <em>/usr/share/squirrelmail/plugin/change_passwd</em> directory. Check if ldap-chpasswd runs by typing in <tt>./ldap-chpasswd</tt></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><div class="m">4. 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 value of the keys below.
<pre class="steps">
$isActiveDirectory = 0;
$hosts = "localhost";
$domain = "acme.local";
$searchBase = "dc=acme,dc=local";
$bindDN = "cn=manager,dc=acme,dc=local";
$bindPW = "secret";
$userAttr = "uid";
</pre>
Values above are samples only, replace them with values appropriate for your setup.
</div>
</div>
<div class="clearfix steps"><a href="/images/centos-5/ldap-chpasswd-search-2.png"><img class="preview" alt="ldap-chpasswd" src="/images/centos-5/t-ldap-chpasswd-search-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. Check your configuration by typing in <tt>./ldap-chpasswd user</tt>. Replace <em>user</em> and with a LDAP user name. 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>6. Edit the <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 LDAP password from SquirrelMail.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/squirrelmail-ldap-change-password-howto/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Enable LDAP SSL with Active Directory in Windows 2003</title>
		<link>http://www.linuxmail.info/enable-ldap-ssl-active-directory/</link>
		<comments>http://www.linuxmail.info/enable-ldap-ssl-active-directory/#comments</comments>
		<pubDate>Mon, 19 May 2008 15:22:36 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://www.linux-mail.info/enable-ldap-ssl-active-directory/</guid>
		<description><![CDATA[This article will show you how to install the Certificate Services in Windows Server 2003 to enable LDAP SSL in Active Directory.]]></description>
			<content:encoded><![CDATA[<p>Enabling SSL in Active Directory allows clients to communicate securely with AD servers. This is also required to allow a user&#8217;s Active Directory password to be changed programmatically using LDAP.</p>
<span id="more-76"></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>This article will show you how to install the <strong>Certificate Services</strong> in Windows 2003 to enable LDAP SSL in Active Directory.</p>
<p><img class="icon32x32 left" alt="Important" src="/images/emblem-important.png" />Before beginning, make sure the Internet Information Server (IIS) is installed in your server.</p>
<h2>Installing the Certificate Services</h2>
<div class="clearfix steps"><a href="/images/windows-2003/add-remove-program-shortcut.png"><img class="preview" alt="Add or Remove Programs Shortcut" 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-wizard.png"><img class="preview" alt="Windows Components" src="/images/windows-2003/t-windows-component-wizard.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. In the <strong>Add or Remove Programs</strong> window, click <em>Add/Remove Windows Components</em>, check the <em>Certificate Services</em> and click <em>Next</em>.</div>
<div class="clearfix steps"><a href="/images/windows-2003/select-ca-type.png"><img class="preview" alt="CA Type" src="/images/windows-2003/t-select-ca-type.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Click <em>Next</em> in the <em>CA Type</em> page.</div>
<div class="clearfix steps"><a href="/images/windows-2003/ca-identifying-information.png"><img class="preview" alt="CA Identifying Information" src="/images/windows-2003/t-ca-identifying-information.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Fill up the <em>Common name for this CA</em> and click <em>Next</em>.</div>
<div class="clearfix steps"><a href="/images/windows-2003/certificate-database-settings.png"><img class="preview" alt="Certificate Database Settings" src="/images/windows-2003/t-certificate-database-settings.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. Click <em>Next</em> in the <em>Certificate Database Settings</em> page.</div>
<div class="clearfix steps"><a href="/images/windows-2003/ca-installing.png"><img class="preview" alt="Configuring Components" src="/images/windows-2003/t-ca-installing.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>6. The Certificate Services will now be installed.</div>
<div class="clearfix steps"><a href="/images/windows-2003/ca-finished.png"><img class="preview" alt="Windows Components Wizard Finished" src="/images/windows-2003/t-ca-finished.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>7. Click <em>Finish</em> and restart your server.</div>
<h2>Configuring Automatic Certificate Request for Domain Controllers</h2>
<div class="clearfix steps"><a href="/images/windows-2003/dc-security-policy-shortcut.png"><img class="preview" alt="Domain Controller Security Policy Shortcut" src="/images/windows-2003/t-dc-security-policy-shortcut.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Click <em>Start</em>, select <em>Administrative Tools</em> and click <em>Domain Controller Security Policy</em>.</div>
<div class="clearfix steps"><a href="/images/windows-2003/dc-sec-pol-pkp.png"><img class="preview" alt="Default Domain Controller Security Settings" src="/images/windows-2003/t-dc-sec-pol-pkp.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. In the <strong>Default Domain Controller Security Settings</strong> window, click the <em>Public Key Policies</em> folder.</div>
<div class="clearfix steps"><a href="/images/windows-2003/dc-sec-pol-pkp-2.png"><img class="preview" alt="Default Domain Controller Security Settings" src="/images/windows-2003/t-dc-sec-pol-pkp-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Right click <em>Automatic Certificate Request Settings</em>, select <em>New</em> and click <em>Automatic Certificate Request</em>.</div>
<div class="clearfix steps"><a href="/images/windows-2003/acr-setup-wizard.png"><img class="preview" alt="Automatic Certificate Request Setup Wizard" src="/images/windows-2003/t-acr-setup-wizard.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Click <em>Next</em> in the <strong>Automatic Certificate Request Setup Wizard</strong>.</div>
<div class="clearfix steps"><a href="/images/windows-2003/acr-setup-wizard-ct.png"><img class="preview" alt="Automatic Certificate Request Setup Wizard Certificate Template" src="/images/windows-2003/t-acr-setup-wizard-ct.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. Select <em>Domain Controller</em> in the <strong>Certificate Template</strong> page and click <em>Next</em>.</div>
<div class="clearfix steps"><a href="/images/windows-2003/acr-setup-wizard-finish.png"><img class="preview" alt="Automatic Certificate Request Setup Wizard Finish" src="/images/windows-2003/t-acr-setup-wizard-finish.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>6. Click <em>Finish</em> and reboot your server.</div>
<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>7. Check if automatic certificate request worked by using the <strong>Certificate Authority</strong> app located in <em>Start > Administrative Tools</em>. Check the <em>Issued Certificates</em> folder if your server is there.</div>
<h2>Related Pages</h2>
<div class="clearfix steps"><a href="/images/windows-2003/certificate-wizard-4.png"><img class="preview" alt="Export SSL Certificate" src="/images/windows-2003/t-certificate-wizard-4.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/export-ssl-certificate-windows-2003/">How to Export an SSL Certificate in Windows Server 2003.</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/enable-ldap-ssl-active-directory/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>OpenLDAP Setup Howto for RHEL/CentOS 5</title>
		<link>http://www.linuxmail.info/openldap-setup-howto/</link>
		<comments>http://www.linuxmail.info/openldap-setup-howto/#comments</comments>
		<pubDate>Sat, 19 Apr 2008 01:44:16 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[CentOS 5]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 5]]></category>

		<guid isPermaLink="false">http://www.linux-mail.info/openldap-setup-howto/</guid>
		<description><![CDATA[How to setup OpenLDAP LDAP server in Red Hat Enterprise Linux 5 or CentOS 5 suitable for a mail server and address book.]]></description>
			<content:encoded><![CDATA[<p>This article will show you how to setup an LDAP address book using <strong>OpenLDAP</strong>, an open source implementation of the Lightweight Directory Access Protocol.</p>
<span id="more-67"></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 OpenLDAP</h2>
<p>The command line equivalent of the steps below is <tt>yum install openldap-servers openldap-clients</tt>.</p>
<div class="clearfix steps"><a href="/images/centos-5/package-manager.png"><img class="preview" alt="Package Manager" src="/images/centos-5/t-package-manager.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Click <em>Applications</em> then click <em>Add/Remove Software</em>. This will launch the <strong>Package Manager</strong> window.</div>
<div class="clearfix steps"><a href="/images/centos-5/package-manager-openldap.png"><img class="preview" alt="Package Manager Search" src="/images/centos-5/t-package-manager-openldap.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Click the <em>Search</em> tab. Next type in <em>openldap</em> and click the <em>Search</em> button.</div>
<div class="clearfix steps"><a href="/images/centos-5/package-manager-openldap-2.png"><img class="preview" alt="Package Manager Search" src="/images/centos-5/t-package-manager-openldap-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Select the latest version of openldap-servers and openldap-clients then click <em>Apply</em>. Next click on <em>Continue</em> until it proceeds with the installation.</div>
<div class="clearfix steps"><a href="/images/centos-5/package-manager-openldap-3.png"><img class="preview" alt="Package Manager" src="/images/centos-5/t-package-manager-openldap-3.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. After installation, click <em>Ok</em>. You now have successfully installed the OpenLDAP servers and clients.</div>
<h2>Configuring OpenLDAP</h2>
<p>The example below uses <em>acme.local</em> as the base domain.</p>
<div class="clearfix steps"><a href="/images/centos-5/edit-slapd-conf.png"><img class="preview" alt="Edit slapd.conf" src="/images/centos-5/t-edit-slapd-conf.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class ="m">1. Edit the file <em>/etc/openldap/slapd.conf</em>.
<pre class="steps">
suffix "dc=acme,dc=local"
rootdn "cn=manager,dc=acme,dc=local"
rootpw password
</pre>
</div>
</div>
<p><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />To avoid storing the password in plain-text, convert the password to a hash by using the command <tt>slappasswd -s password</tt> and paste the resulting hash into the file.</p>
<div class="clearfix steps"><a href="/images/centos-5/file-browser-ldap.png"><img class="preview" alt="File Browser" src="/images/centos-5/t-file-browser-ldap.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Copy the file <em>/etc/openldap/DB_CONFIG.example</em> and put it into <em>/var/lib/ldap</em> as <em>DB_CONFIG</em>.</div>
<div class="clearfix steps"><a href="/images/centos-5/service-config-ldap.png"><img class="preview" alt="Service Configuration" src="/images/centos-5/t-service-config-ldap.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Start the ldap service. <a href="/how-to-start-stop-services-centos-5/">Learn how to start services here.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/edit-base-ldif.png"><img class="preview" alt="GEdit" src="/images/centos-5/t-edit-base-ldif.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">4. Create a file named <em>base.ldif</em> containing the lines below and save it into your home directory.
<pre class="steps">
dn: dc=acme,dc=local
dc: acme
objectClass: domain
</pre>
</div>
</div>
<div class="clearfix steps"><a href="/images/centos-5/terminal-ldapadd.png"><img class="preview" alt="Terminal" src="/images/centos-5/t-terminal-ldapadd.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. Import base.ldif into your directory using the command below.</div>
<pre class="steps">
ldapadd -x -D "cn=manager,dc=acme,dc=local" -w password -f ~/base.ldif
</pre>
<p>Replace <em>password</em> with the root password you specified in slapd.conf.</p>
<p>To populate your directory, create a file similar to the one below and import it using ldapadd or better yet, use a GUI tool like JXplorer, a Java based LDAP browser.</p>
<pre class="steps">
dn: ou=People,dc=acme,dc=local
ou: People
objectClass: organizationalUnit

dn: uid=bugsbunny,ou=People,dc=acme,dc=local
uid: bugsbunny
cn: Bugs Bunny
displayName: Bugs Bunny
givenName: Bugs
sn: Bunny
objectClass: inetOrgPerson
userPassword: password
mail: bugsbunny@acme.local
</pre>
<p>The <em>displayName</em> attribute is required for Outlook addressbook users.</p>
<h2>Related Pages</h2>
<div class="clearfix steps"><a href="/images/centos-5/jxplorer-ad.png"><img class="preview" alt="JXplorer Active Directory" src="/images/centos-5/t-jxplorer-ad.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/postfix-dovecot-ldap-centos-5/">Active Directory/LDAP virtual users in Postfix and Dovecot.</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/openldap-setup-howto/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>
