Subject: Re: CVS commit: pkgsrc/mail/sqwebmail
To: John Darrow <John.P.Darrow@wheaton.edu>
From: Johnny Lam <jlam@jgrind.org>
List: pkgsrc-changes
Date: 01/24/2002 17:13:53
On Thu, Jan 24, 2002 at 07:01:44PM -0600, John Darrow wrote:
> Johnny C. Lam <jlam@netbsd.org> wrote:
> >Do some editting of the output returned by OpenLDAP's ldapsearch so that
> >it can be parsed by SqWebMail. SqWebMail expects output to be of the
> >form
> > class1=name1
> > class2=name2
> > ...
> >
> >but the output from ldapsearch seems to be
> >
> > class1: name1
> > class2: name2
>
> Try removing the '-L' from the ldapsearch command line. This should
> give you the form you want, without any sed munching whatsoever.
There is no '-L' in the ldapsearch command line. The only flags that
sqwebmail passes to ldapsearch are: -[lzDWhpb]. For example, I have
openldap-2.0.9nb1 installed. When I execute:
ldapsearch -h ldap.bigfoot.com -p 389 -b c=US "(&(sn=Lam)(cn=Johnny))"
I get:
-------------------------------------------------------------------------
version: 2
#
# filter: (&(sn=Lam)(cn=Johnny))
# requesting: ALL
#
# Lam Johnny, kami48@hotmail.com, US, hotmail.com
dn: cn="Lam Johnny",mail=kami48@hotmail.com,c=US,o=hotmail.com
mail: kami48@hotmail.com
cn: Lam Johnny
o: hotmail.com
givenName: Lam
surname: Johnny
[...]
-------------------------------------------------------------------------
But I've absolutely never touched LDAP before today, so if I'm missing
something obvious, then please tell me. I was just fiddling with the
sqwebmail setup so that I could get some kind of output from a LDAP server
query. I looked at the ldapsearchprefs.conf man page but didn't find
anything useful there that I could set to modify the output.
Thanks,
-- Johnny Lam <jlam@jgrind.org>