Hi,
I have a solution. There is a mistake in a ldaplist.c. in directory
courier-0.43.2/webmail
As I uderstand ldapsearch function (below) it checks if the variable ABOOK is
defined OK.
int ldapsearch()
{
if (*cgi("ABOOK") == 0 || *cgi("attr1") == 0 || *cgi("op1") == 0
|| *cgi("value1") == 0) return (-1);
return (0);
}
But the problem is that a few lines before where the html is created it is
defined as "abook" and not "ABOOK"
for (p=abooks[i]; p; p=p->next)
{
printf("<tr valign=\"top\"><td align=\"right\">");
/*printf("<input type=\"radio\" name=\"abook\"");*/
printf("<input type=\"radio\" name=\"ABOOK\"");
So the change from abook to ABOOK solved the global search problem, which work
like a charm now!
Uros
PS:I believe that there is a similar problem also with the user address book
deletetion which does not work either!
-----Original Message-----
From: Biswajit Banerjee [mailto:[EMAIL PROTECTED]
Sent: Monday, October 13, 2003 7:26 PM
To: Uros Slak
Cc: Brian Candler; [EMAIL PROTECTED]
Subject: RE: [sqwebmail] Re: global address book search problem
yes , when i also used # strings /var/www/cgi-bin/sqwebmail3/sqwebmail |
grep -i ldap
i got
ldaplist.c
sqwebmail-ldapaddressbook
ldapabook_add
/usr/local/share/sqwebmail3/ldapaddressbook
" /></td><td><font size="+1" class="ldaplist-name">%s</font><br
/> <span class="tt"><font
size="-2" class="ldaplist-ldapurl">ldap://
/usr/local/share/sqwebmail3/ldapsearch
ldap
" /></td><td><font size="+1" class="ldapsearch-name">
</font><font size="+1" class="ldapsearch-addr"><
<span class="ldapsearch-misc">
LDAP
ldapsearch
ldapsearch.html
Brain , I have recompiled the way you have done with the same version
downloaded , but still no luck , every thing in sqwebmail works fine
except the global address book search .
Can you suggest something more ...
regards
Biswajit
On Mon, 13 Oct 2003, Uros Slak wrote:
> Hi, As I can se you are working on the same subject.
> I can just add my strings output for webmail, where the path to config file
and
> to ldapsearch is correct, but the search does not work:
>
> # strings /var/www/cgi-bin/webmail | grep -i ldap
> /etc/courier/ldapaddressbook
> sqwebmail-ldapaddressbook
> ldapabook_add
> ldaplist.c
> ldap
> " /></td><td><font size="+1" class="ldaplist-name">%s</font><br
/> &n
> bsp;<span class="tt"><font size="-2" class="ldaplist-ldapurl">ldap://
> /opt/courier/share/sqwebmail/ldapsearch
> " /></td><td><font size="+1" class="ldapsearch-name">
> </font><font size="+1" class="ldapsearch-addr"><
> <span class="ldapsearch-misc">
> LDAP
> ldapsearch
> ldapsearch.html
>
> I would also like to add, tha if I add new ldap address book, it can not be
> deleted any more!
>
> Regards
>
> Uros
>
> P.S. Do you think it has anything to do with the fact the I user courier.spec
to
> build rpms?
>
>
>
>
> -----Original Message-----
> From: Brian Candler [mailto:[EMAIL PROTECTED]
> Sent: Monday, October 13, 2003 10:41 AM
> To: Biswajit Banerjee
> Cc: [EMAIL PROTECTED]
> Subject: Re: [sqwebmail] Re: global address book search problem
>
>
> On Mon, Oct 13, 2003 at 10:13:49AM +0530, Biswajit Banerjee wrote:
> > Dear Brian,
> >
> > Thank for the advice ..
> > as you suggested grep LDAPSEARCH sqwebmail/htmllibdir.h
> > resulted as expected i.e /usr/local/share/sqwebmail3/ldapsearch
> > but strings /var/www/cgi-bin/sqwebmail3/sqwebmail | grep ldap
> > didnot out put any result.
>
> For me:
> # strings sqwebmail | grep ldap
> ldaplist.c
> sqwebmail-ldapaddressbook
> ldapabook_add
> /etc/opt/sqwebmail/ldapaddressbook
> " /></td><td><font size="+1"
> class="ldaplist-name">%s</font><br/> <span class="tt"><font
> size="-2" class="ldaplist-ldapurl">ldap://
> /usr/local/opt/sqwebmail/ldapsearch
> ldap
> " /></td><td><font size="+1" class="ldapsearch-name">
> </font><font size="+1" class="ldapsearch-addr"><
> <span class="ldapsearch-misc">
> ldapsearch
> ldapsearch.html
> #
>
> > Any way can you tell me the sqwebmail version you are running and what was
> > the env. you have compiled ..so that i can try at my end and see if it
> > succied.
>
> 3.6.0.20030922
>
> LDFLAGS="-L/usr/local/lib"; export LDFLAGS
> CPPFLAGS="-I/usr/local/include"; export CPPFLAGS
> ./configure \
> --prefix=${PREFIX}/sqwebmail \
> --sysconfdir=${CONFDIR}/sqwebmail \
> --with-piddir=${VARDIR}/sqwebmail/run \
> --localstatedir=${VARDIR}/sqwebmail \
> --datadir=${CONFDIR}/sqwebmail/share \
> --with-authdaemon \
> --with-authldap \
> --without-ipv6 \
> --without-authuserdb \
> --without-authpam \
> --without-authpwd \
> --without-authshadow \
> --without-authvchkpw \
> --without-authpgsql \
> --without-authmysql \
> --without-authcram \
> --without-authcustom \
> --with-mailuser=exim \
> --with-mailgroup=exim \
> --with-cachedir=${VARDIR}/sqwebmail/cache \
> --with-cacheowner=exim \
> --enable-https=auto \
> --enable-webpass=no \
> --enable-mimetypes=${PREFIX}/apache/conf/mime.types \
> --enable-imageurl=${WEBMAILIMAGEURL} \
> --enable-imagedir=${WEBMAILDOCDIR}${WEBMAILIMAGEURL} \
> --enable-cgibindir=${WEBMAILCGIDIR} \
> --enable-softtimeout=3600 \
> --disable-changepass \
> --with-fcgi \
> --without-gzip \
> && ${GMAKE} configure-check && ${GMAKE} && ${GMAKE} check
>
> Brian.
>
>
>
>