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

Re: ldapsearch



As Kurt said use one of the LDAP APIs available from the many different
languages.

In my book "Implementing LDAP" I cover just about every API under the sun
(except python because I ran out of time ;).

Mark
-----Original Message-----
From: tcurdt@linux01.gwdg.de <tcurdt@linux01.gwdg.de>
To: openldap-general@OpenLDAP.org <openldap-general@OpenLDAP.org>
Date: Wednesday, October 27, 1999 5:57 PM
Subject: ldapsearch


>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
>
>
>