<?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>The K Blag &#187; ldap</title>
	<atom:link href="http://iamthek.com/archives/category/ldap/feed" rel="self" type="application/rss+xml" />
	<link>http://iamthek.com</link>
	<description>Interesting Topics</description>
	<lastBuildDate>Tue, 10 Feb 2009 01:51:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Determine CSN update time from CSR in Directory Server 5/6</title>
		<link>http://iamthek.com/archives/46</link>
		<comments>http://iamthek.com/archives/46#comments</comments>
		<pubDate>Mon, 22 Dec 2008 16:50:38 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[ldap]]></category>
		<category><![CDATA[replication]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[dsee]]></category>

		<guid isPermaLink="false">http://iamthek.com/?p=46</guid>
		<description><![CDATA[I needed to determine the update time for a particular attribute for one of my customers.  I knew I had ran across how to get it from a csn attribute.
If you can obtain the CSN of an attribute, ie: from the nscpentrywsi operational attribute), the timestamp is the first 8 bytes of the CSN, in [...]]]></description>
			<content:encoded><![CDATA[<p>I needed to determine the update time for a particular attribute for one of my customers.  I knew I had ran across how to get it from a csn attribute.</p>
<p>If you can obtain the CSN of an attribute, ie: from the nscpentrywsi operational attribute), the timestamp is the first 8 bytes of the CSN, in hex format.</p>
<p>ie:</p>
<blockquote><p>nscpentrywsi: cn;adcsn-494d685d000000010000;vucsn-494d685d000000010000: The K</p></blockquote>
<p>The timestamp in hex is: 494d685d</p>
<p>With a bit of perl magic, we can obtain the localtime value:</p>
<blockquote><p>perl -e &#8216;print localtime(hex(&#8221;494d685d&#8221;)) . &#8220;\n&#8221;;&#8217;</p></blockquote>
<p>Which returns:</p>
<blockquote><p>Sat Dec 20 16:49:17 2008</p></blockquote>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>bookmark to</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://iamthek.com/archives/46title=Determine+CSN+update+time+from+CSR+in+Directory+Server+5%2F6" title="Add 'Determine CSN update time from CSR in Directory Server 5/6' to Del.icio.us"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/delicious.png" title="Add 'Determine CSN update time from CSR in Directory Server 5/6' to Del.icio.us" alt="Add 'Determine CSN update time from CSR in Directory Server 5/6' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2url=http://iamthek.com/archives/46title=Determine+CSN+update+time+from+CSR+in+Directory+Server+5%2F6" title="Add 'Determine CSN update time from CSR in Directory Server 5/6' to digg"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Determine CSN update time from CSR in Directory Server 5/6' to digg" alt="Add 'Determine CSN update time from CSR in Directory Server 5/6' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://iamthek.com/archives/46title=Determine+CSN+update+time+from+CSR+in+Directory+Server+5%2F6" title="Add 'Determine CSN update time from CSR in Directory Server 5/6' to reddit"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/reddit.png" title="Add 'Determine CSN update time from CSR in Directory Server 5/6' to reddit" alt="Add 'Determine CSN update time from CSR in Directory Server 5/6' to reddit" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://iamthek.com/archives/46" title="Add 'Determine CSN update time from CSR in Directory Server 5/6' to Technorati"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/technorati.png" title="Add 'Determine CSN update time from CSR in Directory Server 5/6' to Technorati" alt="Add 'Determine CSN update time from CSR in Directory Server 5/6' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://iamthek.com/archives/46title=Determine+CSN+update+time+from+CSR+in+Directory+Server+5%2F6" title="Add 'Determine CSN update time from CSR in Directory Server 5/6' to Stumble Upon"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Determine CSN update time from CSR in Directory Server 5/6' to Stumble Upon" alt="Add 'Determine CSN update time from CSR in Directory Server 5/6' to Stumble Upon" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://iamthek.com/archives/46/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Longer term self-signed OpenSSL Certificates and Sun DSEE Directory Server</title>
		<link>http://iamthek.com/archives/39</link>
		<comments>http://iamthek.com/archives/39#comments</comments>
		<pubDate>Wed, 10 Dec 2008 14:28:15 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[ldap]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[dsee]]></category>

		<guid isPermaLink="false">http://iamthek.com/?p=39</guid>
		<description><![CDATA[I&#8217;ve long had an itch to scratch about the default 3-month duration of self-signed certificates available in Sun DSEE 6.x.
For the initial part, I&#8217;ve followed the instructions available at http://www.akadia.com/services/ssh_test_certificate.html.
Create your server&#8217;s key
# openssl genrsa -des3 -out server.key 1024
&#60;it will ask for a password, twice&#62;
Make the key use no password, one less thing to remember.
# [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve long had an itch to scratch about the default 3-month duration of self-signed certificates available in Sun DSEE 6.x.</p>
<p>For the initial part, I&#8217;ve followed the instructions available at <a href="http://www.akadia.com/services/ssh_test_certificate.html" target="_blank">http://www.akadia.com/services/ssh_test_certificate.html</a>.</p>
<p>Create your server&#8217;s key</p>
<blockquote><p># openssl genrsa -des3 -out server.key 1024</p></blockquote>
<p>&lt;it will ask for a password, twice&gt;</p>
<p>Make the key use no password, one less thing to remember.</p>
<blockquote><p># cp server.key server.key.org<br />
# openssl rsa -in server.key.org -out server.key</p></blockquote>
<p>We need to generate a certificate signing request, from the Sun Directory Server (DSEE).</p>
<blockquote><p>cd /path/to/dsadm</p>
<p>./dsadm request-cert &#8211;name &#8220;ldap.example.com&#8221; &#8211;org &#8220;Example.com&#8221; &#8211;org-unit &#8220;IT&#8221; &#8211;city &#8220;New York&#8221; &#8211;state &#8220;New York&#8221; &#8211;country &#8220;USA&#8221; /path/to/ldap &gt; /tmp/server.csr</p></blockquote>
<p>Sign the certificate request locally, using the key we generated ourselves.  In my case, I&#8217;m making it good for approximate 10y (3650 days)</p>
<blockquote><p># openssl x509 -req -days 3650 -in /tmp/server.csr -signkey server.key -out<br />
server.crt</p></blockquote>
<p>We now have a cert as server.crt we need to add to the directory keystore</p>
<blockquote><p>./dsadm import-selfsign-cert /path/to/ldap &#8216;ldap.example.com&#8217; server.crt</p></blockquote>
<blockquote><p>./dsadm restart /path/to/ldap<br />
./dsconf set-server-prop -h hostname -p 389<br />
ssl-rsa-cert-name:ldap.example.com</p></blockquote>
<p>Thats all it takes to get your server running with a self-signed 10y certificate.</p>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>bookmark to</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://iamthek.com/archives/39title=Longer+term+self-signed+OpenSSL+Certificates+and+Sun+DSEE+Directory+Server" title="Add 'Longer term self-signed OpenSSL Certificates and Sun DSEE Directory Server' to Del.icio.us"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/delicious.png" title="Add 'Longer term self-signed OpenSSL Certificates and Sun DSEE Directory Server' to Del.icio.us" alt="Add 'Longer term self-signed OpenSSL Certificates and Sun DSEE Directory Server' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2url=http://iamthek.com/archives/39title=Longer+term+self-signed+OpenSSL+Certificates+and+Sun+DSEE+Directory+Server" title="Add 'Longer term self-signed OpenSSL Certificates and Sun DSEE Directory Server' to digg"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Longer term self-signed OpenSSL Certificates and Sun DSEE Directory Server' to digg" alt="Add 'Longer term self-signed OpenSSL Certificates and Sun DSEE Directory Server' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://iamthek.com/archives/39title=Longer+term+self-signed+OpenSSL+Certificates+and+Sun+DSEE+Directory+Server" title="Add 'Longer term self-signed OpenSSL Certificates and Sun DSEE Directory Server' to reddit"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/reddit.png" title="Add 'Longer term self-signed OpenSSL Certificates and Sun DSEE Directory Server' to reddit" alt="Add 'Longer term self-signed OpenSSL Certificates and Sun DSEE Directory Server' to reddit" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://iamthek.com/archives/39" title="Add 'Longer term self-signed OpenSSL Certificates and Sun DSEE Directory Server' to Technorati"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/technorati.png" title="Add 'Longer term self-signed OpenSSL Certificates and Sun DSEE Directory Server' to Technorati" alt="Add 'Longer term self-signed OpenSSL Certificates and Sun DSEE Directory Server' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://iamthek.com/archives/39title=Longer+term+self-signed+OpenSSL+Certificates+and+Sun+DSEE+Directory+Server" title="Add 'Longer term self-signed OpenSSL Certificates and Sun DSEE Directory Server' to Stumble Upon"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Longer term self-signed OpenSSL Certificates and Sun DSEE Directory Server' to Stumble Upon" alt="Add 'Longer term self-signed OpenSSL Certificates and Sun DSEE Directory Server' to Stumble Upon" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://iamthek.com/archives/39/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Directory Server 6.3 released</title>
		<link>http://iamthek.com/archives/38</link>
		<comments>http://iamthek.com/archives/38#comments</comments>
		<pubDate>Wed, 16 Apr 2008 16:51:48 +0000</pubDate>
		<dc:creator>mike</dc:creator>
				<category><![CDATA[ldap]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[HP-UX]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Sun Microsystems]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://iamthek.com/?p=38</guid>
		<description><![CDATA[Sun released their Directory Server Enterprise Edition 6.3.  This fixes at least one critical issue with database corruption.
You can get the full version from Sun at: http://www.sun.com/software/products/directory_srvr_ee/index.jsp.
Patches are available via Sunsolve:

#125276-07: Directory Server Enterprise Edition 6.3 : SunOS 5.9/5.10 Sparc Native Patch
#125277-07: Directory Server Enterprise Edition 6.3 : SunOS 5.9_x86 Native Patch
#125278-07: Directory Server [...]]]></description>
			<content:encoded><![CDATA[<p>Sun released their Directory Server Enterprise Edition 6.3.  This fixes at least one critical issue with database corruption.</p>
<p>You can get the full version from Sun at: <a href="http://www.sun.com/software/products/directory_srvr_ee/index.jsp" target="_blank">http://www.sun.com/software/products/directory_srvr_ee/index.jsp</a>.<br />
Patches are available via Sunsolve:</p>
<ul>
<li><a href="http://sunsolve.sun.com/search/advsearch.do?collection=PATCH&amp;type=collections&amp;max=50&amp;language=en&amp;queryKey5=125276&amp;toDocument=yes">#125276-07: Directory Server Enterprise Edition 6.3 : SunOS 5.9/5.10 Sparc Native Patch</a></li>
<li><a href="http://sunsolve.sun.com/search/advsearch.do?collection=PATCH&amp;type=collections&amp;max=50&amp;language=en&amp;queryKey5=125277&amp;toDocument=yes">#125277-07: Directory Server Enterprise Edition 6.3 : SunOS 5.9_x86 Native Patch</a></li>
<li><a href="http://sunsolve.sun.com/search/advsearch.do?collection=PATCH&amp;type=collections&amp;max=50&amp;language=en&amp;queryKey5=125278&amp;toDocument=yes">#125278-07: Directory Server Enterprise Edition 6.3 : SunOS 5.10_x86, x64 Native Patch</a></li>
<li><a href="http://sunsolve.sun.com/search/advsearch.do?collection=PATCH&amp;type=collections&amp;max=50&amp;language=en&amp;queryKey5=125309&amp;toDocument=yes">#125309-07: Directory Server Enterprise Edition 6.3 : Linux RHEL3 RHEL4 Native Patch</a></li>
<li><a href="http://sunsolve.sun.com/search/advsearch.do?collection=PATCH&amp;type=collections&amp;max=50&amp;language=en&amp;queryKey5=126748&amp;toDocument=yes">#126748-04: Sun Java(TM) System Directory Server Enterprise Edition 6.3 : SunOS 5.9/5.10 Sparc patchzip</a></li>
<li><a href="http://sunsolve.sun.com/search/advsearch.do?collection=PATCH&amp;type=collections&amp;max=50&amp;language=en&amp;queryKey5=126749&amp;toDocument=yes">#126749-04: Sun Java(TM) System Directory Server Enterprise Edition 6.3 : SunOS 5.9_x86 patchzip</a></li>
<li><a href="http://sunsolve.sun.com/search/advsearch.do?collection=PATCH&amp;type=collections&amp;max=50&amp;language=en&amp;queryKey5=126750&amp;toDocument=yes">#126750-04: Sun Java(TM) System Directory Server Enterprise Edition 6.3 : SunOS 5.10_x86, x64 patchzip</a></li>
<li><a href="http://sunsolve.sun.com/search/advsearch.do?collection=PATCH&amp;type=collections&amp;max=50&amp;language=en&amp;queryKey5=126751&amp;toDocument=yes">#126751-04: Sun Java(TM) System Directory Server Enterprise Edition 6.3: Linux RHEL3 RHEL4 patchzip</a></li>
<li><a href="http://sunsolve.sun.com/search/advsearch.do?collection=PATCH&amp;type=collections&amp;max=50&amp;language=en&amp;queryKey5=126752&amp;toDocument=yes">#126752-04: Sun Java(TM) System Directory Server Enterprise Edition 6.3: HP-UX 11i PA Risc patchzip</a></li>
<li><a href="http://sunsolve.sun.com/search/advsearch.do?collection=PATCH&amp;type=collections&amp;max=50&amp;language=en&amp;queryKey5=126753&amp;toDocument=yes">#126753-04: Sun Java(TM) System Directory Server Enterprise Edition 6.3: Windows 2000/2003 Server patchzip</a></li>
</ul>
<p>Source available <a href="http://blogs.sun.com/Ludo/entry/directory_server_enterprise_edition_63" target="_blank">here</a>.</p>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>bookmark to</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://iamthek.com/archives/38title=Directory+Server+6.3+released" title="Add 'Directory Server 6.3 released' to Del.icio.us"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/delicious.png" title="Add 'Directory Server 6.3 released' to Del.icio.us" alt="Add 'Directory Server 6.3 released' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2url=http://iamthek.com/archives/38title=Directory+Server+6.3+released" title="Add 'Directory Server 6.3 released' to digg"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Directory Server 6.3 released' to digg" alt="Add 'Directory Server 6.3 released' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://iamthek.com/archives/38title=Directory+Server+6.3+released" title="Add 'Directory Server 6.3 released' to reddit"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/reddit.png" title="Add 'Directory Server 6.3 released' to reddit" alt="Add 'Directory Server 6.3 released' to reddit" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://iamthek.com/archives/38" title="Add 'Directory Server 6.3 released' to Technorati"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/technorati.png" title="Add 'Directory Server 6.3 released' to Technorati" alt="Add 'Directory Server 6.3 released' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://iamthek.com/archives/38title=Directory+Server+6.3+released" title="Add 'Directory Server 6.3 released' to Stumble Upon"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Directory Server 6.3 released' to Stumble Upon" alt="Add 'Directory Server 6.3 released' to Stumble Upon" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://iamthek.com/archives/38/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backing up and Restoring data from Directory Server 6</title>
		<link>http://iamthek.com/archives/26</link>
		<comments>http://iamthek.com/archives/26#comments</comments>
		<pubDate>Mon, 26 Nov 2007 19:54:10 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[ldap]]></category>
		<category><![CDATA[replication]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[directory server]]></category>
		<category><![CDATA[directory server 6]]></category>

		<guid isPermaLink="false">http://iamthek.com/archives/26</guid>
		<description><![CDATA[One of the largest problems that I have noticed when doing directory deployments, are either invalid, or non-existent backups of their directory information.  They often assure peace of mind when things unexpectedly go wrong (a la unexpected power outages).
I&#8217;ve found a good reference to how to do backups with Directory Server 6; and won&#8217;t rehash [...]]]></description>
			<content:encoded><![CDATA[<p>One of the largest problems that I have noticed when doing directory deployments, are either invalid, or non-existent backups of their directory information.  They often assure peace of mind when things unexpectedly go wrong (a la <a href="http://www.gastromaniacs.com/?p=50" target="_blank">unexpected power outages</a>).</p>
<p>I&#8217;ve found a good reference to <a href="http://blogs.sun.com/marginNotes/entry/how_to_back_up_directory" target="_blank">how to do backups with Directory Server 6</a>; and won&#8217;t rehash them here.</p>
<p>In essence, it may become necessary to have a single instance dedicated to doing routine backups in a large environment.  This is because you need to be able to turn the instance to read-only for the duration of the backup.</p>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>bookmark to</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://iamthek.com/archives/26title=Backing+up+and+Restoring+data+from+Directory+Server+6" title="Add 'Backing up and Restoring data from Directory Server 6' to Del.icio.us"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/delicious.png" title="Add 'Backing up and Restoring data from Directory Server 6' to Del.icio.us" alt="Add 'Backing up and Restoring data from Directory Server 6' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2url=http://iamthek.com/archives/26title=Backing+up+and+Restoring+data+from+Directory+Server+6" title="Add 'Backing up and Restoring data from Directory Server 6' to digg"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Backing up and Restoring data from Directory Server 6' to digg" alt="Add 'Backing up and Restoring data from Directory Server 6' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://iamthek.com/archives/26title=Backing+up+and+Restoring+data+from+Directory+Server+6" title="Add 'Backing up and Restoring data from Directory Server 6' to reddit"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/reddit.png" title="Add 'Backing up and Restoring data from Directory Server 6' to reddit" alt="Add 'Backing up and Restoring data from Directory Server 6' to reddit" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://iamthek.com/archives/26" title="Add 'Backing up and Restoring data from Directory Server 6' to Technorati"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/technorati.png" title="Add 'Backing up and Restoring data from Directory Server 6' to Technorati" alt="Add 'Backing up and Restoring data from Directory Server 6' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://iamthek.com/archives/26title=Backing+up+and+Restoring+data+from+Directory+Server+6" title="Add 'Backing up and Restoring data from Directory Server 6' to Stumble Upon"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Backing up and Restoring data from Directory Server 6' to Stumble Upon" alt="Add 'Backing up and Restoring data from Directory Server 6' to Stumble Upon" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://iamthek.com/archives/26/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What I like about Directory Server 6</title>
		<link>http://iamthek.com/archives/25</link>
		<comments>http://iamthek.com/archives/25#comments</comments>
		<pubDate>Wed, 21 Nov 2007 18:46:23 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[ldap]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[directory server 6]]></category>
		<category><![CDATA[mmr]]></category>
		<category><![CDATA[multi master replication]]></category>
		<category><![CDATA[replication]]></category>

		<guid isPermaLink="false">http://iamthek.com/archives/25</guid>
		<description><![CDATA[I&#8217;ve installed many, many Sun/Netscape/Fedora Directory Server instances.  There has been plenty to like, and much to dislike as well.  I&#8217;m big on not using the console for most things, as by nature, I&#8217;m a command line type person.  The most compelling reasons for me to move to Directory Server 6:
Much improved [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve installed many, many Sun/Netscape/Fedora Directory Server instances.  There has been plenty to like, and much to dislike as well.  I&#8217;m big on not using the console for most things, as by nature, I&#8217;m a command line type person.  The most compelling reasons for me to move to Directory Server 6:</p>
<h3>Much improved command line functionality</h3>
<p>It is now possible to install the directory server bits, create a new directory server instance, and perform configuration commands on the directory server using command line tools.  While you could do some of the features before using things like an installation script, or using LDIF, these commands are called directly from the command line without superb internal knowledge of how to implement these functions.</p>
<p>As an example, creating a new directory server instance with pre-DS6 used to require either a trip to the console (if you were lucky enough to have enough access to the machine); or the use of an silent installation script.</p>
<p>By contrast, you are able to create a new instance with DS6 with a simple command (albeit, it does ask for the directory manager password) (these commands assume it was installed in /opt/ldap):</p>
<blockquote><p>cd /opt/ldap/ds6/bin</p>
<p>./dsadm create -p 389 -P 636 /opt/ldap/slapd-test</p></blockquote>
<p>And create a new suffix with another simple command (you&#8217;ll need the directory manager password):</p>
<blockquote><p>cd /opt/ldap/ds6/bin</p>
<p>./dsconf create-suffix -h localhost &#8216;dc=<em>domain</em>,dc=com&#8217;</p></blockquote>
<p>There are plenty of other examples that can be had, such as creating and initializing replication agreements, but those can be left for another day.</p>
<h3>Unlimited number of masters in Multi-Master Replication</h3>
<p>With the release of DS6, the number of masers in an MMR increased from a maximum of 4 to unlimited.  This can result in each instance in your environment being promoted to a master instance.  Practically, this may not suit all environments, as WAN traffic and such comes into play with how your replication agreements are configured.</p>
<p>I&#8217;ll probably revisit this topic again in the future.</p>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>bookmark to</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://iamthek.com/archives/25title=What+I+like+about+Directory+Server+6" title="Add 'What I like about Directory Server 6' to Del.icio.us"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/delicious.png" title="Add 'What I like about Directory Server 6' to Del.icio.us" alt="Add 'What I like about Directory Server 6' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2url=http://iamthek.com/archives/25title=What+I+like+about+Directory+Server+6" title="Add 'What I like about Directory Server 6' to digg"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'What I like about Directory Server 6' to digg" alt="Add 'What I like about Directory Server 6' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://iamthek.com/archives/25title=What+I+like+about+Directory+Server+6" title="Add 'What I like about Directory Server 6' to reddit"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/reddit.png" title="Add 'What I like about Directory Server 6' to reddit" alt="Add 'What I like about Directory Server 6' to reddit" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://iamthek.com/archives/25" title="Add 'What I like about Directory Server 6' to Technorati"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/technorati.png" title="Add 'What I like about Directory Server 6' to Technorati" alt="Add 'What I like about Directory Server 6' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://iamthek.com/archives/25title=What+I+like+about+Directory+Server+6" title="Add 'What I like about Directory Server 6' to Stumble Upon"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'What I like about Directory Server 6' to Stumble Upon" alt="Add 'What I like about Directory Server 6' to Stumble Upon" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://iamthek.com/archives/25/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates</title>
		<link>http://iamthek.com/archives/24</link>
		<comments>http://iamthek.com/archives/24#comments</comments>
		<pubDate>Tue, 20 Nov 2007 15:00:24 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[ldap]]></category>
		<category><![CDATA[replication]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[changelog]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[directory server]]></category>

		<guid isPermaLink="false">http://iamthek.com/archives/24</guid>
		<description><![CDATA[Once the directory server replica&#8217;s are configured and initialized, the final step is to enable them to accept updates.
This step was added as there is a necessary catch-up time when initializing MMR (especially in a busy environment); where by the time an instance is initialized, it is out-of-date until all the subsequent updates have been [...]]]></description>
			<content:encoded><![CDATA[<p>Once the directory server replica&#8217;s are configured and initialized, the final step is to enable them to accept updates.</p>
<p>This step was added as there is a necessary catch-up time when initializing MMR (especially in a busy environment); where by the time an instance is initialized, it is out-of-date until all the subsequent updates have been propagated.  When I had to do this the first time, I was working off static data, and didn&#8217;t need to worry about performing this when the updates have been propagated, as there were no updates.</p>
<p>The only instance and suffixes that do not need to be enabled are those on ultimate master, which had all the data initially.  All other instances need to be enabled after the replica&#8217;s have caught up.</p>
<p>In summary, those instances are:</p>
<blockquote><p>ds0: nothing needs to be enabled</p>
<p>ds1: user/group, o=internet, o=piserverdb, o=pab, o=comms-config, o=netscaperoot</p>
<p>ds2: user/group, o=internet, o=piserverdb, o=pab, o=comms-config, o=netscaperoot</p>
<p>ds3: user/group, o=internet, o=piserverdb, o=pab, o=comms-config, o=netscaperoot</p>
<p>ds4: user/group, o=internet, o=piserverdb, o=pab, o=comms-config, o=netscaperoot</p>
<p>ds5: user/group, o=internet, o=piserverdb, o=pab, o=comms-config, o=netscaperoot</p></blockquote>
<p>I&#8217;ve created an example command set to <a href="http://iamthek.com/archives/13">enable a directory server backend</a>.</p>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>bookmark to</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://iamthek.com/archives/24title=Sun+Directory+Server+5.2+6-Way+MMR+%26%238211%3B+part+8+%26%238211%3B+Enable+Directory+Server+backends+for+updates" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates' to Del.icio.us"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/delicious.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates' to Del.icio.us" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2url=http://iamthek.com/archives/24title=Sun+Directory+Server+5.2+6-Way+MMR+%26%238211%3B+part+8+%26%238211%3B+Enable+Directory+Server+backends+for+updates" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates' to digg"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates' to digg" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://iamthek.com/archives/24title=Sun+Directory+Server+5.2+6-Way+MMR+%26%238211%3B+part+8+%26%238211%3B+Enable+Directory+Server+backends+for+updates" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates' to reddit"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/reddit.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates' to reddit" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates' to reddit" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://iamthek.com/archives/24" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates' to Technorati"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/technorati.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates' to Technorati" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://iamthek.com/archives/24title=Sun+Directory+Server+5.2+6-Way+MMR+%26%238211%3B+part+8+%26%238211%3B+Enable+Directory+Server+backends+for+updates" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates' to Stumble Upon"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates' to Stumble Upon" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates' to Stumble Upon" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://iamthek.com/archives/24/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable Directory Server 5.2 database back-end</title>
		<link>http://iamthek.com/archives/13</link>
		<comments>http://iamthek.com/archives/13#comments</comments>
		<pubDate>Mon, 19 Nov 2007 15:43:32 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[ldap]]></category>
		<category><![CDATA[replication]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[directory server]]></category>
		<category><![CDATA[directory server 5]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mmr]]></category>
		<category><![CDATA[multi master replication]]></category>
		<category><![CDATA[multi-master]]></category>

		<guid isPermaLink="false">http://iamthek.com/archives/13</guid>
		<description><![CDATA[In a MMR agreement, the consumer instance backend that has been initialized needs to be enabled before it can begin accepting replication updates.  This is a feature to allow a newly replicated master to catch-up on changes that have occurred during the initialization.
An example LDIF of how to enable a backend:
dn: cn=replica, cn=&#8220;suffix&#8220;,cn=mapping tree,cn=config
changetype: [...]]]></description>
			<content:encoded><![CDATA[<p>In a MMR agreement, the consumer instance backend that has been initialized needs to be enabled before it can begin accepting replication updates.  This is a feature to allow a newly replicated master to catch-up on changes that have occurred during the initialization.</p>
<p>An example LDIF of how to enable a backend:</p>
<blockquote><p>dn: cn=replica, cn=<em>&#8220;suffix</em>&#8220;,cn=mapping tree,cn=config<br />
changetype: modify<br />
add: ds5BeginReplicaAcceptUpdates<br />
ds5BeginReplicaAcceptUpdates: start</p></blockquote>
<p>I created and saved the LDIF to enable this backend suffix as /tmp/enablesuffix.ldif; and ran the ldapmodify command to perform the enable.</p>
<blockquote><p>/usr/bin/ldapmodify -h <em>host</em> -p <em>port</em> -D <em>‘rootdn‘</em> -w <em>‘password‘</em> -c -f /tmp/enablesuffix.ldif</p></blockquote>
<p>More information about <a href="http://docs.sun.com/source/817-7613/replicat.html#wp20059" target="_blank">MMR convergence from Sun</a>.</p>
<blockquote></blockquote>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>bookmark to</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://iamthek.com/archives/13title=Enable+Directory+Server+5.2+database+back-end" title="Add 'Enable Directory Server 5.2 database back-end' to Del.icio.us"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/delicious.png" title="Add 'Enable Directory Server 5.2 database back-end' to Del.icio.us" alt="Add 'Enable Directory Server 5.2 database back-end' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2url=http://iamthek.com/archives/13title=Enable+Directory+Server+5.2+database+back-end" title="Add 'Enable Directory Server 5.2 database back-end' to digg"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Enable Directory Server 5.2 database back-end' to digg" alt="Add 'Enable Directory Server 5.2 database back-end' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://iamthek.com/archives/13title=Enable+Directory+Server+5.2+database+back-end" title="Add 'Enable Directory Server 5.2 database back-end' to reddit"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/reddit.png" title="Add 'Enable Directory Server 5.2 database back-end' to reddit" alt="Add 'Enable Directory Server 5.2 database back-end' to reddit" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://iamthek.com/archives/13" title="Add 'Enable Directory Server 5.2 database back-end' to Technorati"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/technorati.png" title="Add 'Enable Directory Server 5.2 database back-end' to Technorati" alt="Add 'Enable Directory Server 5.2 database back-end' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://iamthek.com/archives/13title=Enable+Directory+Server+5.2+database+back-end" title="Add 'Enable Directory Server 5.2 database back-end' to Stumble Upon"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Enable Directory Server 5.2 database back-end' to Stumble Upon" alt="Add 'Enable Directory Server 5.2 database back-end' to Stumble Upon" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://iamthek.com/archives/13/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements</title>
		<link>http://iamthek.com/archives/17</link>
		<comments>http://iamthek.com/archives/17#comments</comments>
		<pubDate>Fri, 16 Nov 2007 15:03:03 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[ldap]]></category>
		<category><![CDATA[replication]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[directory server]]></category>
		<category><![CDATA[initialization]]></category>
		<category><![CDATA[initialize]]></category>
		<category><![CDATA[mmr]]></category>
		<category><![CDATA[suffix]]></category>

		<guid isPermaLink="false">http://iamthek.com/archives/17</guid>
		<description><![CDATA[To be usable in an MMR, all the suffixes on each instance that are part of the MMR (or replication in general) need to be initialized from the ultimate master (where the data was initially loaded).  As some of the instances are not directly replicated from this instance (as there are a maximum of [...]]]></description>
			<content:encoded><![CDATA[<p>To be usable in an MMR, all the suffixes on each instance that are part of the MMR (or replication in general) need to be initialized from the ultimate master (where the data was initially loaded).  As some of the instances are not directly replicated from this instance (as there are a maximum of 3 MMR agreements from this instance); but instances which do replicate to them can initialize that data.</p>
<p>In order to successfully initialize all the replica&#8217;s in a short amount of time, the first master ( where all the initial data was loaded ), first replicates to a counterpart; then they both replicate to another instance that had not been replicated before.  With alot of data, this can take hours to perform.</p>
<p>One methodology I&#8217;ve used is:</p>
<ol>
<li>ds0 initializes all suffixes on ds3</li>
<li>ds0 initializes all suffixes on ds1 &amp; ds3 initializes all suffixes on ds4</li>
<li>ds0 initializes all suffixes on ds5 &amp; ds3 initializes all suffixes on ds2</li>
</ol>
<p>Do so in this manner will allow you to initialize all the instance suffices in a relatively short amount of time.</p>
<p>After initializing a suffix, before it can accept updates, it needs to have its database back-end enabled, which I&#8217;ll write about at a different time.</p>
<p>I&#8217;ve created a short example of how to <a href="http://iamthek.com/archives/12">initialize a replica</a>.</p>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>bookmark to</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://iamthek.com/archives/17title=Sun+Directory+Server+5.2+6-Way+MMR+%26%238211%3B+part+7+%26%238211%3B+Initialize+replication+agreements" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements' to Del.icio.us"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/delicious.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements' to Del.icio.us" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2url=http://iamthek.com/archives/17title=Sun+Directory+Server+5.2+6-Way+MMR+%26%238211%3B+part+7+%26%238211%3B+Initialize+replication+agreements" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements' to digg"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements' to digg" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://iamthek.com/archives/17title=Sun+Directory+Server+5.2+6-Way+MMR+%26%238211%3B+part+7+%26%238211%3B+Initialize+replication+agreements" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements' to reddit"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/reddit.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements' to reddit" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements' to reddit" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://iamthek.com/archives/17" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements' to Technorati"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/technorati.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements' to Technorati" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://iamthek.com/archives/17title=Sun+Directory+Server+5.2+6-Way+MMR+%26%238211%3B+part+7+%26%238211%3B+Initialize+replication+agreements" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements' to Stumble Upon"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements' to Stumble Upon" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements' to Stumble Upon" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://iamthek.com/archives/17/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Initialize a database suffix in Directory Server 5.2</title>
		<link>http://iamthek.com/archives/12</link>
		<comments>http://iamthek.com/archives/12#comments</comments>
		<pubDate>Thu, 15 Nov 2007 15:13:11 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[ldap]]></category>
		<category><![CDATA[replication]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[changelog]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[directory server]]></category>
		<category><![CDATA[directory server 5]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mmr]]></category>
		<category><![CDATA[multi master replication]]></category>
		<category><![CDATA[multi-master]]></category>

		<guid isPermaLink="false">http://iamthek.com/archives/12</guid>
		<description><![CDATA[In a replicated environment, all (initial) data should flow from a single master to all other instances.  After preparing the (destination) directory server for replication, the remote instance database needs to be initialized.
An example replication initialization:
dn: cn=replication agreement name:389,cn=replica,cn=suffix,cn=mapping tree,cn=config
changetype: modify
replace: nsds5BeginReplicaRefresh
nsds5BeginReplicaRefresh: start
With our LDIF written as /tmp/reinit.ldif; run the following ldapmodify command:
/usr/bin/ldapmodify -h [...]]]></description>
			<content:encoded><![CDATA[<p>In a replicated environment, all (initial) data should flow from a single master to all other instances.  After preparing the (destination) directory server for replication, the remote instance database needs to be initialized.</p>
<p>An example replication initialization:</p>
<blockquote><p>dn: cn=<em>replication agreement name</em>:<em>389</em>,cn=replica,cn=<em>suffix</em>,cn=mapping tree,cn=config<br />
changetype: modify<br />
replace: nsds5BeginReplicaRefresh<br />
nsds5BeginReplicaRefresh: start</p></blockquote>
<p>With our LDIF written as /tmp/reinit.ldif; run the following ldapmodify command:</p>
<blockquote><p>/usr/bin/ldapmodify -h <em>host</em> -p <em>port</em> -D <em>‘rootdn‘</em> -w <em>‘password‘</em> -c -f /tmp/reinit.ldif</p></blockquote>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>bookmark to</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://iamthek.com/archives/12title=Initialize+a+database+suffix+in+Directory+Server+5.2" title="Add 'Initialize a database suffix in Directory Server 5.2' to Del.icio.us"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/delicious.png" title="Add 'Initialize a database suffix in Directory Server 5.2' to Del.icio.us" alt="Add 'Initialize a database suffix in Directory Server 5.2' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2url=http://iamthek.com/archives/12title=Initialize+a+database+suffix+in+Directory+Server+5.2" title="Add 'Initialize a database suffix in Directory Server 5.2' to digg"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Initialize a database suffix in Directory Server 5.2' to digg" alt="Add 'Initialize a database suffix in Directory Server 5.2' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://iamthek.com/archives/12title=Initialize+a+database+suffix+in+Directory+Server+5.2" title="Add 'Initialize a database suffix in Directory Server 5.2' to reddit"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/reddit.png" title="Add 'Initialize a database suffix in Directory Server 5.2' to reddit" alt="Add 'Initialize a database suffix in Directory Server 5.2' to reddit" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://iamthek.com/archives/12" title="Add 'Initialize a database suffix in Directory Server 5.2' to Technorati"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/technorati.png" title="Add 'Initialize a database suffix in Directory Server 5.2' to Technorati" alt="Add 'Initialize a database suffix in Directory Server 5.2' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://iamthek.com/archives/12title=Initialize+a+database+suffix+in+Directory+Server+5.2" title="Add 'Initialize a database suffix in Directory Server 5.2' to Stumble Upon"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Initialize a database suffix in Directory Server 5.2' to Stumble Upon" alt="Add 'Initialize a database suffix in Directory Server 5.2' to Stumble Upon" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://iamthek.com/archives/12/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements</title>
		<link>http://iamthek.com/archives/16</link>
		<comments>http://iamthek.com/archives/16#comments</comments>
		<pubDate>Wed, 14 Nov 2007 14:42:03 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[ldap]]></category>
		<category><![CDATA[replication]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[changelog]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[directory server]]></category>
		<category><![CDATA[directory server 5]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mmr]]></category>
		<category><![CDATA[multi master replication]]></category>
		<category><![CDATA[multi-master]]></category>

		<guid isPermaLink="false">http://iamthek.com/archives/16</guid>
		<description><![CDATA[Up until now, we&#8217;ve been preparing each of our instances to participate in MMR; at this point, we create the replication topology and the replication agreements.
Being as each of our 6 instances will be masters, and with Directory Server 5.2, there is a limit of 4 masters in an MMR, a bit of creativity must [...]]]></description>
			<content:encoded><![CDATA[<p>Up until now, we&#8217;ve been preparing each of our instances to participate in MMR; at this point, we create the replication topology and the replication agreements.</p>
<p>Being as each of our 6 instances will be masters, and with Directory Server 5.2, there is a limit of 4 masters in an MMR, a bit of creativity must be employed.  Each of the master instances will replicate each of its back-end databases (user/group, o=internet, o=pab, o=piserverdb, o=comms-config and o=netscaperoot) to each of its immediate peer instances, meaning those that are numbered sequentially lower and higher; as well as another instance that is neither sequentially lower or higher.</p>
<p>The replication agreement list is defined below.</p>
<blockquote><p>ds0 -&gt; ds5 / ds1 / ds3</p>
<p>ds1 -&gt; ds0 / ds2 / ds4</p>
<p>ds2 -&gt; ds1 / ds3 / ds5</p>
<p>ds3 -&gt; ds2 / ds4 / ds0</p>
<p>ds4 -&gt; ds3 / ds5 / ds1</p>
<p>ds5 -&gt; ds4 / ds0 / ds2</p></blockquote>
<p>So, the instances on the instance ds0 will replicate each of its back-end databases to ds5, ds1 and ds3.  Being as each master has only 3 MMR replication agreements per backend, they each believe they are in a 4-way MMR; while in actuality, there are 6 masters serving the data.</p>
<p>For information on how to create the actual replication agreement LDIF; <a href="http://iamthek.com/archives/11">please follow my instructions</a>.</p>
<blockquote></blockquote>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>bookmark to</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://iamthek.com/archives/16title=Sun+Directory+Server+5.2+6-Way+MMR+%26%238211%3B+part+6+%26%238211%3B+Create+replication+agreements" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements' to Del.icio.us"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/delicious.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements' to Del.icio.us" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2url=http://iamthek.com/archives/16title=Sun+Directory+Server+5.2+6-Way+MMR+%26%238211%3B+part+6+%26%238211%3B+Create+replication+agreements" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements' to digg"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements' to digg" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://iamthek.com/archives/16title=Sun+Directory+Server+5.2+6-Way+MMR+%26%238211%3B+part+6+%26%238211%3B+Create+replication+agreements" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements' to reddit"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/reddit.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements' to reddit" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements' to reddit" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://iamthek.com/archives/16" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements' to Technorati"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/technorati.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements' to Technorati" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://iamthek.com/archives/16title=Sun+Directory+Server+5.2+6-Way+MMR+%26%238211%3B+part+6+%26%238211%3B+Create+replication+agreements" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements' to Stumble Upon"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements' to Stumble Upon" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements' to Stumble Upon" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://iamthek.com/archives/16/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
