Subject: Re: CVS commit: pkgsrc/mail/sqwebmail
To: John Darrow <>
From: Johnny Lam <>
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 <> 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 -p 389 -b c=US "(&(sn=Lam)(cn=Johnny))"

I get:

version: 2

# filter: (&(sn=Lam)(cn=Johnny))
# requesting: ALL

# Lam Johnny,, US,
dn: cn="Lam Johnny",,c=US,
cn: Lam Johnny
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.


	-- Johnny Lam <>