<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Not Good Enough &#187; OpenLDAP</title>
	<atom:link href="http://www.notgoodenough.net/archives/category/openldap/feed" rel="self" type="application/rss+xml" />
	<link>http://www.notgoodenough.net</link>
	<description>The things that just aren't quite good enough...</description>
	<lastBuildDate>Thu, 31 Dec 2009 16:37:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ldapsearch and Line Width</title>
		<link>http://www.notgoodenough.net/archives/49</link>
		<comments>http://www.notgoodenough.net/archives/49#comments</comments>
		<pubDate>Fri, 10 Oct 2008 08:19:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[OpenLDAP]]></category>

		<guid isPermaLink="false">http://www.notgoodenough.net/?p=49</guid>
		<description><![CDATA[OpenLDAP is open source LDAP software. It&#8217;s used on a lot of Unix and Linux distributions. ldapsearch is a utility that comes with OpenLDAP. It allows you to search an LDAP directory from the command line. This is potentially very useful when you need to access LDAP from a shell script. You can even use [...]]]></description>
			<content:encoded><![CDATA[<p><a title="OpenLDAP" href="http://www.openldap.org/" target="_blank">OpenLDAP</a> is open source <a title="LDAP entry at Wikipedia" href="http://en.wikipedia.org/wiki/Ldap" target="_blank">LDAP</a> software. It&#8217;s used on a lot of Unix and Linux distributions. <a title="man page for ldapsearch" href="http://www.openldap.org/software/man.cgi?query=ldapsearch&amp;apropos=0&amp;sektion=0&amp;manpath=OpenLDAP+2.4-Release&amp;format=html" target="_blank">ldapsearch</a> is a utility that comes with OpenLDAP. It allows you to search an LDAP directory from the command line. This is potentially very useful when you need to access LDAP from a shell script. You can even use it to access <a title="Wikipedia entry for Active Directory" href="http://en.wikipedia.org/wiki/Active_directory" target="_blank">Active Directory</a>, as <a href="http://eldapo.lembobrothers.com/author/philip/" target="_blank">Phil Lembo</a> shows <a title="LDAP query of Active Directory" href="http://eldapo.lembobrothers.com/2008/01/30/searching-active-directory-with-ldapsearch/" target="_blank">here</a>.</p>
<p>Unfortunately, when ldapsearch returns its results it wraps the output after 76 characters &#8211; and it doesn&#8217;t appear to give an option to turn line wrapping off. Now what <a href="http://www1.istockphoto.com/file_thumbview_approve/2824685/2/istockphoto_2824685_he_s_a_dunce.jpg" target="_blank">bright spark</a> thought that this would be a good idea. That makes it a pain in the arse when you&#8217;re trying to <a title="Wikipedia entry for grep" href="http://en.wikipedia.org/wiki/Grep" target="_blank">grep</a> the output of a directory search.</p>
<p>Someone does seem to have come up with a <a href="http://www.openldap.org/lists/openldap-bugs/199912/msg00099.html" target="_blank">patch</a> back in 1999, <a href="http://www.openldap.org/lists/openldap-bugs/199912/msg00100.html" target="_blank">but it doesn&#8217;t appear to have made it into production</a>.</p>
<p>It&#8217;s just not good enough!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.notgoodenough.net/archives/49/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
