<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:admin="http://webns.net/mvcb/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
    <title>The Suretec Blog</title>
    <link>http://blog.suretecsystems.com/</link>
    <description>Open Source. Open Solutions.</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.3 - http://www.s9y.org/</generator>
    <pubDate>Thu, 18 Dec 2008 12:35:38 GMT</pubDate>

    <image>
        <url>http://blog.suretecsystems.com/templates/competition/img/s9y_banner_small.png</url>
        <title>RSS: The Suretec Blog - Open Source. Open Solutions.</title>
        <link>http://blog.suretecsystems.com/</link>
        <width>100</width>
        <height>21</height>
    </image>

<thespringbox:skin xmlns:thespringbox="http://www.thespringbox.com/dtds/thespringbox-1.0.dtd">http://feeds.feedburner.com/suretec?format=skin</thespringbox:skin><geo:lat>57.179552</geo:lat><geo:long>-2.111006</geo:long><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/suretec" type="application/rss+xml" /><feedburner:emailServiceId>1294551</feedburner:emailServiceId><feedburner:feedburnerHostname>http://www.feedburner.com</feedburner:feedburnerHostname><item>
    <title>OpenLDAP Quick Tips: Replication Strategies</title>
    <link>http://feeds.feedburner.com/~r/suretec/~3/487759508/166-OpenLDAP-Quick-Tips-Replication-Strategies.html</link>
            <category>Open Source</category>
            <category>OpenLDAP</category>
            <category>Suretec</category>
    
    <comments>http://blog.suretecsystems.com/archives/166-OpenLDAP-Quick-Tips-Replication-Strategies.html#comments</comments>
    <wfw:comment>http://blog.suretecsystems.com/wfwcomment.php?cid=166</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://blog.suretecsystems.com/rss.php?version=2.0&amp;type=comments&amp;cid=166</wfw:commentRss>
    

    <author>nospam@example.com (Gavin Henry)</author>
    <content:encoded><![CDATA[
    Hi All,<br />
<br />
Here's the 22nd tip in the "OpenLDAP Quick Tips" series:<br />
<br />
"You are not sure what type of OpenLDAP replication to use, but you know you need to".<br />
<br />
This tip won't actually go into the technical setup (and isn't very quick <img src="http://blog.suretecsystems.com/templates/default/img/emoticons/wink.png" alt=";-)" style="display: inline; vertical-align: bottom;" class="emoticon" /> ) of the different replication types, we'll leave that for another set of tips. You can always read up on them yourself in the <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/doc/admin24/replication.html');"  href="http://www.openldap.org/doc/admin24/replication.html">Replication section</a> of the <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org');"  href="http://www.openldap.org">OpenLDAP</a> <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/doc/admin24/');"  href="http://www.openldap.org/doc/admin24/">2.4 Administrator's Guide</a>. Or if you're coming to the <a onclick="javascript: pageTracker._trackPageview('/extlink/www.ukuug.org/events/spring2009/');"  href="http://www.ukuug.org/events/spring2009/">UKUUG's annual Large Installation Systems Administration (LISA)</a> you'll be able to hear Howard Chu and myself give our talks:<br />
<br />
- <a onclick="javascript: pageTracker._trackPageview('/extlink/www.ukuug.org/events/spring2009/programme/openldap-replication.shtml');"  href="http://www.ukuug.org/events/spring2009/programme/openldap-replication.shtml">OpenLDAP Replication Strategies</a> - Gavin Henry (<a onclick="javascript: pageTracker._trackPageview('/extlink/www.suretecsystems.com');"  href="http://www.suretecsystems.com">Suretec Systems</a> &amp; <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/project');"  href="http://www.openldap.org/project">OpenLDAP project</a>)<br />
- <a onclick="javascript: pageTracker._trackPageview('/extlink/www.ukuug.org/events/spring2009/programme/openldap-mysql.shtml');"  href="http://www.ukuug.org/events/spring2009/programme/openldap-mysql.shtml">OpenLDAP and MySQL: Bridging the Data Model Divide</a> - <a onclick="javascript: pageTracker._trackPageview('/extlink/www.symas.com');"  href="http://www.symas.com">Howard Chu</a> (<a onclick="javascript: pageTracker._trackPageview('/extlink/www.suretecsystems.com/about/associates/#Symas');"  href="http://www.suretecsystems.com/about/associates/#Symas">Symas Corp.</a> &amp; <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/project');"  href="http://www.openldap.org/project">OpenLDAP project</a>).<br />
<br />
Andrew Findlay (<a onclick="javascript: pageTracker._trackPageview('/extlink/www.skills-1st.co.uk/');"  href="http://www.skills-1st.co.uk/">Skills 1st</a>), another respected authority on LDAP<sup><span title="Lightweight Directory Access Protocol" class="serendipity_glossaryMarkup">[?]</span></sup> will also be giving a talk on <a onclick="javascript: pageTracker._trackPageview('/extlink/www.ukuug.org/events/spring2009/programme/ldap-access-control.shtml');"  href="http://www.ukuug.org/events/spring2009/programme/ldap-access-control.shtml">Writing Access Control Policies for LDAP</a>.<br />
 <br />
<br />
Anyway, on to the strategies.<br />
<br />
 You already know that <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/doc/admin24/replication.html');"  href="http://www.openldap.org/doc/admin24/replication.html">replicated directories are a fundamental requirement for delivering a resilient enterprise deployment</a>, but which one to choose?<br />
<br />
You'll probably be thinking in terms of a master server and some number of slave servers. Stop, this is old terminology now and in 2.4 they are now called provider and consumer. Let me explain.<br />
<br />
In older releases of OpenLDAP (2.3) a master accepted directory updates from other clients, and a slave only accepted updates from a (single) master. The replication structure was rigidly defined and any particular database could only fulfill a single role, either master or slave:<br />
<a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/doc/admin24/replication.html');"  href="http://www.openldap.org/doc/admin24/replication.html"><blockquote><br />
As OpenLDAP now supports a wide variety of replication topologies, these terms have been deprecated in favor of provider and consumer: A provider replicates directory updates to consumers; consumers receive replication updates from providers. Unlike the rigidly defined master/slave relationships, provider/consumer roles are quite fluid: replication updates received in a consumer can be further propagated by that consumer to other servers, so a consumer can also act simultaneously as a provider. Also, a consumer need not be an actual LDAP server; it may be just an LDAP client.</blockquote></a><br />
<br />
The 5 main options are:<br />
<br />
<ol><br />
<li><a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/doc/admin24/replication.html#Syncrepl');"  href="http://www.openldap.org/doc/admin24/replication.html#Syncrepl">Syncrepl replication</a></li><br />
<li><a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/doc/admin24/replication.html#Delta-syncrepl');"  href="http://www.openldap.org/doc/admin24/replication.html#Delta-syncrepl">Delta-syncrepl replication</a></li><br />
<li><a onclick="javascript: pageTracker._trackPageview('/extlink/http://www.openldap.org/doc/admin24/replication.html#N-Way%20Multi-Master');"  href="http://http://www.openldap.org/doc/admin24/replication.html#N-Way%20Multi-Master">N-Way Multi-Master replication</a></li><br />
<li><a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/doc/admin24/replication.html#MirrorMode');"  href="http://www.openldap.org/doc/admin24/replication.html#MirrorMode">MirrorMode replication</a></li><br />
<li><a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/doc/admin24/replication.html#Syncrepl%20Proxy%20Mode');"  href="http://www.openldap.org/doc/admin24/replication.html#Syncrepl%20Proxy%20Mode">Syncrepl Proxy Mode</a></li><br />
</ol><br />
<br />
1. Syncrepl is <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/doc/admin24/replication.html#LDAP%20Sync%20Replication');"  href="http://www.openldap.org/doc/admin24/replication.html#LDAP%20Sync%20Replication">covered exhaustively in the Admin Guide</a>, but briefly it always starts from the consumer, i.e. pull-based. Depending on how it's been configured, the consumer will check for updates at certain intervals or it will remain active and process the persistent messages from the provider, i.e. push based. It will always start from the consumer though, so bear this in mind for firewall issues. This is best used for directory replication where bandwidth isn't an issue due the fact that <strong>each consumer fetches and processes the complete changed object, including both the changed and unchanged attribute values</strong>:<br />
<blockquote><br />
For example, suppose you have a database consisting of 100,000 objects of 1 KB each. Further, suppose you routinely run a batch job to change the value of a single two-byte attribute value that appears in each of the 100,000 objects on the master. Not counting LDAP and TCP/IP protocol overhead, each time you run this job each consumer will transfer and process 1 GB of data to process 200KB of changes!<br />
</blockquote><br />
<br />
2. Delta-syncrepl came into existence due to the above fact. This isn't all bad though:<br />
<br />
<a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/doc/admin24/replication.html#Delta-syncrepl%20replication');"  href="http://www.openldap.org/doc/admin24/replication.html#Delta-syncrepl%20replication"><blockquote><br />
One advantage of this approach is that when multiple changes occur to a single object, the precise sequence of those changes need not be preserved; only the final state of the entry is significant. But this approach may have drawbacks when the usage pattern involves single changes to multiple objects.</blockquote></a><br />
<br />
Delta-syncrepl uses a changelog and the consumer checks this log for any updates. If these updates are too out of sync, the consumer will fall back to syncrepl to catch up and switch back to delta when ready.<br />
<br />
3. N-Way Multi-Master replication is new in 2.4 and will keep quiet all the people that complained about it not being there when comparing OpenLDAP to other proprietry directory servers. Why <strong>not</strong> to use it and when to use it is <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/doc/admin24/replication.html#N-Way%20Multi-Master%20replication');"  href="http://www.openldap.org/doc/admin24/replication.html#N-Way%20Multi-Master%20replication">discussed in full in the guide</a>. Basically you would use it because:<br />
<br />
- If any provider fails, other providers will continue to accept updates<br />
- Avoids a single point of failure<br />
- Providers can be located in several physical sites i.e. distributed across the network/globe.<br />
- Good for Automatic failover/High Availability<br />
<br />
4. MirrorMode replication is for Active-Active Hot-Standby and is often the best solution versus N-Way multimaster:<br />
<br />
<a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/doc/admin24/replication.html#MirrorMode%20replication');"  href="http://www.openldap.org/doc/admin24/replication.html#MirrorMode%20replication">In MirrorMode two providers are set up to replicate from each other (as a multi-master configuration), but an external frontend is employed to direct all writes to only one of the two servers. The second provider will only be used for writes if the first provider crashes, at which point the frontend will switch to directing all writes to the second provider. When a crashed provider is repaired and restarted it will automatically catch up to any changes on the running provider and resync.</a><br />
<br />
5. Syncrepl Proxy Mode is used for push-based replication and can be used to <a href="http://blog.suretecsystems.com/archives/129-Replacing-Slurpd-using-OpenLDAP-2.4.html">replace slurpd</a> whereby the provider pushes out changes. This is useful when a provider is behind a firewall which doesn't allow incoming connections and your slaves are outside the main network.<br />
<br />
Hopefully above helps you pick which replication to technique to use, but to quickly decide, ask yourself:<br />
<br />
1. Is bandwidth an issue?<br />
2. Where do I want my directories located?<br />
3. What firewalling do I have?<br />
4. What is most important to me; the ability to accept writes? an available directory? Distributed directories? Easy backups (mirrormode and N-way need careful planning)?<br />
<br />
There are more questions to ask and answer, but I'm sure you'll get there with the help of the docs and the <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/lists/');"  href="http://www.openldap.org/lists/">OpenLDAP Project support facilities</a>. If not, <a onclick="javascript: pageTracker._trackPageview('/extlink/www.suretecsystems.com/services/openldap/');"  href="http://www.suretecsystems.com/services/openldap/">speak to us</a>.<br />
<br />
Thanks,<br />
<br />
Gavin.<br />
<br />
<strong>If you have an entry for our "OpenLDAP Quick Tips" series, why not <a onclick="javascript: pageTracker._trackPageview('/extlink/www.suretecsystems.com/contact');"  href="http://www.suretecsystems.com/contact">e-mail your tip to us</a>.</strong><br />
<br />
P.S. For direct access to this section, you can click <a href="http://blog.suretecsystems.com/plugin/tag/OpenLDAP+Quick+Tips">OpenLDAP Quick Tips</a>.<br />
 
    
<p><a href="http://feeds.feedburner.com/~a/suretec?a=vxlgBi"><img src="http://feeds.feedburner.com/~a/suretec?i=vxlgBi" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/suretec?a=RcFiO"><img src="http://feeds.feedburner.com/~f/suretec?i=RcFiO" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=wEUpo"><img src="http://feeds.feedburner.com/~f/suretec?i=wEUpo" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=RNjtO"><img src="http://feeds.feedburner.com/~f/suretec?i=RNjtO" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=jf7qO"><img src="http://feeds.feedburner.com/~f/suretec?i=jf7qO" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/suretec/~4/487759508" height="1" width="1"/>]]></content:encoded>

    <pubDate>Wed, 17 Dec 2008 12:31:00 +0000</pubDate>
    <guid isPermaLink="false">http://blog.suretecsystems.com/archives/166-guid.html</guid>
    <category>Directory Services</category>
<category>Enterprise Backups</category>
<category>Enterprise Directory</category>
<category>IAM</category>
<category>IDM</category>
<category>Identity Management</category>
<category>LDAP</category>
<category>LDAP Replication</category>
<category>LDAP Schema</category>
<category>Linux</category>
<category>MySQL</category>
<category>Open Source</category>
<category>OpenLDAP</category>
<category>OpenLDAP Newsletter</category>
<category>OpenLDAP Quick Tips</category>
<category>PostgreSQL</category>
<category>Replication</category>
<category>Skills 1st</category>
<category>Suretec</category>
<category>Symas</category>
<category>X.500</category>
<category>ldap</category>
<category>openldap</category>

<feedburner:origLink>http://blog.suretecsystems.com/archives/166-OpenLDAP-Quick-Tips-Replication-Strategies.html</feedburner:origLink></item>
<item>
    <title>OpenLDAP Quick Tips: Interacting with LDAP from shell scripts by Vincent van Gelder</title>
    <link>http://feeds.feedburner.com/~r/suretec/~3/482686102/177-OpenLDAP-Quick-Tips-Interacting-with-LDAP-from-shell-scripts-by-Vincent-van-Gelder.html</link>
            <category>Open Source</category>
            <category>OpenLDAP</category>
            <category>Suretec</category>
    
    <comments>http://blog.suretecsystems.com/archives/177-OpenLDAP-Quick-Tips-Interacting-with-LDAP-from-shell-scripts-by-Vincent-van-Gelder.html#comments</comments>
    <wfw:comment>http://blog.suretecsystems.com/wfwcomment.php?cid=177</wfw:comment>

    <slash:comments>7</slash:comments>
    <wfw:commentRss>http://blog.suretecsystems.com/rss.php?version=2.0&amp;type=comments&amp;cid=177</wfw:commentRss>
    

    <author>nospam@example.com (Gavin Henry)</author>
    <content:encoded><![CDATA[
    Hi All,<br />
<br />
Here's the 21st tip in the "OpenLDAP Quick Tips" series kindly contributed by Vincent van Gelder.<br />
<br />
"You need to carry out LDAP<sup><span title="Lightweight Directory Access Protocol" class="serendipity_glossaryMarkup">[?]</span></sup> operations using shell scripts</a>".<br />
<br />
The following is an example sent in by Vincent van Gelder (you can <a onclick="javascript: pageTracker._trackPageview('/extlink/www.suretecsystems.com/contact');"  href="http://www.suretecsystems.com/contact">e-mail your tip to us</a> too</strong>):<br />
<br />
------------------------<br />
The following script I use when interacting with ldap<sup><span title="Lightweight Directory Access Protocol" class="serendipity_glossaryMarkup">[?]</span></sup> from shell scripts:<br />
<br />
<a href=" http://members.tripod.com/vgoenka/unixscripts/unldif.sed.txt"><br />
http://members.tripod.com/vgoenka/unixscripts/unldif.sed.txt</a><br />
<br />
Sample script:<br />
<br />
<div class="bb-code-title">CODE:</div><div class="bb-code">######################################
#!/bin/bash

PHOTO=/tmp/tux.jpg

IFS=$'\n'

for&#160;dn&#160;in&#160;$&#40;ldapsearch&#160;-ZZ&#160;-LLL&#160;-A&#160;-b
'ou=Users,ou=Intranet,o=Company,c=NL'&#160;-s&#160;one
'&#40;&amp;&#40;!&#40;jpegPhoto=&#42;&#41;&#41;&#40;objectClass=inetOrgPerson&#41;&#41;'&#160;jpegPhoto&#160;\
&#160;|&#160;unldif&#160;&#160;|&#160;grep&#160;'^dn'&#160;&#41;
do
&#160;&#160;&#160;&#160;echo&#160;$dn
&#160;&#160;&#160;&#160;echo&#160;"changetype&#58;&#160;modify"
&#160;&#160;&#160;&#160;echo&#160;"add&#58;&#160;jpegPhoto"
&#160;&#160;&#160;&#160;echo&#160;"jpegPhoto&#58;&#58;$&#40;openssl&#160;base64&#160;-in&#160;$PHOTO&#160;|&#160;sed&#160;'s/^/&#160;/'&#41;"
&#160;&#160;&#160;&#160;echo
done
######################################</div><br />
<br />
The sample script fetches users from ldap whithout a photo and adds a<br />
default photo. Output is a ldif.<br />
<br />
It also demonstrates how to add binary attributes from shell using<br />
openssl tool.<br />
<br />
The unldif script makes sure the dn is always just one line.<br />
<br />
-- <br />
Met vriendelijke groet,<br />
<br />
Vincent van Gelder<br />
------------------------<br />
<br />
<br />
Thanks,<br />
<br />
Gavin.<br />
<br />
<strong>If you have an entry for our "OpenLDAP Quick Tips" series, why not <a onclick="javascript: pageTracker._trackPageview('/extlink/www.suretecsystems.com/contact');"  href="http://www.suretecsystems.com/contact">e-mail your tip to us</a>.</strong><br />
<br />
P.S. For direct access to this section, you can click <a href="http://blog.suretecsystems.com/plugin/tag/OpenLDAP+Quick+Tips">OpenLDAP Quick Tips</a>.<br />
<br />
  
    
<p><a href="http://feeds.feedburner.com/~a/suretec?a=4RtWSV"><img src="http://feeds.feedburner.com/~a/suretec?i=4RtWSV" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/suretec?a=KoZgO"><img src="http://feeds.feedburner.com/~f/suretec?i=KoZgO" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=Aygio"><img src="http://feeds.feedburner.com/~f/suretec?i=Aygio" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=MHlHO"><img src="http://feeds.feedburner.com/~f/suretec?i=MHlHO" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=lZLNO"><img src="http://feeds.feedburner.com/~f/suretec?i=lZLNO" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/suretec/~4/482686102" height="1" width="1"/>]]></content:encoded>

    <pubDate>Fri, 12 Dec 2008 13:30:02 +0000</pubDate>
    <guid isPermaLink="false">http://blog.suretecsystems.com/archives/177-guid.html</guid>
    <category>Directory Services</category>
<category>Enterprise Backups</category>
<category>Enterprise Directory</category>
<category>IAM</category>
<category>IDM</category>
<category>Identity Management</category>
<category>LDAP</category>
<category>LDAP Replication</category>
<category>LDAP Schema</category>
<category>Linux</category>
<category>Open Source</category>
<category>OpenLDAP</category>
<category>OpenLDAP Newsletter</category>
<category>OpenLDAP Quick Tips</category>
<category>Replication</category>
<category>Suretec</category>
<category>Symas</category>
<category>X.500</category>
<category>ldap</category>
<category>openldap</category>

<feedburner:origLink>http://blog.suretecsystems.com/archives/177-OpenLDAP-Quick-Tips-Interacting-with-LDAP-from-shell-scripts-by-Vincent-van-Gelder.html</feedburner:origLink></item>
<item>
    <title>OpenLDAP Source vs Symas OpenLDAP</title>
    <link>http://feeds.feedburner.com/~r/suretec/~3/481551896/176-OpenLDAP-Source-vs-Symas-OpenLDAP.html</link>
            <category>Open Source</category>
            <category>Suretec</category>
    
    <comments>http://blog.suretecsystems.com/archives/176-OpenLDAP-Source-vs-Symas-OpenLDAP.html#comments</comments>
    <wfw:comment>http://blog.suretecsystems.com/wfwcomment.php?cid=176</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.suretecsystems.com/rss.php?version=2.0&amp;type=comments&amp;cid=176</wfw:commentRss>
    

    <author>nospam@example.com (Suretec)</author>
    <content:encoded><![CDATA[
    We've just published two comparisons of OpenLDAP source management versus Symas OpenLDAP Packages:<br />
<ul><br />
<li><a onclick="javascript: pageTracker._trackPageview('/extlink/www.suretecsystems.com/our_docs/Symas_OpenLDAP_vs_OpenLDAP_Source_2008.pdf');"  href="http://www.suretecsystems.com/our_docs/Symas_OpenLDAP_vs_OpenLDAP_Source_2008.pdf">OpenLDAP&#153; Source vs Symas&#153; OpenLDAP&#153;</a></li><br />
<li><a onclick="javascript: pageTracker._trackPageview('/extlink/www.suretecsystems.com/our_docs/Symas_OpenLDAP_vs_Debian_OpenLDAP_2008.pdf');"  href="http://www.suretecsystems.com/our_docs/Symas_OpenLDAP_vs_Debian_OpenLDAP_2008.pdf">Debian OpenLDAP&#153; vs Symas&#153; OpenLDAP&#153;</a></li><br />
</ul><br />
Nothing special, just a quick comparison.<br />
<br />
Suretec<sup>&reg;</sup>  
    
<p><a href="http://feeds.feedburner.com/~a/suretec?a=odLu17"><img src="http://feeds.feedburner.com/~a/suretec?i=odLu17" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/suretec?a=kr1FO"><img src="http://feeds.feedburner.com/~f/suretec?i=kr1FO" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=kwnvo"><img src="http://feeds.feedburner.com/~f/suretec?i=kwnvo" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=ceEfO"><img src="http://feeds.feedburner.com/~f/suretec?i=ceEfO" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=9iAAO"><img src="http://feeds.feedburner.com/~f/suretec?i=9iAAO" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/suretec/~4/481551896" height="1" width="1"/>]]></content:encoded>

    <pubDate>Thu, 11 Dec 2008 10:57:22 +0000</pubDate>
    <guid isPermaLink="false">http://blog.suretecsystems.com/archives/176-guid.html</guid>
    <category>Directory Services</category>
<category>Enterprise Backups</category>
<category>Enterprise Directory</category>
<category>IAM</category>
<category>IDM</category>
<category>Identity Management</category>
<category>LDAP</category>
<category>LDAP Replication</category>
<category>LDAP Schema</category>
<category>Linux</category>
<category>Open Source</category>
<category>OpenLDAP</category>
<category>OpenLDAP Newsletter</category>
<category>OpenLDAP Quick Tips</category>
<category>Replication</category>
<category>Suretec</category>
<category>Symas</category>
<category>Symas OpenLDAP</category>
<category>X.500</category>
<category>ldap</category>
<category>openldap</category>

<feedburner:origLink>http://blog.suretecsystems.com/archives/176-OpenLDAP-Source-vs-Symas-OpenLDAP.html</feedburner:origLink></item>
<item>
    <title>OpenLDAP Quick Tips: Enable in Directory Monitoring</title>
    <link>http://feeds.feedburner.com/~r/suretec/~3/481537279/175-OpenLDAP-Quick-Tips-Enable-in-Directory-Monitoring.html</link>
            <category>Open Source</category>
            <category>OpenLDAP</category>
            <category>Suretec</category>
    
    <comments>http://blog.suretecsystems.com/archives/175-OpenLDAP-Quick-Tips-Enable-in-Directory-Monitoring.html#comments</comments>
    <wfw:comment>http://blog.suretecsystems.com/wfwcomment.php?cid=175</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.suretecsystems.com/rss.php?version=2.0&amp;type=comments&amp;cid=175</wfw:commentRss>
    

    <author>nospam@example.com (Gavin Henry)</author>
    <content:encoded><![CDATA[
    Hi All,<br />
<br />
Here's the 20th tip in the "OpenLDAP Quick Tips" series:<br />
<br />
"You need to obtain information regarding the current state of your slapd instance</a>":<br />
<br />
<blockquote><a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/doc/admin24/monitoringslapd.html');"  href="http://www.openldap.org/doc/admin24/monitoringslapd.html">slapd(8) supports an optional LDAP<sup><span title="Lightweight Directory Access Protocol" class="serendipity_glossaryMarkup">[?]</span></sup> monitoring interface you can use to obtain information regarding the current state of your slapd instance. For instance, the interface allows you to determine how many clients are connected to the server currently. The monitoring information is provided by a specialized backend, the monitor backend. A manual page, slapd-monitor(5) is available.</a></blockquote><br />
<br />
At the end of your slapd.conf file add:<br />
<br />
<div class="bb-code-title">CODE:</div><div class="bb-code">database&#160;monitor</div><br />
<br />
and restart.<br />
<br />
You'll now be able to query information like the following and use it in your monitoring tools:<br />
<br />
<div class="bb-code-title">CODE:</div><div class="bb-code">dn&#58;&#160;cn=Total,cn=Connections,cn=Monitor
structuralObjectClass&#58;&#160;monitorCounterObject
monitorCounter&#58;&#160;4
entryDN&#58;&#160;cn=Total,cn=Connections,cn=Monitor
subschemaSubentry&#58;&#160;cn=Subschema
hasSubordinates&#58;&#160;FALSE</div><br />
<br />
<br />
Thanks,<br />
<br />
Gavin.<br />
<br />
<strong>If you have an entry for our "OpenLDAP Quick Tips" series, why not <a onclick="javascript: pageTracker._trackPageview('/extlink/www.suretecsystems.com/contact');"  href="http://www.suretecsystems.com/contact">e-mail your tip to us</a>.</strong><br />
<br />
P.S. For direct access to this section, you can click <a href="http://blog.suretecsystems.com/plugin/tag/OpenLDAP+Quick+Tips">OpenLDAP Quick Tips</a>.<br />
<br />
  
    
<p><a href="http://feeds.feedburner.com/~a/suretec?a=7Uzdd2"><img src="http://feeds.feedburner.com/~a/suretec?i=7Uzdd2" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/suretec?a=YlhuO"><img src="http://feeds.feedburner.com/~f/suretec?i=YlhuO" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=chEio"><img src="http://feeds.feedburner.com/~f/suretec?i=chEio" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=KRIUO"><img src="http://feeds.feedburner.com/~f/suretec?i=KRIUO" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=GVIqO"><img src="http://feeds.feedburner.com/~f/suretec?i=GVIqO" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/suretec/~4/481537279" height="1" width="1"/>]]></content:encoded>

    <pubDate>Thu, 11 Dec 2008 10:14:43 +0000</pubDate>
    <guid isPermaLink="false">http://blog.suretecsystems.com/archives/175-guid.html</guid>
    <category>Directory Services</category>
<category>Enterprise Backups</category>
<category>Enterprise Directory</category>
<category>IAM</category>
<category>IDM</category>
<category>Identity Management</category>
<category>LDAP</category>
<category>LDAP Replication</category>
<category>LDAP Schema</category>
<category>Linux</category>
<category>Open Source</category>
<category>OpenLDAP</category>
<category>OpenLDAP Newsletter</category>
<category>OpenLDAP Quick Tips</category>
<category>Replication</category>
<category>Suretec</category>
<category>Symas</category>
<category>X.500</category>
<category>ldap</category>
<category>openldap</category>

<feedburner:origLink>http://blog.suretecsystems.com/archives/175-OpenLDAP-Quick-Tips-Enable-in-Directory-Monitoring.html</feedburner:origLink></item>
<item>
    <title>OpenLDAP Quick Tips: Encrypt your Oracle Berkeley DB if necessary</title>
    <link>http://feeds.feedburner.com/~r/suretec/~3/479384495/174-OpenLDAP-Quick-Tips-Encrypt-your-Oracle-Berkeley-DB-if-necessary.html</link>
            <category>Open Source</category>
            <category>OpenLDAP</category>
            <category>Suretec</category>
    
    <comments>http://blog.suretecsystems.com/archives/174-OpenLDAP-Quick-Tips-Encrypt-your-Oracle-Berkeley-DB-if-necessary.html#comments</comments>
    <wfw:comment>http://blog.suretecsystems.com/wfwcomment.php?cid=174</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.suretecsystems.com/rss.php?version=2.0&amp;type=comments&amp;cid=174</wfw:commentRss>
    

    <author>nospam@example.com (Gavin Henry)</author>
    <content:encoded><![CDATA[
    Hi All,<br />
<br />
Here's the 18th tip in the "OpenLDAP Quick Tips" series:<br />
<br />
"You need to encrypt the raw bdb files</a>":<br />
<br />
This might be useful various reasons:<br />
<br />
<blockquote><a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/lists/openldap-devel/200712/msg00082.html');"  href="http://www.openldap.org/lists/openldap-devel/200712/msg00082.html">It may actually provide some value to sites that do regular backups of their raw DB files. It may actually be useful in some cases where you provide an encryption key on separate removable media (e.g. a USB flash drive). It might actually prevent a news article down the road on how some organization lost their 5 million record customer database and now all that unprotected data is now being exploited by criminals.<br />
<br />
I doubt it, of course. It exacts a performance penalty on every DB operation, so I don't think anyone will be able to use this long-term. For the off-site backup scenario, it makes more sense to just encrypt the backup images (tar format or whatever backup utility is used). That way you only spend cycles on encryption once, at backup time. Any site that's savvy enough to do automated backups can certainly figure out how to protect those backups with encryption.</a></blockquote><br />
<br />
 <br />
<br />
Also:<br />
<br />
<blockquote><a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/lists/openldap-devel/200712/msg00086.html');"  href="http://www.openldap.org/lists/openldap-devel/200712/msg00086.html">The one place where I could see using this is if one is using OpenLDAP as<br />
the backend to a Kerberos KDC.  It's considered best practice right now to<br />
always encrypt the KDC database at rest on disk, and some sites even<br />
require an administrator be present with a USB key to unlock the database<br />
whenever a KDC has to be rebooted.  Given the increasing interest in using<br />
LDAP<sup><span title="Lightweight Directory Access Protocol" class="serendipity_glossaryMarkup">[?]</span></sup> as a backend store for the KDC, this may be a simpler method for<br />
providing equivalent KDC security without encrypting various bits of data<br />
individually</a></blockquote><br />
<br />
Taking this all into account, what is needed is simply adding to your <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/software/man.cgi?query=slapd.conf&amp;amp;apropos=0&amp;amp;sektion=0&amp;amp;manpath=OpenLDAP+2.4-Release&amp;amp;format=html');"  href="http://www.openldap.org/software/man.cgi?query=slapd.conf&amp;apropos=0&amp;sektion=0&amp;manpath=OpenLDAP+2.4-Release&amp;format=html">slapd.conf</a> file:<br />
<br />
<div class="bb-code-title">CODE:</div><div class="bb-code">cryptkey&#160;testing</div><br />
<br />
Note: there is also a cryptfile option to store the password in a seperate file.<br />
<br />
If you already have a directory setup, then exporting your data and importing it again is needed to encrypt the files. A basic slapd.conf file needed would be:<br />
<br />
<div class="bb-code-title">CODE:</div><div class="bb-code">include		/usr/local/etc/openldap/schema/core.schema

pidfile		./slapd.pid
argsfile	./slapd.args

modulepath	/usr/local/libexec/openldap
moduleload	back_bdb.la

database	bdb
suffix		"dc=suretecsystems,dc=com"
rootdn		"cn=admin,dc=suretecsystems,dc=com"
rootpw		secret
directory	./openldap-data

cryptkey&#160;&#160;&#160;&#160;testing

index	objectClass	eq</div><br />
<br />
Then import your data with slapadd and test with the bdb tools:<br />
<br />
<div class="bb-code-title">CODE:</div><div class="bb-code">&#91;ghenry@suretec&#160;openldap-data&#93;$&#160;/usr/local/BerkeleyDB.4.7/bin/db_dump&#160;objectClass.bdb&#160;
db_verify&#58;&#160;Encrypted&#160;environment&#58;&#160;no&#160;encryption&#160;key&#160;supplied

&#91;ghenry@suretec&#160;openldap-data&#93;$&#160;/usr/local/BerkeleyDB.4.7/bin/db_dump&#160;-P&#160;"test"&#160;objectClass.bdb&#160;
db_verify&#58;&#160;Invalid&#160;password

&#91;ghenry@suretec&#160;openldap-data&#93;$&#160;/usr/local/BerkeleyDB.4.7/bin/db_dump&#160;-P&#160;"testing"&#160;objectClass.bdb&#160;
VERSION=3
format=bytevalue
type=btree
chksum=1
duplicates=1
dupsort=1
db_pagesize=4096
HEADER=END
&#160;0096defd
&#160;00000001
&#160;21d9e0af
&#160;00000001
&#160;62c4d55f
&#160;00000001
DATA=END</div><br />
<br />
Things to note:<br />
<br />
You need the bdb version that supports encryption, i.e. not the one that has <strong>NC</strong> in the package name and that the <a onclick="javascript: pageTracker._trackPageview('/extlink/www.oracle.com/technology/documentation/berkeley-db/db/ref/env/encrypt.html');"  href="http://www.oracle.com/technology/documentation/berkeley-db/db/ref/env/encrypt.html">only encrypted parts of a database environment are its databases and its log files. Specifically, the shared memory regions supporting the database environment are not encrypted. For this reason, it may be possible for an attacker to read some or all of an encrypted database by reading the on-disk files that back these shared memory regions.</a><br />
<br />
For more information see the <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/software/man.cgi?query=slapd-bdb&amp;amp;apropos=0&amp;amp;sektion=0&amp;amp;manpath=OpenLDAP+2.4-Release&amp;amp;format=html');"  href="http://www.openldap.org/software/man.cgi?query=slapd-bdb&amp;apropos=0&amp;sektion=0&amp;manpath=OpenLDAP+2.4-Release&amp;format=html">slapd-bdb</a> man page.<br />
<br />
Thanks,<br />
<br />
Gavin.<br />
<br />
<strong>If you have an entry for our "OpenLDAP Quick Tips" series, why not <a onclick="javascript: pageTracker._trackPageview('/extlink/www.suretecsystems.com/contact');"  href="http://www.suretecsystems.com/contact">e-mail your tip to us</a>.</strong><br />
<br />
P.S. For direct access to this section, you can click <a href="http://blog.suretecsystems.com/plugin/tag/OpenLDAP+Quick+Tips">OpenLDAP Quick Tips</a>.<br />
 
    
<p><a href="http://feeds.feedburner.com/~a/suretec?a=ft2S96"><img src="http://feeds.feedburner.com/~a/suretec?i=ft2S96" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/suretec?a=CQX6O"><img src="http://feeds.feedburner.com/~f/suretec?i=CQX6O" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=eFozo"><img src="http://feeds.feedburner.com/~f/suretec?i=eFozo" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=k642O"><img src="http://feeds.feedburner.com/~f/suretec?i=k642O" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=LlHaO"><img src="http://feeds.feedburner.com/~f/suretec?i=LlHaO" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/suretec/~4/479384495" height="1" width="1"/>]]></content:encoded>

    <pubDate>Tue, 09 Dec 2008 09:39:00 +0000</pubDate>
    <guid isPermaLink="false">http://blog.suretecsystems.com/archives/174-guid.html</guid>
    <category>Directory Services</category>
<category>Enterprise Backups</category>
<category>Enterprise Directory</category>
<category>IAM</category>
<category>IDM</category>
<category>Identity Management</category>
<category>LDAP</category>
<category>LDAP Replication</category>
<category>LDAP Schema</category>
<category>Linux</category>
<category>Open Source</category>
<category>OpenLDAP</category>
<category>OpenLDAP Newsletter</category>
<category>OpenLDAP Quick Tips</category>
<category>Replication</category>
<category>Suretec</category>
<category>Symas</category>
<category>X.500</category>
<category>ldap</category>
<category>openldap</category>

<feedburner:origLink>http://blog.suretecsystems.com/archives/174-OpenLDAP-Quick-Tips-Encrypt-your-Oracle-Berkeley-DB-if-necessary.html</feedburner:origLink></item>
<item>
    <title>OpenLDAP Quick Tips: Always 'make test'</title>
    <link>http://feeds.feedburner.com/~r/suretec/~3/474584343/162-OpenLDAP-Quick-Tips-Always-make-test.html</link>
            <category>Open Source</category>
            <category>OpenLDAP</category>
            <category>Suretec</category>
    
    <comments>http://blog.suretecsystems.com/archives/162-OpenLDAP-Quick-Tips-Always-make-test.html#comments</comments>
    <wfw:comment>http://blog.suretecsystems.com/wfwcomment.php?cid=162</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.suretecsystems.com/rss.php?version=2.0&amp;type=comments&amp;cid=162</wfw:commentRss>
    

    <author>nospam@example.com (Gavin Henry)</author>
    <content:encoded><![CDATA[
    Hi All,<br />
<br />
Here's the 17th tip in the "OpenLDAP Quick Tips" series:<br />
<br />
"You've successfully built your own instance of OpenLDAP but want to make sure you've done it right</a>":<br />
<br />
So, you've <a href="http://blog.suretecsystems.com/archives/155-OpenLDAP-2.4.13-Released.html">grabbed the latest version</a>, <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/doc/admin24/install.html');"  href="http://www.openldap.org/doc/admin24/install.html">compiled it</a> and want to <a onclick="javascript: pageTracker._trackPageview('/extlink/http://www.openldap.org/doc/admin/quickstart.html');"  href="http://http://www.openldap.org/doc/admin/quickstart.html">get started straight way</a>, but stop! Hours and hours have been spent writing <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/devel/cvsweb.cgi/tests/scripts/?hideattic=1&amp;amp;sortbydate=0');"  href="http://www.openldap.org/devel/cvsweb.cgi/tests/scripts/?hideattic=1&amp;sortbydate=0">test scripts for OpenLDAP</a>, so please, please, please run:<br />
<br />
<div class="bb-code-title">CODE:</div><div class="bb-code">make&#160;test</div><br />
<br />
before<br />
<br />
<div class="bb-code-title">CODE:</div><div class="bb-code">su&#160;-c&#160;"make&#160;install"</div><br />
<br />
and save the <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/its/');"  href="http://www.openldap.org/its/">OpenLDAP Issue Tracking System</a> from getting full with silly reports!<br />
<br />
Also, see our <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/faq/data/cache/8.html');"  href="http://www.openldap.org/faq/data/cache/8.html">installation section of the FAQ</a>.<br />
<br />
If this is too much, why not get supported, prepackaged versions of OpenLDAP: <a onclick="javascript: pageTracker._trackPageview('/extlink/www.symas.com/cds.shtml');"  href="http://www.symas.com/cds.shtml">Symas™ OpenLDAP™ Directory Services™</a><br />
<br />
Thanks,<br />
<br />
Gavin.<br />
<br />
<strong>If you have an entry for our "OpenLDAP Quick Tips" series, why not <a onclick="javascript: pageTracker._trackPageview('/extlink/www.suretecsystems.com/contact');"  href="http://www.suretecsystems.com/contact">e-mail your tip to us</a>.</strong><br />
<br />
P.S. For direct access to this section, you can click <a href="http://blog.suretecsystems.com/plugin/tag/OpenLDAP+Quick+Tips">OpenLDAP Quick Tips</a>.<br />
  
    
<p><a href="http://feeds.feedburner.com/~a/suretec?a=uVaUTu"><img src="http://feeds.feedburner.com/~a/suretec?i=uVaUTu" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/suretec?a=NZFxO"><img src="http://feeds.feedburner.com/~f/suretec?i=NZFxO" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=bFD2o"><img src="http://feeds.feedburner.com/~f/suretec?i=bFD2o" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=wV95O"><img src="http://feeds.feedburner.com/~f/suretec?i=wV95O" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=FNc3O"><img src="http://feeds.feedburner.com/~f/suretec?i=FNc3O" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/suretec/~4/474584343" height="1" width="1"/>]]></content:encoded>

    <pubDate>Thu, 04 Dec 2008 11:22:00 +0000</pubDate>
    <guid isPermaLink="false">http://blog.suretecsystems.com/archives/162-guid.html</guid>
    <category>Directory Services</category>
<category>Enterprise Backups</category>
<category>Enterprise Directory</category>
<category>IAM</category>
<category>IDM</category>
<category>Identity Management</category>
<category>LDAP</category>
<category>LDAP Replication</category>
<category>LDAP Schema</category>
<category>Linux</category>
<category>Open Source</category>
<category>OpenLDAP</category>
<category>OpenLDAP Newsletter</category>
<category>OpenLDAP Quick Tips</category>
<category>Replication</category>
<category>Suretec</category>
<category>Symas</category>
<category>X.500</category>
<category>ldap</category>
<category>openldap</category>

<feedburner:origLink>http://blog.suretecsystems.com/archives/162-OpenLDAP-Quick-Tips-Always-make-test.html</feedburner:origLink></item>
<item>
    <title>OpenLDAP Quick Tips: Auditing - who modified what at what times?</title>
    <link>http://feeds.feedburner.com/~r/suretec/~3/473718147/173-OpenLDAP-Quick-Tips-Auditing-who-modified-what-at-what-times.html</link>
            <category>Open Source</category>
            <category>OpenLDAP</category>
            <category>Suretec</category>
    
    <comments>http://blog.suretecsystems.com/archives/173-OpenLDAP-Quick-Tips-Auditing-who-modified-what-at-what-times.html#comments</comments>
    <wfw:comment>http://blog.suretecsystems.com/wfwcomment.php?cid=173</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.suretecsystems.com/rss.php?version=2.0&amp;type=comments&amp;cid=173</wfw:commentRss>
    

    <author>nospam@example.com (Gavin Henry)</author>
    <content:encoded><![CDATA[
    Hi All,<br />
<br />
Here's the 16th tip in the "OpenLDAP Quick Tips" series (as requested by Bronius Motekaitis):<br />
<br />
"You want to audit OpenLDAP for changes: who modified what at what times?</a>":<br />
<br />
Apart from <a href="http://blog.suretecsystems.com/archives/148-OpenLDAP-Quick-Tips-Using-syslog-or-syslog-ng-with-slapd-for-OpenLDAP-logging.html">normal logging via syslog</a> there are two options for this; file based audit logging or LDAP<sup><span title="Lightweight Directory Access Protocol" class="serendipity_glossaryMarkup">[?]</span></sup> based logging (in directory).<br />
<br />
For file based see <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/doc/admin24/overlays.html#Audit%20Logging');"  href="http://www.openldap.org/doc/admin24/overlays.html#Audit%20Logging">Audit Logging</a> and related man page <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/software/man.cgi?query=slapo-auditlog&amp;amp;apropos=0&amp;amp;sektion=0&amp;amp;manpath=OpenLDAP+2.4-Release&amp;amp;format=html');"  href="http://www.openldap.org/software/man.cgi?query=slapo-auditlog&amp;apropos=0&amp;sektion=0&amp;manpath=OpenLDAP+2.4-Release&amp;format=html">slapo-auditlog</a>:<br />
<br />
<blockquote>       The  Audit Logging overlay can be used to record all changes on a given<br />
       backend database to a specified log file. Changes are logged  as  stan-<br />
       dard  LDIF,  with  an additional comment header giving the timestamp of<br />
       the change and the identity of the user making the change.<br />
</blockquote><br />
<br />
For in directory logging see <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/doc/admin24/overlays.html#Access%20Logging');"  href="http://www.openldap.org/doc/admin24/overlays.html#Access%20Logging">Access Logging</a> and related man page <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/software/man.cgi?query=slapo-accesslog&amp;amp;apropos=0&amp;amp;sektion=0&amp;amp;manpath=OpenLDAP+2.4-Release&amp;amp;format=html');"  href="http://www.openldap.org/software/man.cgi?query=slapo-accesslog&amp;apropos=0&amp;sektion=0&amp;manpath=OpenLDAP+2.4-Release&amp;format=html">slapo-accesslog</a>:<br />
<br />
<blockquote>       The  Access  Logging  overlay  can  be used to record all accesses to a<br />
       given backend database on another database.  This  allows  all  of  the<br />
       activity  on  a	given  database  to  be  reviewed using arbitrary LDAP<br />
       queries, instead of just logging to local flat text  files.<br />
</blockquote><br />
<br />
Thanks,<br />
<br />
Gavin.<br />
<br />
<strong>If you have an entry for our "OpenLDAP Quick Tips" series, why not <a onclick="javascript: pageTracker._trackPageview('/extlink/www.suretecsystems.com/contact');"  href="http://www.suretecsystems.com/contact">e-mail your tip to us</a>.</strong><br />
<br />
P.S. For direct access to this section, you can click <a href="http://blog.suretecsystems.com/plugin/tag/OpenLDAP+Quick+Tips">OpenLDAP Quick Tips</a>.<br />
  
    
<p><a href="http://feeds.feedburner.com/~a/suretec?a=8778lL"><img src="http://feeds.feedburner.com/~a/suretec?i=8778lL" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/suretec?a=LPaDO"><img src="http://feeds.feedburner.com/~f/suretec?i=LPaDO" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=vivNo"><img src="http://feeds.feedburner.com/~f/suretec?i=vivNo" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=PxXqO"><img src="http://feeds.feedburner.com/~f/suretec?i=PxXqO" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=F0GVO"><img src="http://feeds.feedburner.com/~f/suretec?i=F0GVO" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/suretec/~4/473718147" height="1" width="1"/>]]></content:encoded>

    <pubDate>Wed, 03 Dec 2008 15:22:16 +0000</pubDate>
    <guid isPermaLink="false">http://blog.suretecsystems.com/archives/173-guid.html</guid>
    <category>Directory Services</category>
<category>Enterprise Backups</category>
<category>Enterprise Directory</category>
<category>IAM</category>
<category>IDM</category>
<category>Identity Management</category>
<category>LDAP</category>
<category>LDAP Replication</category>
<category>LDAP Schema</category>
<category>Linux</category>
<category>Open Source</category>
<category>OpenLDAP</category>
<category>OpenLDAP Newsletter</category>
<category>OpenLDAP Quick Tips</category>
<category>Replication</category>
<category>Suretec</category>
<category>Symas</category>
<category>X.500</category>
<category>ldap</category>
<category>openldap</category>

<feedburner:origLink>http://blog.suretecsystems.com/archives/173-OpenLDAP-Quick-Tips-Auditing-who-modified-what-at-what-times.html</feedburner:origLink></item>
<item>
    <title>OpenLDAP Quick Tips: Change loglevels on the fly!</title>
    <link>http://feeds.feedburner.com/~r/suretec/~3/472448544/163-OpenLDAP-Quick-Tips-Change-loglevels-on-the-fly!.html</link>
            <category>Open Source</category>
            <category>OpenLDAP</category>
            <category>Suretec</category>
    
    <comments>http://blog.suretecsystems.com/archives/163-OpenLDAP-Quick-Tips-Change-loglevels-on-the-fly!.html#comments</comments>
    <wfw:comment>http://blog.suretecsystems.com/wfwcomment.php?cid=163</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.suretecsystems.com/rss.php?version=2.0&amp;type=comments&amp;cid=163</wfw:commentRss>
    

    <author>nospam@example.com (Gavin Henry)</author>
    <content:encoded><![CDATA[
    Hi All,<br />
<br />
Here's the 15th tip in the "OpenLDAP Quick Tips" series:<br />
<br />
"You want to change your OpenLDAP loglevel to get more information, but can't take your directory server offline</a>":<br />
<br />
If you've been following the <a href="http://blog.suretecsystems.com/plugin/tag/OpenLDAP+Quick+Tips">OpenLDAP Quick Tips</a> series, you would have already read <a href="http://blog.suretecsystems.com/archives/159-OpenLDAP-Quick-Tips-Switch-to-the-dynamic-config-backend-cnconfig.html">Switch to the dynamic config backend (cn=config)</a> and will now have a live <strong>slapd dynamic backend</strong> configured. If not, go back and read it over <img src="http://blog.suretecsystems.com/templates/default/img/emoticons/wink.png" alt=";-)" style="display: inline; vertical-align: bottom;" class="emoticon" /><br />
 <br />
Let's say you are running the <strong>stats (256)</strong> loglevel, but you want to know look at the sync loglevel or both. Making the change is much the same as with <a href="http://blog.suretecsystems.com/archives/158-OpenLDAP-Quick-Tips-Check-your-indices.html">Check your indices</a>. First we check our current level:<br />
<br />
<div class="bb-code-title">CODE:</div><div class="bb-code">&#91;ghenry@suretec&#160;~&#93;$&#160;ldapsearch&#160;-x&#160;-H&#160;ldap<sup><span title="Lightweight Directory Access Protocol" class="serendipity_glossaryMarkup">[?]</span></sup>&#58;//xxx.xxx.xxx.xxx&#160;-b&#160;'cn=config'&#160;-D&#160;'cn=config'&#160;-s&#160;base&#160;-LLL&#160;-W&#160;olcLoglevel&#160;
Enter&#160;LDAP<sup><span title="Lightweight Directory Access Protocol" class="serendipity_glossaryMarkup">[?]</span></sup>&#160;Password&#58;&#160;
dn&#58;&#160;cn=config
olcLogLevel&#58;&#160;Stats</div><br />
<br />
This shows that we are on the <strong>stats (256)</strong> level. We can either swap this to <strong>sync</strong> or add it to the current level not loosing the stats level. Let's add it with the following LDIF:<br />
<br />
<div class="bb-code-title">CODE:</div><div class="bb-code">dn&#58;&#160;cn=config&#160;
changetype&#58;&#160;modify&#160;
add&#58;&#160;olcLoglevel
olcLoglevel&#58;&#160;Sync</div><br />
<br />
The results will look like:<br />
<br />
<div class="bb-code-title">CODE:</div><div class="bb-code">ldapmodify&#160;-x&#160;-D&#160;'cn=config'&#160;-W&#160;-f&#160;newloglevel.ldif</div><br />
<br />
which will show in your logs as:<br />
<br />
<div class="bb-code-title">CODE:</div><div class="bb-code">Dec&#160;&#160;2&#160;13&#58;06&#58;23&#160;suretecsystems&#160;slapd&#91;27824&#93;&#58;&#160;conn=13687&#160;fd=46&#160;ACCEPT&#160;from&#160;IP=XXX.XXX.XXX.XXX&#58;46272&#160;&#40;IP=0.0.0.0&#58;389&#41;&#160;
Dec&#160;&#160;2&#160;13&#58;06&#58;23&#160;suretecsystems&#160;slapd&#91;27824&#93;&#58;&#160;conn=13687&#160;op=0&#160;BIND&#160;dn="cn=config"&#160;method=128&#160;
Dec&#160;&#160;2&#160;13&#58;06&#58;23&#160;suretecsystems&#160;slapd&#91;27824&#93;&#58;&#160;conn=13687&#160;op=0&#160;BIND&#160;dn="cn=config"&#160;mech=SIMPLE&#160;ssf=0&#160;
Dec&#160;&#160;2&#160;13&#58;06&#58;23&#160;suretecsystems&#160;slapd&#91;27824&#93;&#58;&#160;conn=13687&#160;op=0&#160;RESULT&#160;tag=97&#160;err=0&#160;text=&#160;
Dec&#160;&#160;2&#160;13&#58;06&#58;23&#160;suretecsystems&#160;slapd&#91;27824&#93;&#58;&#160;conn=13687&#160;op=1&#160;MOD&#160;dn="cn=config"&#160;
Dec&#160;&#160;2&#160;13&#58;06&#58;23&#160;suretecsystems&#160;slapd&#91;27824&#93;&#58;&#160;conn=13687&#160;op=1&#160;MOD&#160;attr=olcLoglevel&#160;
Dec&#160;&#160;2&#160;13&#58;06&#58;23&#160;suretecsystems&#160;slapd&#91;27824&#93;&#58;&#160;slap_queue_csn&#58;&#160;queing&#160;0x8b986aa2&#160;20081202130623.645866Z&amp;000000;000#000000&#160;
Dec&#160;&#160;2&#160;13&#58;06&#58;23&#160;suretecsystems&#160;slapd&#91;27824&#93;&#58;&#160;conn=13687&#160;op=1&#160;RESULT&#160;tag=103&#160;err=0&#160;text=&#160;
Dec&#160;&#160;2&#160;13&#58;06&#58;23&#160;suretecsystems&#160;slapd&#91;27824&#93;&#58;&#160;slap_graduate_commit_csn&#58;&#160;removing&#160;0xa39d730&#160;20081202130623.645866Z&amp;000000;000#000000&#160;
Dec&#160;&#160;2&#160;13&#58;06&#58;23&#160;suretecsystems&#160;slapd&#91;27824&#93;&#58;&#160;conn=13687&#160;op=2&#160;UNBIND&#160;
Dec&#160;&#160;2&#160;13&#58;06&#58;23&#160;suretecsystems&#160;slapd&#91;27824&#93;&#58;&#160;conn=13687&#160;fd=46&#160;close</div><br />
<br />
To remove it just use a delete changetype.<br />
<br />
It should now be obvious how to add and change settings via <strong>cn=config</strong>.<br />
<br />
Thanks,<br />
<br />
Gavin.<br />
<br />
<strong>If you have an entry for our "OpenLDAP Quick Tips" series, why not <a onclick="javascript: pageTracker._trackPageview('/extlink/www.suretecsystems.com/contact');"  href="http://www.suretecsystems.com/contact">e-mail your tip to us</a>.</strong><br />
<br />
P.S. For direct access to this section, you can click <a href="http://blog.suretecsystems.com/plugin/tag/OpenLDAP+Quick+Tips">OpenLDAP Quick Tips</a>.<br />
 
    
<p><a href="http://feeds.feedburner.com/~a/suretec?a=IAP3iX"><img src="http://feeds.feedburner.com/~a/suretec?i=IAP3iX" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/suretec?a=arR1O"><img src="http://feeds.feedburner.com/~f/suretec?i=arR1O" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=o1Koo"><img src="http://feeds.feedburner.com/~f/suretec?i=o1Koo" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=6EWPO"><img src="http://feeds.feedburner.com/~f/suretec?i=6EWPO" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=0E7BO"><img src="http://feeds.feedburner.com/~f/suretec?i=0E7BO" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/suretec/~4/472448544" height="1" width="1"/>]]></content:encoded>

    <pubDate>Tue, 02 Dec 2008 12:45:00 +0000</pubDate>
    <guid isPermaLink="false">http://blog.suretecsystems.com/archives/163-guid.html</guid>
    <category>Directory Services</category>
<category>Enterprise Backups</category>
<category>Enterprise Directory</category>
<category>IAM</category>
<category>IDM</category>
<category>Identity Management</category>
<category>LDAP</category>
<category>LDAP Replication</category>
<category>LDAP Schema</category>
<category>Linux</category>
<category>Open Source</category>
<category>OpenLDAP</category>
<category>OpenLDAP Newsletter</category>
<category>OpenLDAP Quick Tips</category>
<category>Replication</category>
<category>Suretec</category>
<category>Symas</category>
<category>X.500</category>
<category>ldap</category>
<category>openldap</category>

<feedburner:origLink>http://blog.suretecsystems.com/archives/163-OpenLDAP-Quick-Tips-Change-loglevels-on-the-fly!.html</feedburner:origLink></item>
<item>
    <title>OpenLDAP Quick Tips: OpenLDAP Logfile analysis</title>
    <link>http://feeds.feedburner.com/~r/suretec/~3/471363803/172-OpenLDAP-Quick-Tips-OpenLDAP-Logfile-analysis.html</link>
            <category>Open Source</category>
            <category>OpenLDAP</category>
            <category>Suretec</category>
    
    <comments>http://blog.suretecsystems.com/archives/172-OpenLDAP-Quick-Tips-OpenLDAP-Logfile-analysis.html#comments</comments>
    <wfw:comment>http://blog.suretecsystems.com/wfwcomment.php?cid=172</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://blog.suretecsystems.com/rss.php?version=2.0&amp;type=comments&amp;cid=172</wfw:commentRss>
    

    <author>nospam@example.com (Gavin Henry)</author>
    <content:encoded><![CDATA[
    Hi All,<br />
<br />
Here's the 14th tip in the "OpenLDAP Quick Tips" series and today it comes from "Pablo Chamorro":<br />
<br />
"You want to analyse your OpenLDAP logfile</a>":<br />
<br />
There are various ways to do this yourself by hand, but the have community already done the work for you and written the:<br />
<br />
<a onclick="javascript: pageTracker._trackPageview('/extlink/prefetch.net/code/ldap-stats.pl.html');"  href="http://prefetch.net/code/ldap-stats.pl.html">OpenLDAP Logfile analysis utility</a>:<br />
<blockquote><br />
<strong>ldap<sup><span title="Lightweight Directory Access Protocol" class="serendipity_glossaryMarkup">[?]</span></sup>-stats.pl</strong> is a Perl program that can be used to analyze and report on OpenLDAP logfiles. The available reports include: operations (e.g., Connect, Bind, Unbind) performed per host, unindexed searches, attributes requested, search filters used, total operations per server, and operation breakdowns by day, hour and month.</blockquote><br />
<br />
A short sample output would look like:<br />
 <br />
<div class="bb-code-title">CODE:</div><div class="bb-code">&#91;root@suretec&#160;~&#93;#&#160;./ldap-stats.pl&#160;/var/log/openldap.log&#160;


Report&#160;Generated&#160;on&#160;Mon&#160;Dec&#160;&#160;1&#160;14&#58;57&#58;43&#160;2008
--------------------------------------------
Processed&#160;"/var/log/openldap.log"&#58;&#160;&#160;Apr&#160;&#160;5&#160;00&#58;01&#58;50&#160;-&#160;Dec&#160;&#160;1&#160;08&#58;39&#58;33


Operation&#160;totals
----------------
Total&#160;operations&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#58;&#160;19258
Total&#160;connections&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#58;&#160;7061
Total&#160;authentication&#160;failures&#160;&#58;&#160;2358
Total&#160;binds&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#58;&#160;4403
Total&#160;unbinds&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#58;&#160;6661
Total&#160;searches&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#58;&#160;7849
Total&#160;compares&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#58;&#160;0
Total&#160;modifications&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#58;&#160;215
Total&#160;modrdns&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#58;&#160;0
Total&#160;additions&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#58;&#160;128
Total&#160;deletions&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#58;&#160;2
Unindexed&#160;attribute&#160;requests&#160;&#160;&#58;&#160;0
Operations&#160;per&#160;connection&#160;&#160;&#160;&#160;&#160;&#58;&#160;2.73

.....
.....
.....</div><br />
<br />
<a onclick="javascript: pageTracker._trackPageview('/extlink/prefetch.net/code/ldap-stats.pl.txt');"  href="http://prefetch.net/code/ldap-stats.pl.txt">A longer sample is available.</a><br />
<br />
Thanks,<br />
<br />
Gavin.<br />
<br />
<strong>If you have an entry for our "OpenLDAP Quick Tips" series, why not <a onclick="javascript: pageTracker._trackPageview('/extlink/www.suretecsystems.com/contact');"  href="http://www.suretecsystems.com/contact">e-mail your tip to us</a>.</strong><br />
<br />
P.S. For direct access to this section, you can click <a href="http://blog.suretecsystems.com/plugin/tag/OpenLDAP+Quick+Tips">OpenLDAP Quick Tips</a>. 
    
<p><a href="http://feeds.feedburner.com/~a/suretec?a=cQW1EO"><img src="http://feeds.feedburner.com/~a/suretec?i=cQW1EO" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/suretec?a=iHDoO"><img src="http://feeds.feedburner.com/~f/suretec?i=iHDoO" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=vT8ao"><img src="http://feeds.feedburner.com/~f/suretec?i=vT8ao" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=r1ftO"><img src="http://feeds.feedburner.com/~f/suretec?i=r1ftO" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=06WiO"><img src="http://feeds.feedburner.com/~f/suretec?i=06WiO" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/suretec/~4/471363803" height="1" width="1"/>]]></content:encoded>

    <pubDate>Mon, 01 Dec 2008 14:32:43 +0000</pubDate>
    <guid isPermaLink="false">http://blog.suretecsystems.com/archives/172-guid.html</guid>
    <category>Directory Services</category>
<category>Enterprise Backups</category>
<category>Enterprise Directory</category>
<category>IAM</category>
<category>IDM</category>
<category>Identity Management</category>
<category>LDAP</category>
<category>LDAP Replication</category>
<category>LDAP Schema</category>
<category>Linux</category>
<category>Open Source</category>
<category>OpenLDAP</category>
<category>OpenLDAP Newsletter</category>
<category>OpenLDAP Quick Tips</category>
<category>Replication</category>
<category>Suretec</category>
<category>Symas</category>
<category>X.500</category>
<category>ldap</category>
<category>openldap</category>

<feedburner:origLink>http://blog.suretecsystems.com/archives/172-OpenLDAP-Quick-Tips-OpenLDAP-Logfile-analysis.html</feedburner:origLink></item>
<item>
    <title>OpenLDAP Quick Tips: Use the FAQ!</title>
    <link>http://feeds.feedburner.com/~r/suretec/~3/468169784/171-OpenLDAP-Quick-Tips-Use-the-FAQ!.html</link>
            <category>Open Source</category>
            <category>OpenLDAP</category>
            <category>Suretec</category>
    
    <comments>http://blog.suretecsystems.com/archives/171-OpenLDAP-Quick-Tips-Use-the-FAQ!.html#comments</comments>
    <wfw:comment>http://blog.suretecsystems.com/wfwcomment.php?cid=171</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.suretecsystems.com/rss.php?version=2.0&amp;type=comments&amp;cid=171</wfw:commentRss>
    

    <author>nospam@example.com (Gavin Henry)</author>
    <content:encoded><![CDATA[
    Hi All,<br />
<br />
Here's my 13th tip in the "OpenLDAP Quick Tips" series:<br />
<br />
"You have a question, but you're sure someone has been there before</a>":<br />
<br />
That's what <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org');"  href="http://www.openldap.org">our</a> <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/faq/data/cache/1.html');"  href="http://www.openldap.org/faq/data/cache/1.html">FAQ-O-Matic</a> is for!<br />
<br />
<a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/faq/index.cgi?cmd=searchForm&amp;amp;file=1');"  href="http://www.openldap.org/faq/index.cgi?cmd=searchForm&amp;file=1">Search it</a>, <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/faq/data/cache/1.html');"  href="http://www.openldap.org/faq/data/cache/1.html">browse it</a> and check the common areas:<br />
<ol><br />
<li><a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/faq/data/cache/8.html');"  href="http://www.openldap.org/faq/data/cache/8.html">Installation</a></li><br />
<li><a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/faq/data/cache/51.html');"  href="http://www.openldap.org/faq/data/cache/51.html">Configuration</a></li><br />
<li><a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/faq/data/cache/60.html');"  href="http://www.openldap.org/faq/data/cache/60.html">Integration</a></li><br />
<li><a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/faq/data/cache/286.html');"  href="http://www.openldap.org/faq/data/cache/286.html">Maintenance</a></li><br />
<li><a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/faq/data/cache/53.html');"  href="http://www.openldap.org/faq/data/cache/53.html">Common Errors</a></li><br />
<li><a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/faq/data/cache/56.html');"  href="http://www.openldap.org/faq/data/cache/56.html">When all else fails...</a></li><br />
</ol><br />
When all else fails, join our <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/lists/');"  href="http://www.openldap.org/lists/">mailing lists</a>.<br />
<br />
Thanks,<br />
<br />
Gavin.<br />
<br />
<strong>If you have an entry for our "OpenLDAP Quick Tips" series, why not <a onclick="javascript: pageTracker._trackPageview('/extlink/www.suretecsystems.com/contact');"  href="http://www.suretecsystems.com/contact">e-mail your tip to us</a>.</strong><br />
<br />
P.S. For direct access to this section, you can click <a href="http://blog.suretecsystems.com/plugin/tag/OpenLDAP+Quick+Tips">OpenLDAP Quick Tips</a>.  
    
<p><a href="http://feeds.feedburner.com/~a/suretec?a=pa8RBh"><img src="http://feeds.feedburner.com/~a/suretec?i=pa8RBh" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/suretec?a=Fk01N"><img src="http://feeds.feedburner.com/~f/suretec?i=Fk01N" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=Bm1Xn"><img src="http://feeds.feedburner.com/~f/suretec?i=Bm1Xn" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=klIfN"><img src="http://feeds.feedburner.com/~f/suretec?i=klIfN" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=q6N5N"><img src="http://feeds.feedburner.com/~f/suretec?i=q6N5N" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/suretec/~4/468169784" height="1" width="1"/>]]></content:encoded>

    <pubDate>Fri, 28 Nov 2008 09:09:33 +0000</pubDate>
    <guid isPermaLink="false">http://blog.suretecsystems.com/archives/171-guid.html</guid>
    <category>Directory Services</category>
<category>Enterprise Backups</category>
<category>Enterprise Directory</category>
<category>IAM</category>
<category>IDM</category>
<category>Identity Management</category>
<category>LDAP</category>
<category>LDAP Replication</category>
<category>LDAP Schema</category>
<category>Linux</category>
<category>Open Source</category>
<category>OpenLDAP</category>
<category>OpenLDAP Newsletter</category>
<category>OpenLDAP Quick Tips</category>
<category>Replication</category>
<category>Suretec</category>
<category>Symas</category>
<category>X.500</category>
<category>ldap</category>
<category>openldap</category>

<feedburner:origLink>http://blog.suretecsystems.com/archives/171-OpenLDAP-Quick-Tips-Use-the-FAQ!.html</feedburner:origLink></item>
<item>
    <title>OpenLDAP Quick Tips: Switch to the dynamic config backend (cn=config)</title>
    <link>http://feeds.feedburner.com/~r/suretec/~3/467201738/159-OpenLDAP-Quick-Tips-Switch-to-the-dynamic-config-backend-cnconfig.html</link>
            <category>Open Source</category>
            <category>OpenLDAP</category>
            <category>Suretec</category>
    
    <comments>http://blog.suretecsystems.com/archives/159-OpenLDAP-Quick-Tips-Switch-to-the-dynamic-config-backend-cnconfig.html#comments</comments>
    <wfw:comment>http://blog.suretecsystems.com/wfwcomment.php?cid=159</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.suretecsystems.com/rss.php?version=2.0&amp;type=comments&amp;cid=159</wfw:commentRss>
    

    <author>nospam@example.com (Gavin Henry)</author>
    <content:encoded><![CDATA[
    Hi All,<br />
<br />
Here's my 12th tip in the "OpenLDAP Quick Tips" series:<br />
<br />
"You want to switch from <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/software/man.cgi?query=slapd.conf&amp;amp;apropos=0&amp;amp;sektion=0&amp;amp;manpath=OpenLDAP+2.4-Release&amp;amp;format=html');"  href="http://www.openldap.org/software/man.cgi?query=slapd.conf&amp;apropos=0&amp;sektion=0&amp;manpath=OpenLDAP+2.4-Release&amp;format=html">slapd.conf</a> to the <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/software/man.cgi?query=slapd-config&amp;amp;apropos=0&amp;amp;sektion=0&amp;amp;manpath=OpenLDAP+2.4-Release&amp;amp;format=html');"  href="http://www.openldap.org/software/man.cgi?query=slapd-config&amp;apropos=0&amp;sektion=0&amp;manpath=OpenLDAP+2.4-Release&amp;format=html">configuration backend to slapd</a>":<br />
<br />
<blockquote>       The config backend is backward compatible with the older  slapd.conf(5)<br />
       file  but  provides the ability to change the configuration dynamically<br />
       at runtime. If slapd is run with only a slapd.conf file dynamic changes<br />
       will  be  allowed  but  they  will not persist across a server restart.<br />
       Dynamic changes are only saved when slapd is  running  from  a  slapd.d<br />
       configuration directory.<br />
</blockquote><br />
<br />
<br />
The following should be getting you very excited:<br />
<br />
<blockquote>provides the ability to change the configuration dynamically<br />
at runtime.<br />
</blockquote> <br />
<br />
<strong>"What, I don't need to restart my directory server if I make config changes?"</strong><br />
<br />
Not only that, but you can do cool things like promoting/switching a slave directory server to a master server on the fly! (that's one for another tip though).<br />
<br />
To start, we will simply show you how to convert an existing fully configured <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/software/man.cgi?query=slapd.conf&amp;amp;apropos=0&amp;amp;sektion=0&amp;amp;manpath=OpenLDAP+2.4-Release&amp;amp;format=html');"  href="http://www.openldap.org/software/man.cgi?query=slapd.conf&amp;apropos=0&amp;sektion=0&amp;manpath=OpenLDAP+2.4-Release&amp;format=html">slapd.conf</a> to the <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/software/man.cgi?query=slapd-config&amp;amp;apropos=0&amp;amp;sektion=0&amp;amp;manpath=OpenLDAP+2.4-Release&amp;amp;format=html');"  href="http://www.openldap.org/software/man.cgi?query=slapd-config&amp;apropos=0&amp;sektion=0&amp;manpath=OpenLDAP+2.4-Release&amp;format=html">slapd.d</a> format.<br />
<br />
It's worth mentioning if you missed it above, but you can already do this if you have the <strong>cn=config</strong> user password set, as changes must be made via that user. When you make a config change over LDAP<sup><span title="Lightweight Directory Access Protocol" class="serendipity_glossaryMarkup">[?]</span></sup>, it will take affect but not on a restart, as <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/software/man.cgi?query=slapd.conf&amp;amp;apropos=0&amp;amp;sektion=0&amp;amp;manpath=OpenLDAP+2.4-Release&amp;amp;format=html');"  href="http://www.openldap.org/software/man.cgi?query=slapd.conf&amp;apropos=0&amp;sektion=0&amp;manpath=OpenLDAP+2.4-Release&amp;format=html">slapd.conf</a> gets read again. This is usefull though if you always want to start from a known config and just make runtime changes when needed. <br />
<br />
Here, try this:<br />
<br />
<div class="bb-code-title">CODE:</div><div class="bb-code">&#91;ghenry@suretec&#160;&#93;$&#160;ldapsearch&#160;-x&#160;-b&#160;'cn=config'
#&#160;extended&#160;LDIF
#
#&#160;LDAPv3
#&#160;base&#160;&#60;cn=config&#62;&#160;with&#160;scope&#160;subtree
#&#160;filter&#58;&#160;&#40;objectclass=&#42;&#41;
#&#160;requesting&#58;&#160;ALL
#

#&#160;config
dn&#58;&#160;cn=config
objectClass&#58;&#160;olcGlobal
cn&#58;&#160;config
olcConfigFile&#58;&#160;slapd.conf
olcConfigDir&#58;&#160;slapd.d
olcArgsFile&#58;&#160;/usr/local/var/run/slapd.args
olcAttributeOptions&#58;&#160;lang-
olcAuthzPolicy&#58;&#160;none
olcConcurrency&#58;&#160;0
olcConnMaxPending&#58;&#160;100
olcConnMaxPendingAuth&#58;&#160;1000
olcGentleHUP&#58;&#160;FALSE
olcIdleTimeout&#58;&#160;0
olcIndexSubstrIfMaxLen&#58;&#160;4
olcIndexSubstrIfMinLen&#58;&#160;2</div><br />
<br />
Before we convert, add this to the bottom of your existing slapd.conf file because you can't make changes with out a password configured (use <a href="http://blog.suretecsystems.com/archives/151-OpenLDAP-Quick-Tips-Creating-encrypted-passwords.html">slappasswd</a> later to encrypt the password):<br />
<br />
<div class="bb-code-title">CODE:</div><div class="bb-code">#&#160;Dynamic&#160;Config
database&#160;config
rootpw&#160;secret</div><br />
<br />
To convert to the new format do:<br />
<br />
<div class="bb-code-title">CODE:</div><div class="bb-code">cd&#160;/usr/local/etc/openldap
mkdir&#160;slapd.d
/usr/local/sbin/slaptest&#160;-f&#160;/usr/local/etc/openldap/slapd.conf&#160;-F&#160;slapd.d</div><br />
<br />
The directory created looks like:<br />
<br />
<div class="bb-code-title">CODE:</div><div class="bb-code">&#91;ghenry@suretec&#160;&#93;$&#160;ls&#160;slapd.d/
cn=config&#160;&#160;cn=config.ldif</div><br />
<br />
You can edit those files prior to startup if you like also, but you have now converted to the new format.<br />
<br />
If you created the <strong>slapd.d</strong> directory in the default place, then slapd will automatically ignore the old slapd.conf and use the new config backend slapd.d. This is clearly stated in the man page:<br />
<blockquote><br />
       -F slapd-config-directory<br />
	      Specifies  the  slapd  configuration  directory.	The default is<br />
	      /usr/local/etc/openldap/slapd.d.	If both -f and -F  are	speci-<br />
	      fied,  the  config  file	will  be  read and converted to config<br />
	      directory format and written to  the  specified  directory.   If<br />
	      neither  option  is  specified,  slapd  will attempt to read the<br />
	      default config directory before trying to use the default config<br />
	      file. If a valid config directory exists then the default config<br />
	      file is ignored. All of the  slap  tools	that  use  the	config<br />
	      options observe this same behavior.</blockquote><br />
<br />
<br />
You can also just point slapd as normal to the new directory with the <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/software/man.cgi?query=slapd&amp;amp;apropos=0&amp;amp;sektion=0&amp;amp;manpath=OpenLDAP+2.4-Release&amp;amp;format=html');"  href="http://www.openldap.org/software/man.cgi?query=slapd&amp;apropos=0&amp;sektion=0&amp;manpath=OpenLDAP+2.4-Release&amp;format=html">-F</a> option.<br />
<br />
In another tip we will talk about making changes to this backend using normal LDAP operations.<br />
<br />
Thanks,<br />
<br />
Gavin.<br />
<br />
<strong>If you have an entry for our "OpenLDAP Quick Tips" series, why not <a onclick="javascript: pageTracker._trackPageview('/extlink/www.suretecsystems.com/contact');"  href="http://www.suretecsystems.com/contact">e-mail your tip to us</a>.</strong><br />
<br />
P.S. For direct access to this section, you can click <a href="http://blog.suretecsystems.com/plugin/tag/OpenLDAP+Quick+Tips">OpenLDAP Quick Tips</a>.<br />
 
    
<p><a href="http://feeds.feedburner.com/~a/suretec?a=8w6SxA"><img src="http://feeds.feedburner.com/~a/suretec?i=8w6SxA" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/suretec?a=LUpxN"><img src="http://feeds.feedburner.com/~f/suretec?i=LUpxN" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=df3Mn"><img src="http://feeds.feedburner.com/~f/suretec?i=df3Mn" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=YhAkN"><img src="http://feeds.feedburner.com/~f/suretec?i=YhAkN" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=2ktQN"><img src="http://feeds.feedburner.com/~f/suretec?i=2ktQN" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/suretec/~4/467201738" height="1" width="1"/>]]></content:encoded>

    <pubDate>Thu, 27 Nov 2008 10:30:00 +0000</pubDate>
    <guid isPermaLink="false">http://blog.suretecsystems.com/archives/159-guid.html</guid>
    <category>Directory Services</category>
<category>Enterprise Backups</category>
<category>Enterprise Directory</category>
<category>IAM</category>
<category>IDM</category>
<category>Identity Management</category>
<category>LDAP</category>
<category>LDAP Replication</category>
<category>LDAP Schema</category>
<category>Linux</category>
<category>Open Source</category>
<category>OpenLDAP</category>
<category>OpenLDAP Newsletter</category>
<category>OpenLDAP Quick Tips</category>
<category>Replication</category>
<category>Suretec</category>
<category>Symas</category>
<category>X.500</category>
<category>ldap</category>
<category>openldap</category>

<feedburner:origLink>http://blog.suretecsystems.com/archives/159-OpenLDAP-Quick-Tips-Switch-to-the-dynamic-config-backend-cnconfig.html</feedburner:origLink></item>
<item>
    <title>Community Request: Real World OpenLDAP Deployments</title>
    <link>http://feeds.feedburner.com/~r/suretec/~3/467177425/160-Community-Request-Real-World-OpenLDAP-Deployments.html</link>
            <category>Open Source</category>
            <category>OpenLDAP</category>
            <category>Suretec</category>
    
    <comments>http://blog.suretecsystems.com/archives/160-Community-Request-Real-World-OpenLDAP-Deployments.html#comments</comments>
    <wfw:comment>http://blog.suretecsystems.com/wfwcomment.php?cid=160</wfw:comment>

    <slash:comments>6</slash:comments>
    <wfw:commentRss>http://blog.suretecsystems.com/rss.php?version=2.0&amp;type=comments&amp;cid=160</wfw:commentRss>
    

    <author>nospam@example.com (Gavin Henry)</author>
    <content:encoded><![CDATA[
    Dear All,<br />
<br />
I'd like to get some examples written up for:<br />
<br />
<a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/doc/admin24/appendix-deployments.html');"  href="http://www.openldap.org/doc/admin24/appendix-deployments.html">http://www.openldap.org/doc/admin24/appendix-deployments.html</a><br />
<br />
If anyone is interested and allowed to share some information, I'd<br />
love to hear from you.<br />
<br />
The more strange the setup the better!<br />
<br />
Many thanks,<br />
<br />
Gavin.<br />
<br />
P.S. This has also been sent to the <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/lists/openldap-technical/200811/msg00176.html');"  href="http://www.openldap.org/lists/openldap-technical/200811/msg00176.html">openldap-technical@openldap.org mailing list</a>, so if you are a subscriber please reply to that email. Thanks.  
    
<p><a href="http://feeds.feedburner.com/~a/suretec?a=AZxukH"><img src="http://feeds.feedburner.com/~a/suretec?i=AZxukH" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/suretec?a=PzVoN"><img src="http://feeds.feedburner.com/~f/suretec?i=PzVoN" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=p7Dcn"><img src="http://feeds.feedburner.com/~f/suretec?i=p7Dcn" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=d3w2N"><img src="http://feeds.feedburner.com/~f/suretec?i=d3w2N" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=30gKN"><img src="http://feeds.feedburner.com/~f/suretec?i=30gKN" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/suretec/~4/467177425" height="1" width="1"/>]]></content:encoded>

    <pubDate>Thu, 27 Nov 2008 10:14:15 +0000</pubDate>
    <guid isPermaLink="false">http://blog.suretecsystems.com/archives/160-guid.html</guid>
    <category>Directory Services</category>
<category>Enterprise Backups</category>
<category>Enterprise Directory</category>
<category>IAM</category>
<category>IDM</category>
<category>Identity Management</category>
<category>LDAP</category>
<category>LDAP Replication</category>
<category>LDAP Schema</category>
<category>Linux</category>
<category>Open Source</category>
<category>OpenLDAP</category>
<category>OpenLDAP Newsletter</category>
<category>Replication</category>
<category>Suretec</category>
<category>Symas</category>
<category>X.500</category>
<category>ldap</category>
<category>openldap</category>

<feedburner:origLink>http://blog.suretecsystems.com/archives/160-Community-Request-Real-World-OpenLDAP-Deployments.html</feedburner:origLink></item>
<item>
    <title>OpenLDAP Quick Tips: Check your indices</title>
    <link>http://feeds.feedburner.com/~r/suretec/~3/466110326/158-OpenLDAP-Quick-Tips-Check-your-indices.html</link>
            <category>Open Source</category>
            <category>OpenLDAP</category>
            <category>Suretec</category>
    
    <comments>http://blog.suretecsystems.com/archives/158-OpenLDAP-Quick-Tips-Check-your-indices.html#comments</comments>
    <wfw:comment>http://blog.suretecsystems.com/wfwcomment.php?cid=158</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.suretecsystems.com/rss.php?version=2.0&amp;type=comments&amp;cid=158</wfw:commentRss>
    

    <author>nospam@example.com (Gavin Henry)</author>
    <content:encoded><![CDATA[
    Hi All,<br />
<br />
Here's my 11th tip in the "OpenLDAP Quick Tips" series:<br />
<br />
"You want to make sure you have the correct indices configured for the best performance":<br />
<br />
It's easy to discover when you do not have the correct indices set by checking your <a href="http://blog.suretecsystems.com/archives/148-OpenLDAP-Quick-Tips-Using-syslog-or-syslog-ng-with-slapd-for-OpenLDAP-logging.html">ldap<sup><span title="Lightweight Directory Access Protocol" class="serendipity_glossaryMarkup">[?]</span></sup> log</a>. If you see something similar to:<br />
<br />
 <br />
<div class="bb-code-title">CODE:</div><div class="bb-code">Nov&#160;26&#160;11&#58;10&#58;16&#160;localhost&#160;slapd&#91;2957&#93;&#58;&#160;conn=17&#160;fd=13&#160;ACCEPT&#160;from&#160;IP=XXX.XXX.XXX.XXX&#58;38019&#160;&#40;IP=0.0.0.0&#58;389&#41;
Nov&#160;26&#160;11&#58;10&#58;16&#160;localhost&#160;slapd&#91;2957&#93;&#58;&#160;conn=17&#160;op=0&#160;BIND&#160;dn=""&#160;method=128
Nov&#160;26&#160;11&#58;10&#58;16&#160;localhost&#160;slapd&#91;2957&#93;&#58;&#160;conn=17&#160;op=0&#160;RESULT&#160;tag=97&#160;err=0&#160;text=
Nov&#160;26&#160;11&#58;10&#58;16&#160;localhost&#160;slapd&#91;2957&#93;&#58;&#160;conn=17&#160;op=1&#160;SRCH&#160;base="dc=suretecsystems,dc=com"&#160;scope=2&#160;deref=0&#160;filter="&#40;o=suretec&#160;systems&#160;ltd.&#41;"
Nov&#160;26&#160;11&#58;10&#58;16&#160;localhost&#160;slapd&#91;2957&#93;&#58;&#160;&#60;=&#160;bdb_equality_candidates&#58;&#160;&#40;o&#41;&#160;not&#160;indexed
Nov&#160;26&#160;11&#58;10&#58;16&#160;localhost&#160;slapd&#91;2957&#93;&#58;&#160;conn=17&#160;op=1&#160;SEARCH&#160;RESULT&#160;tag=101&#160;err=0&#160;nentries=3&#160;text=
Nov&#160;26&#160;11&#58;10&#58;16&#160;localhost&#160;slapd&#91;2957&#93;&#58;&#160;conn=17&#160;op=2&#160;UNBIND
Nov&#160;26&#160;11&#58;10&#58;16&#160;localhost&#160;slapd&#91;2957&#93;&#58;&#160;conn=17&#160;fd=13&#160;closed</div><br />
<br />
namely:<br />
<br />
<div class="bb-code-title">CODE:</div><div class="bb-code">Nov&#160;26&#160;11&#58;10&#58;16&#160;localhost&#160;slapd&#91;2957&#93;&#58;&#160;&#60;=&#160;bdb_equality_candidates&#58;&#160;&#40;o&#41;&#160;not&#160;indexed</div><br />
<br />
then you have not configured an equality index for the <strong>o</strong> attribute.<br />
<br />
Add <strong>index o eq</strong> to your <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/software/man.cgi?query=slapd.conf&amp;amp;apropos=0&amp;amp;sektion=0&amp;amp;manpath=OpenLDAP+2.4-Release&amp;amp;format=html');"  href="http://www.openldap.org/software/man.cgi?query=slapd.conf&amp;apropos=0&amp;sektion=0&amp;manpath=OpenLDAP+2.4-Release&amp;format=html">slapd.conf</a> and then stop <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/software/man.cgi?query=slapd&amp;amp;apropos=0&amp;amp;sektion=0&amp;amp;manpath=OpenLDAP+2.4-Release&amp;amp;format=html');"  href="http://www.openldap.org/software/man.cgi?query=slapd&amp;apropos=0&amp;sektion=0&amp;manpath=OpenLDAP+2.4-Release&amp;format=html">slapd</a> and run <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/software/man.cgi?query=slapindex&amp;amp;apropos=0&amp;amp;sektion=0&amp;amp;manpath=OpenLDAP+2.4-Release&amp;amp;format=html');"  href="http://www.openldap.org/software/man.cgi?query=slapindex&amp;apropos=0&amp;sektion=0&amp;manpath=OpenLDAP+2.4-Release&amp;format=html">slapindex</a> as the user that runs slapd (probably the <strong>ldap</strong> user). Now start <strong>slapd</strong> up again.<br />
<br />
If you add an index over the LDAP<sup><span title="Lightweight Directory Access Protocol" class="serendipity_glossaryMarkup">[?]</span></sup> protocol whilst using the <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/software/man.cgi?query=slapd-config&amp;amp;apropos=0&amp;amp;sektion=0&amp;amp;manpath=OpenLDAP+2.4-Release&amp;amp;format=html');"  href="http://www.openldap.org/software/man.cgi?query=slapd-config&amp;apropos=0&amp;sektion=0&amp;manpath=OpenLDAP+2.4-Release&amp;format=html">slapd config backend</a>, then the index will be created on the fly and you won't need to use slapdindex or restart your directory server. Use the following LDIF as your starting point:<br />
<br />
<div class="bb-code-title">CODE:</div><div class="bb-code">dn&#58;&#160;olcDatabase={1}hdb,cn=config
changetype&#58;&#160;modify
add&#58;&#160;olcDbIndex
olcDbIndex&#58;&#160;o&#160;eq</div><br />
<br />
The above assumes you have an <a onclick="javascript: pageTracker._trackPageview('/extlink/http://www.openldap.org/software/man.cgi?query=slapd-hdb&amp;amp;apropos=0&amp;amp;sektion=0&amp;amp;manpath=OpenLDAP+2.4-Release&amp;amp;format=html');"  href="http://http://www.openldap.org/software/man.cgi?query=slapd-hdb&amp;apropos=0&amp;sektion=0&amp;manpath=OpenLDAP+2.4-Release&amp;format=html">hdb backend</a> and it is configured to hold your directory data as the first database (database 0 holds <strong>cn=config</strong>):<br />
<br />
<div class="bb-code-title">CODE:</div><div class="bb-code">ldapmodify&#160;-D&#160;'cn=config'&#160;-W&#160;-f&#160;newindex.ldif</div><br />
<br />
will show in your logs as:<br />
<br />
<div class="bb-code-title">CODE:</div><div class="bb-code">Nov&#160;26&#160;11&#58;57&#58;51&#160;localhost&#160;slapd&#91;2957&#93;&#58;&#160;conn=27&#160;fd=13&#160;ACCEPT&#160;from&#160;IP=XXX.XXX.XXX.XXX&#58;45776&#160;&#40;IP=0.0.0.0&#58;389&#41;
Nov&#160;26&#160;11&#58;57&#58;51&#160;localhost&#160;slapd&#91;2957&#93;&#58;&#160;conn=27&#160;op=0&#160;BIND&#160;dn="cn=config"&#160;method=128
Nov&#160;26&#160;11&#58;57&#58;51&#160;localhost&#160;slapd&#91;2957&#93;&#58;&#160;conn=27&#160;op=0&#160;BIND&#160;dn="cn=config"&#160;mech=SIMPLE&#160;ssf=0
Nov&#160;26&#160;11&#58;57&#58;51&#160;localhost&#160;slapd&#91;2957&#93;&#58;&#160;conn=27&#160;op=0&#160;RESULT&#160;tag=97&#160;err=0&#160;text=
Nov&#160;26&#160;11&#58;57&#58;51&#160;localhost&#160;slapd&#91;2957&#93;&#58;&#160;conn=27&#160;op=1&#160;MOD&#160;dn="olcDatabase={1}hdb,cn=config"
Nov&#160;26&#160;11&#58;57&#58;51&#160;localhost&#160;slapd&#91;2957&#93;&#58;&#160;conn=27&#160;op=1&#160;MOD&#160;attr=olcDbIndex
Nov&#160;26&#160;11&#58;57&#58;51&#160;localhost&#160;slapd&#91;2957&#93;&#58;&#160;slap_queue_csn&#58;&#160;queing&#160;0xa2b4aa52&#160;20081126115751.937214Z&amp;000000;000#000000
Nov&#160;26&#160;11&#58;57&#58;51&#160;localhost&#160;slapd&#91;2957&#93;&#58;&#160;conn=27&#160;op=1&#160;RESULT&#160;tag=103&#160;err=0&#160;text=
Nov&#160;26&#160;11&#58;57&#58;51&#160;localhost&#160;slapd&#91;2957&#93;&#58;&#160;slap_graduate_commit_csn&#58;&#160;removing&#160;0x98743b8&#160;20081126115751.937214Z&amp;000000;000#000000
Nov&#160;26&#160;11&#58;57&#58;51&#160;localhost&#160;slapd&#91;2957&#93;&#58;&#160;conn=27&#160;op=2&#160;UNBIND
Nov&#160;26&#160;11&#58;57&#58;51&#160;localhost&#160;slapd&#91;2957&#93;&#58;&#160;conn=27&#160;fd=13&#160;closed</div><br />
<br />
and then to confirm by searching for the <strong>o</strong> attribute again:<br />
<br />
<div class="bb-code-title">CODE:</div><div class="bb-code">Nov&#160;26&#160;11&#58;58&#58;25&#160;localhost&#160;slapd&#91;2957&#93;&#58;&#160;conn=28&#160;fd=19&#160;ACCEPT&#160;from&#160;IP=XXX.XXX.XXX.XXX&#58;33576&#160;&#40;IP=0.0.0.0&#58;389&#41;
Nov&#160;26&#160;11&#58;58&#58;25&#160;localhost&#160;slapd&#91;2957&#93;&#58;&#160;conn=28&#160;op=0&#160;BIND&#160;dn=""&#160;method=128
Nov&#160;26&#160;11&#58;58&#58;25&#160;localhost&#160;slapd&#91;2957&#93;&#58;&#160;conn=28&#160;op=0&#160;RESULT&#160;tag=97&#160;err=0&#160;text=
Nov&#160;26&#160;11&#58;58&#58;25&#160;localhost&#160;slapd&#91;2957&#93;&#58;&#160;conn=28&#160;op=1&#160;SRCH&#160;base="dc=suretecsystems,dc=com"&#160;scope=2&#160;deref=0&#160;filter="&#40;o=suretec&#160;systems&#160;ltd.&#41;"
Nov&#160;26&#160;11&#58;58&#58;25&#160;localhost&#160;slapd&#91;2957&#93;&#58;&#160;conn=28&#160;op=1&#160;SEARCH&#160;RESULT&#160;tag=101&#160;err=0&#160;nentries=3&#160;text=
Nov&#160;26&#160;11&#58;58&#58;25&#160;localhost&#160;slapd&#91;2957&#93;&#58;&#160;conn=28&#160;op=2&#160;UNBIND
Nov&#160;26&#160;11&#58;58&#58;25&#160;localhost&#160;slapd&#91;2957&#93;&#58;&#160;conn=28&#160;fd=19&#160;closed</div><br />
<br />
No more compliants about the lack of an index and no restarting <strong>slapd</strong>!<br />
<br />
Thanks,<br />
<br />
Gavin.<br />
<br />
<strong>If you have an entry for our "OpenLDAP Quick Tips" series, why not <a onclick="javascript: pageTracker._trackPageview('/extlink/www.suretecsystems.com/contact');"  href="http://www.suretecsystems.com/contact">e-mail your tip to us</a>.</strong><br />
<br />
P.S. For direct access to this section, you can click <a href="http://blog.suretecsystems.com/plugin/tag/OpenLDAP+Quick+Tips">OpenLDAP Quick Tips</a>.<br />
 
    
<p><a href="http://feeds.feedburner.com/~a/suretec?a=wtjqDk"><img src="http://feeds.feedburner.com/~a/suretec?i=wtjqDk" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/suretec?a=Cxv2N"><img src="http://feeds.feedburner.com/~f/suretec?i=Cxv2N" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=8gr5n"><img src="http://feeds.feedburner.com/~f/suretec?i=8gr5n" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=AaIFN"><img src="http://feeds.feedburner.com/~f/suretec?i=AaIFN" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=RuL3N"><img src="http://feeds.feedburner.com/~f/suretec?i=RuL3N" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/suretec/~4/466110326" height="1" width="1"/>]]></content:encoded>

    <pubDate>Wed, 26 Nov 2008 11:12:24 +0000</pubDate>
    <guid isPermaLink="false">http://blog.suretecsystems.com/archives/158-guid.html</guid>
    <category>Directory Services</category>
<category>Enterprise Backups</category>
<category>Enterprise Directory</category>
<category>IAM</category>
<category>IDM</category>
<category>Identity Management</category>
<category>LDAP</category>
<category>LDAP Replication</category>
<category>LDAP Schema</category>
<category>Linux</category>
<category>Open Source</category>
<category>OpenLDAP</category>
<category>OpenLDAP Newsletter</category>
<category>OpenLDAP Quick Tips</category>
<category>Replication</category>
<category>Suretec</category>
<category>Symas</category>
<category>X.500</category>
<category>ldap</category>
<category>openldap</category>

<feedburner:origLink>http://blog.suretecsystems.com/archives/158-OpenLDAP-Quick-Tips-Check-your-indices.html</feedburner:origLink></item>
<item>
    <title>Fedora 10 is out!</title>
    <link>http://feeds.feedburner.com/~r/suretec/~3/465283075/157-Fedora-10-is-out!.html</link>
            <category>Fedora</category>
            <category>Open Source</category>
    
    <comments>http://blog.suretecsystems.com/archives/157-Fedora-10-is-out!.html#comments</comments>
    <wfw:comment>http://blog.suretecsystems.com/wfwcomment.php?cid=157</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.suretecsystems.com/rss.php?version=2.0&amp;type=comments&amp;cid=157</wfw:commentRss>
    

    <author>nospam@example.com (Gavin Henry)</author>
    <content:encoded><![CDATA[
    <a onclick="javascript: pageTracker._trackPageview('/extlink/fedoraproject.org/');"  href="http://fedoraproject.org/">Grab it whilst it's hot!</a>  
    
<p><a href="http://feeds.feedburner.com/~a/suretec?a=YhANqz"><img src="http://feeds.feedburner.com/~a/suretec?i=YhANqz" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/suretec?a=0iSHN"><img src="http://feeds.feedburner.com/~f/suretec?i=0iSHN" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=FXb8n"><img src="http://feeds.feedburner.com/~f/suretec?i=FXb8n" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=SBm8N"><img src="http://feeds.feedburner.com/~f/suretec?i=SBm8N" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=uqc2N"><img src="http://feeds.feedburner.com/~f/suretec?i=uqc2N" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/suretec/~4/465283075" height="1" width="1"/>]]></content:encoded>

    <pubDate>Tue, 25 Nov 2008 17:58:12 +0000</pubDate>
    <guid isPermaLink="false">http://blog.suretecsystems.com/archives/157-guid.html</guid>
    
<feedburner:origLink>http://blog.suretecsystems.com/archives/157-Fedora-10-is-out!.html</feedburner:origLink></item>
<item>
    <title>OpenLDAP Quick Tips: Regularly upgrade OpenLDAP!</title>
    <link>http://feeds.feedburner.com/~r/suretec/~3/464960450/156-OpenLDAP-Quick-Tips-Regularly-upgrade-OpenLDAP!.html</link>
            <category>Open Source</category>
            <category>OpenLDAP</category>
            <category>Suretec</category>
    
    <comments>http://blog.suretecsystems.com/archives/156-OpenLDAP-Quick-Tips-Regularly-upgrade-OpenLDAP!.html#comments</comments>
    <wfw:comment>http://blog.suretecsystems.com/wfwcomment.php?cid=156</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.suretecsystems.com/rss.php?version=2.0&amp;type=comments&amp;cid=156</wfw:commentRss>
    

    <author>nospam@example.com (Gavin Henry)</author>
    <content:encoded><![CDATA[
    Hi All,<br />
<br />
Here's my 10th tip in the "OpenLDAP Quick Tips" series:<br />
<br />
"You want to stay up to date with the latest version of OpenLDAP to benefit from bug fixes":<br />
<br />
There's never been a better time to upgrade to the <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/software/download/');"  href="http://www.openldap.org/software/download/">2.4 series</a>. It's actually very easy. If there haven't been any significant core changes between releases (excluding a <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/doc/admin24/appendix-upgrading.html');"  href="http://www.openldap.org/doc/admin24/appendix-upgrading.html">2.3.x to 2.4.x upgrade</a>), then you can easily just install a new version on top of the existing one and restart.<br />
<br />
If there has been a Berkeley DB change or any form data storage change (indexing etc.) then you should follow these steps:<br />
<br />
1. Stop the current server when convenient<br />
2. <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/software/man.cgi?query=slapcat&amp;amp;apropos=0&amp;amp;sektion=0&amp;amp;manpath=OpenLDAP+2.4-Release&amp;amp;format=html');"  href="http://www.openldap.org/software/man.cgi?query=slapcat&amp;apropos=0&amp;sektion=0&amp;manpath=OpenLDAP+2.4-Release&amp;format=html">slapcat</a> the current data out<br />
3. Clear out the current data directory (/usr/local/var/openldap-data/) leaving <a onclick="javascript: pageTracker._trackPageview('/extlink/www.oracle.com/technology/documentation/berkeley-db/db/ref/env/db_config.html');"  href="http://www.oracle.com/technology/documentation/berkeley-db/db/ref/env/db_config.html">DB_CONFIG</a> in place<br />
4. Perform the software upgrades<br />
5. <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/software/man.cgi?query=slapadd&amp;amp;apropos=0&amp;amp;sektion=0&amp;amp;manpath=OpenLDAP+2.4-Release&amp;amp;format=html');"  href="http://www.openldap.org/software/man.cgi?query=slapadd&amp;apropos=0&amp;sektion=0&amp;manpath=OpenLDAP+2.4-Release&amp;format=html">slapadd</a> the exported data back into the directory<br />
6. Start the server<br />
<br />
It is recommended to do the above anyway, just to make sure as you can always start fresh with exported data.<br />
<br />
Obviously this doesn't cater for any complicated deployments like <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/doc/admin24/replication.html#MirrorMode%20replication');"  href="http://www.openldap.org/doc/admin24/replication.html#MirrorMode%20replication">MirrorMode</a> or <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/doc/admin24/replication.html#N-Way%20Multi-Master%20replication');"  href="http://www.openldap.org/doc/admin24/replication.html#N-Way%20Multi-Master%20replication">N-Way Multi-Master,</a> but should you need advice or help, you can use either <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/support/');"  href="http://www.openldap.org/support/">commercial support</a> or <a onclick="javascript: pageTracker._trackPageview('/extlink/www.openldap.org/lists/');"  href="http://www.openldap.org/lists/">community support</a> to help you....or <a onclick="javascript: pageTracker._trackPageview('/extlink/www.suretecsystems.com/contact');"  href="http://www.suretecsystems.com/contact">contact Suretec</a>.<br />
<br />
Thanks,<br />
<br />
Gavin.<br />
<br />
<strong>If you have an entry for our "OpenLDAP Quick Tips" series, why not <a onclick="javascript: pageTracker._trackPageview('/extlink/www.suretecsystems.com/contact');"  href="http://www.suretecsystems.com/contact">e-mail your tip to us</a>.</strong><br />
<br />
P.S. For direct access to this section, you can click <a href="http://blog.suretecsystems.com/plugin/tag/OpenLDAP+Quick+Tips">OpenLDAP Quick Tips</a>.<br />
  
    
<p><a href="http://feeds.feedburner.com/~a/suretec?a=FjfkHq"><img src="http://feeds.feedburner.com/~a/suretec?i=FjfkHq" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/suretec?a=qsJnN"><img src="http://feeds.feedburner.com/~f/suretec?i=qsJnN" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=8HQxn"><img src="http://feeds.feedburner.com/~f/suretec?i=8HQxn" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=2R0TN"><img src="http://feeds.feedburner.com/~f/suretec?i=2R0TN" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/suretec?a=T99IN"><img src="http://feeds.feedburner.com/~f/suretec?i=T99IN" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/suretec/~4/464960450" height="1" width="1"/>]]></content:encoded>

    <pubDate>Tue, 25 Nov 2008 09:23:46 +0000</pubDate>
    <guid isPermaLink="false">http://blog.suretecsystems.com/archives/156-guid.html</guid>
    <category>Directory Services</category>
<category>Enterprise Backups</category>
<category>Enterprise Directory</category>
<category>IAM</category>
<category>IDM</category>
<category>Identity Management</category>
<category>LDAP</category>
<category>LDAP Replication</category>
<category>LDAP Schema</category>
<category>Linux</category>
<category>Open Source</category>
<category>OpenLDAP</category>
<category>OpenLDAP Newsletter</category>
<category>OpenLDAP Quick Tips</category>
<category>Replication</category>
<category>Suretec</category>
<category>Symas</category>
<category>X.500</category>
<category>ldap</category>
<category>openldap</category>

<feedburner:origLink>http://blog.suretecsystems.com/archives/156-OpenLDAP-Quick-Tips-Regularly-upgrade-OpenLDAP!.html</feedburner:origLink></item>

</channel>
</rss>
