Oh, yeah, the $1 is a shell substitution. But that isn't the problem. And, yes, the ldapsearch isn't part of the standard Solaris install. Here'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'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't seem to understand the multiple "o's", I suppose I may need to provide an strace and more debug info, I'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"><<a href="mailto:aleksander.adamowski@gmail.com">aleksander.adamowski@gmail.com</a>></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"><<a href="mailto:rodmur@gmail.com" target="_blank">rodmur@gmail.com</a>></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='s, or organizations. I can'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't think there's any specific version of ldapsearch in Solaris. More likely, you're referring to some common implementation, like OpenLDAP's. Is that so?<div>
<br></div><div>The example you've provided looks like ordinary shell variable substitution, and it doesn't matter whether you apply it to ldapsearch's arguments, ldapvi's, or for that matter, any other shell command'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>