Dear all,
I have just released a new version of my mutt_ldap_query perl script
(version 2.3). Now it incorporates a builtin table of common servers
and associated search bases allowing simpler commands by implementing a
nickname key based lookup (changes inspired from a patch sent by Adrian
Likins <[EMAIL PROTECTED]>).
# Version History (major changes only)
# 2.3 (12/28/1999):
# added better parsing of the options, a shortcut for avoiding
# -s and -b options by using the script builtin table of common
# servers and associated search bases performing a nickname key based
# lookup (changes inspired from a patch sent by Adrian Likins
# <[EMAIL PROTECTED]>), performed some Y2K cleanups ;-)
# 2.2 (11/02/1999):
# merged perl style fixes proposed by Warren Jones <[EMAIL PROTECTED]>
# 2.1 (4/14/1998):
# first public release
Enjoy!
--
Marc de Courville -=- Centre de Recherche Motorola -=- [EMAIL PROTECTED]
-=- {Free,Net}BSD, Linux: You can also get less bang for more bucks. -=-
<legal>Opinions hereabove are my own and not those of my organization</legal>
mutt_ldap_query.pl version 2.3
==============================
The latest version of the code can be retrieved at
ftp://ftp.mutt.org/pub/mutt/contrib
This code is distributed under the GNU General Public License (GPL). See
http://www.opensource.org/gpl-license.html and http://www.opensource.org/.
mutt_ldap_query parses ldapsearch command outputs in order to provide
mutt with the required formatted input for using Brandon Blong's
"External Address Query" feature now part of mutt distribution.
This perl script can be interfaced with mutt by defining in your .muttrc:
set query_command = "mutt_ldap_query.pl '%s'"
Multiple requests are supported: the "Q" command of mutt accepts as argument
a list of queries (e.g. "Gosse de\ Courville").
usage: mutt_ldap_query -s <server_name> -b <search_base> -n <server_nickname>
<name_to_query> [[<other_name_to_query>] ...]
-s query ldap server <server_name>
-b use <search_base> as the starting point for the search instead of the default
-n shortcut for avoiding -s and -b options by using the script builtin
table of common servers and associated search bases performing a
<server_nickname> lookup
examples of queries:
classical query:
mutt_ldap_query.pl -s ldap.crm.mot.com -b 'o=Motorola,c=US' Gosse
and its shortcut version using a nickname
mutt_ldap_query.pl -n crm Gosse de\ Courville
References:
- ldapsearch is a ldap server query tool present in ldap-3.3 distribution
http://www.umich.edu/~rsug/ldap)
- mutt is the ultimate email client
http://www.mutt.org
- historical Brandon Blong's "External Address Query" feature patch for mutt
http://www.fiction.net/blong/programs/mutt/#query
Marc de Courville <[EMAIL PROTECTED]>
December 29, 1999
mutt_ldap_query-2.3.pl