[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Call for change of ldapsearch results (ITS#484)



At 11:25 PM 3/17/00 +0100, Even Holen wrote:
>On Fri, Mar 17, 2000 at 02:06:50PM -0800, Kurt D. Zeilenga wrote:
>> At 08:22 PM 3/17/00 GMT, evenh+ldap@pvv.ntnu.no wrote:
>> >When using the client tool ldapsearch, I've noticed that it always prints the
>> >'dn' field.
>> 
>> Yes, becauses returning entries always contain a DN.
>
>But does this need to be displayed?

Both supported output formats (LDIF and "alternative") require thatentries include their DN.

>> >And to make it even easier to do such a search I would suggest an option to
>> >return only the _values_.
>> 
>> As there is no such protocol option, I don't think the command should
>> have such an option.  ldapsearch is meant to relate to the LDAP search
>> operation.
>
>That I understand, but I still believe that some people want the
>functionality I ask.

That's true for most anything.

>Do you think the openldap-project at some point 
>will include a script/program which returns output without DN and maybe
>with only values?

If later version of LDIF support such, yes.

>Maybe I'm missing something obvious here

I think you are missing the intended purpose of ldapsearch.  It
is intended to provide a command line interface to ldap_search(),
which is an interface to the LDAP search operation.  Processing
of the results are left to the caller.

Kurt