[25803] in SIPB bug reports
Re: mutt ldap support
daemon@ATHENA.MIT.EDU (John Hawkinson)
Sat Aug 26 18:45:16 2006
From jhawk@MIT.EDU Sat Aug 26 22:45:15 2006
Return-Path: <jhawk@MIT.EDU>
Delivered-To: bug-sipb-mtg@CHARON.mit.edu
Received: (qmail 19316 invoked from network); 26 Aug 2006 22:45:15 -0000
Received: from biscayne-one-station.mit.edu (18.7.7.80)
by charon.mit.edu with SMTP; 26 Aug 2006 22:45:15 -0000
Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])
by biscayne-one-station.mit.edu (8.13.6/8.9.2) with ESMTP id k7QMjBfq007174;
Sat, 26 Aug 2006 18:45:12 -0400 (EDT)
Received: from multics.mit.edu (MULTICS.MIT.EDU [18.187.1.73])
(authenticated bits=56)
(User authenticated as jhawk@ATHENA.MIT.EDU)
by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id k7QMj42t004323
(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT);
Sat, 26 Aug 2006 18:45:04 -0400 (EDT)
Received: (from jhawk@localhost) by multics.mit.edu (8.12.9.20060308)
id k7QMj3mL028946; Sat, 26 Aug 2006 18:45:03 -0400 (EDT)
Date: Sat, 26 Aug 2006 18:45:03 -0400
From: John Hawkinson <jhawk@MIT.EDU>
To: Brad Thompson <yak@MIT.EDU>
Cc: bug-sipb@MIT.EDU
Subject: Re: mutt ldap support
Message-ID: <20060826224503.GO18397@multics.mit.edu>
References: <200608180213.k7I2D00o026479@bart-savagewood.mit.edu> <20060819194712.GA24983@multics.mit.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20060819194712.GA24983@multics.mit.edu>
User-Agent: Mutt/1.5.12-2006-07-14
X-Spam-Score: 1.218
X-Spam-Level: * (1.218)
X-Spam-Flag: NO
X-Scanned-By: MIMEDefang 2.42
Brad Thompson <yak@MIT.EDU> wrote on Sat, 19 Aug 2006
at 15:47:12 -0400 in <20060819194712.GA24983@multics.mit.edu>:
> set query_command = "athrun sipb mutt_ldap_query.pl '%s'"
It seems there's a bug here with quoting.
According to "turss -a -f -p $muttpid", this causes mutt
to run something like:
execve("/bin/sh", 0xFFBFDAF8, 0xFFBFEF3C) argc = 3
argv: sh -c
/mit/sipb/src/mutt/mutt_ldap_query/mutt_ldap_query.pl ''Chihjiun Connie Yeh <yehc@MIT.EDU>''
And, of course, this means that the shell interprets the < and >, and generally
errors out complaining about the lack of a file of the user's name (i.e.
I have no yehc@MIT.EDU file in the cwd where mutt is running).
Changing the string to remove the quotes, i.e.:
set query_command = "athrun sipb mutt_ldap_query.pl %s"
Causes it to DTRT:
execve("/bin/sh", 0xFFBFDAF8, 0xFFBFEF3C) argc = 3
argv: sh -c
/mit/sipb/src/mutt/mutt_ldap_query/mutt_ldap_query.pl 'Chihjiun Connie Yeh <yehc@MIT.EDU>'
mutt_ldap_query.pl doesn't know how to handle addresses of this form,
but I'm about to fix that.
Could you please remove the single quotes around the %s in the Muttrc?
I suppose this is a bug that should be passed upstream. I assume
you'd rather I do that?
Thanks.
--jhawk
p.s.: I only tested under Solaris, but I assume it's the same...