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

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