Oh, yeah, the $1 is a shell substitution. But that isn&#39;t the problem. And, yes, the ldapsearch isn&#39;t part of the standard Solaris install.  Here&#39;s the documentation:<br><br><a href="http://docs.sun.com/source/816-6400-10/lsearch.html">http://docs.sun.com/source/816-6400-10/lsearch.html</a><br>
<br>It&#39;s provided by the <span class="cBookTitle">Sun ONE Directory Server.  <br><br>The shell substitution works just fine, but I cannot access the data like this ldapsearch does with ldapvi.  Ldapvi specifically doesn&#39;t seem to understand the multiple &quot;o&#39;s&quot;, I suppose I may need to provide an strace and more debug info, I&#39;ll do that later.<br>
</span><br><div class="gmail_quote">On Fri, Dec 11, 2009 at 5:36 AM, Aleksander Adamowski <span dir="ltr">&lt;<a href="mailto:aleksander.adamowski@gmail.com">aleksander.adamowski@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><div class="gmail_quote">On Fri, Dec 11, 2009 at 3:28 AM, Dale Harris <span dir="ltr">&lt;<a href="mailto:rodmur@gmail.com" target="_blank">rodmur@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hi folks,<br><br>I was wondering how I do something in ldapvi. The Solaris version of ldapsearch utility can do<br>something like:<br><br>ldapsearch -b piPStoreOwner=$1,o=<a href="http://somewhere.org" target="_blank">somewhere.org</a>,o=PiServerDb objectclass=*<br>


<br>with base multiple o=&#39;s, or organizations.  I can&#39;t seem to do this in ldapvi.  Or does anyone have an example how I might do this in ldapvi?<br clear="all"></blockquote><div></div></div><div><br></div></div>
I don&#39;t think there&#39;s any specific version of ldapsearch in Solaris. More likely, you&#39;re referring to some common implementation, like OpenLDAP&#39;s. Is that so?<div>
<br></div><div>The example you&#39;ve provided looks like ordinary shell variable substitution, and it doesn&#39;t matter whether you apply it to ldapsearch&#39;s arguments, ldapvi&#39;s, or for that matter, any other shell command&#39;s (for example ls).</div>

<div><br></div><div>Hope that helps,<br>-- <br>Aleksander Adamowski<br>  <a href="http://olo.org.pl" target="_blank">http://olo.org.pl</a><br>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>Dale Harris<br><a href="mailto:rodmur@maybe.org">rodmur@maybe.org</a><br><a href="mailto:rodmur@gmail.com">rodmur@gmail.com</a><br>/.-)<br>