Hi,

# ls -l /usr/local/share/sqwebmail/libexec/authlib/
total 212
-rwxr-xr-x    1 root     root        16400 Jul 31 12:19 authdaemon
-rwxr-xr-x    1 root     root          407 Jul 31 12:19 authdaemond
-rwxr-xr-x    1 root     root        60200 Jul 31 12:19 authdaemond.ldap
-rwxr-xr-x    1 root     root        59112 Jul 31 12:19 authdaemond.mysql
-rwxr-xr-x    1 root     root        46528 Jul 31 12:19 authdaemond.plain
-rwsr-xr-x    1 root     root         7608 Jul 31 12:19 authdaemon.passwd
-rwxr-xr-x    1 root     root         1813 Jul 31 12:19 authsystem.passwd

This time i used, --with-authldap --without-authpgsql, so its starting
authdaemond.mysql but not authdaemond.ldap.

THe /usr/local/src/sqwebmail-3.5.3/authlib/config.log shows following
entries for word search 'ldap'
=============================================================


$./configure --prefix=/usr/local/share/sqwebmail --prefix=/usr/local/share/s
qwebmail --with-authldap --without-authpgsql
--enable-autopurge=10 --with-defaultlang=en --enable-cgibindir=/var/www/cgi-
bin --enable-bannerprog=program
--with-maxargsize=10000000 --with-maxmsgsize=6000000 --with-ispell=/usr/bin/
ispell --with-db=gdbm
--with-userdb=/etc/userdb --with-formdata --enable-utf7-folder-encoding --en
able-unicode=iso-8859-1,utf-8
--with-makedatprog=/usr/local/share/sqwebmail/libexec/sqwebmail/makedatprog
--with-uthchangepwdir=/usr/local/share/sqwebmail/libexec/authlib
--with-authdaemonvar=/usr/local/share/sqwebmail/var/authdaemon --sysconfdir=
/usr/local/share/sqwebmail
--with-package=sqwebmail --with-version=3.5.3 --without-socks --cache-file=/
dev/null --srcdir=.

configure:4900: checking ldap.h usability
configure:4936: checking ldap.h presence
configure:5008: checking for ldap.h
configure:5187: checking for ldap_open in -lldap
configure:5218: gcc -o conftest -g -O2 -Wall -I.. -I./..
 conftest.c -lldap  -llber -lresolv   >&5
configure:5245: checking for ldap_search_st
configure:5295: gcc -o conftest -g -O2 -Wall -I.. -I./..
  conftest.c -lldap -llber -lresolv   >&5
configure:5323: checking for ldap_start_tls_s
configure:5373: gcc -o conftest -g -O2 -Wall -I.. -I./..
  conftest.c -lldap -llber -lresolv   >&5
configure:5401: checking for ldap_result2error
configure:5451: gcc -o conftest -g -O2 -Wall -I.. -I./..
  conftest.c -lldap -llber -lresolv   >&5
ac_cv_func_ldap_result2error=yes
ac_cv_func_ldap_search_st=yes
ac_cv_func_ldap_start_tls_s=yes
ac_cv_header_ldap_h=yes
ac_cv_lib_ldap_ldap_open=yes
AUTHDAEMONMODULELIST='authcustom authcram authuserdb authldap authmysql
authpam'
AUTHMODULES='authcustom authcram authuserdb authldap authmysql authpam'
AUTHMODULES_PROGS='authcustom authcram authuserdb authldap authmysql authpam
make-authdaemond'
DAEMON_STATIC_LIST='authcustom_info authcram_info authmysql_info
authldap_info
authuserdb_info authpam_info'
INSTALLAUTHMODULES='authdaemon authdaemond.plain authdaemond.ldap
authdaemond.mysql'
LDAPLIBS='-lldap -llber -lresolv '
LIBAUTH=' libauth-authuserdb.a libauth-authpam.a libauth-authldap.a
libauth-authcram.a libauth-authcustom.a libauth-authdaemon.a'
authldaprc='/usr/local/share/sqwebmail/authldaprc'
=============================================================

rgds,

Suhag.




----- Original Message -----
From: "Brian Candler" <[EMAIL PROTECTED]>
To: "suhag" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, July 31, 2003 3:41 PM
Subject: Re: [sqwebmail] can not login thro Sqwebmail


> On Thu, Jul 31, 2003 at 03:11:54PM +0530, suhag wrote:
> > The sqwebmail server runs on RedHat Linux 6.2 having openldap-2.0.7-14
> > installed. I tried to upgrade it to
> > openldap-2.1.22-2, but there r no. of dependencies. So i kept it as it
is.
>
> If you have a spare PC, it might be worth installing a more up-to-date
> system from scratch; RH6.2 is three or four years old.
>
> > # cat /usr/local/share/sqwebmail/libexec/authlib/authdaemond
> > #! /bin/sh
> >
> > DIR=`dirname $0`
> >
> > AUTHDAEMOND=authdaemond.plain
> > if test -x $DIR/authdaemond.ldap
> > then
> >         AUTHDAEMOND=authdaemond.ldap
> > fi
>
> ls -l /usr/local/share/sqwebmail/libexec/authlib/authdaemond.ldap
>
> If it wasn't built: then
>
> cd /path/to/source/sqwebmail
> cat authlib/config.log
>
> and go through this to work out why it didn't build LDAP support.
>
> > When i enter a username & passwd at
> > http://tesmail.domain.com/cgi-bin/sqwebmail,
> > the error it gives "INVALID USER ID OR PASSWORD Please try again."
> >
> > The Apache access log shows
> > 10.10.10.1 - - [31/Jul/2003:14:49:10 +0530] "POST /cgi-bin/sqwebmail
> > HTTP/1.1" 200 3615
>
> OK, this is good: sqwebmail is running, but it's not authenticating.
However
> if you're only getting authdaemond.pgsql instead of authdaemond.ldap then
> that's going to be a problem...
>
> Regards,
>
> Brian.
>
>


Reply via email to