[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: ldapsearch
I had a similiar problem. I wanted ldapsearch to be run in a thread. So I
modified ldapsearch to take a cmd line option for an output file, and
removed a lot of the spurious newlines it outputs.
Allen Reese
Senior Software Engineer
Driversoft, Inc.
allen@driversoft.com
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread
On Thu, 28 Oct 1999 tcurdt@linux01.gwdg.de wrote:
> I like to use ldap query results in shells scripts.
> Something like:
>
> RESULT=`ldapsearch -b 'whatever' 'objectclass=Person' sn
>
> But the output format of the ldapsearch makes it necessary
> to use some more processing e.g. like:
>
> ldapsearch -b 'whatever' 'objectclass=Person' sn|tail -1|sed -e 's/.*=/\1/'
>
> ...but there MUST be a better way to these things!!
> Or are there any other tools available?
> --
> Torsten
>
>