Sir, I uncommented the LDAP_GLOB_UID & LDAP_GLOB_GID lines and put 'vmail' there. Also added the user vmail with "useradd -u 1558 vmail -g vmail" with gid=1000.
The /etc/passwd entries of both these servers r : -------------------------------------------------------------------------- vmail:x:1558:1000::/home/vmail:/bin/bash --------Sqwebmail server -------------------------------------------------------------------------- vmail:x:1558:1000::/var/qmail/maildirs/:/bin/true---LDAP server -------------------------------------------------------------------------- It gives "Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request." The error in Apache error log is -------------------------------------------------------------------------- chdir "/var/qmail/maildirs/": No such file or directory [Fri Aug 1 15:53:32 2003] [error] [client 10.10.10.1 ] Premature end of script headers: /var/www/cgi-bin/sqwebmail -------------------------------------------------------------------------- Its trying to chdir "/var/qmail/maildirs/" on sqwebmail server, which is not there. Its on our LDAP server where all maildirs r lying. I've mounted /var/qmail/maildirs of LDAP server on /mnt/test of sqwebmail server thro NFS. mount -t nfs -o ro 192.168.100.85:/var/qmail/maildirs /mnt/test But that isnt mounted recursively, only user's directory is mounted and not the Maildir inside it. i.e. -------------------------------------------------------------------------- #ls -l /mnt/test drwx------ 5 vmail vmail 4096 Feb 20 13:47 suhag #cd suhag # -------------------------------------------------------------------------- rgds, Suhag. ----- Original Message ----- From: "Brian Candler" <[EMAIL PROTECTED]> To: "suhag" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, August 01, 2003 3:34 PM Subject: Re: [sqwebmail] can not login thro Sqwebmail > On Fri, Aug 01, 2003 at 01:31:05PM +0530, suhag wrote: > > Sir, > > > > I checked up the sqwebmail server's "tail -f /var/log/messages", it was > > logging an error whenever i supply username & passwd at > > http://tesmail.domain.com/cgi-bin/sqwebmail. > > ================================================================== > > Aug 1 13:03:52 sqweb authdaemond.ldap: authlib: refuse to authenticate > > <username>: uid=0, gid=0 > > That means you are trying to login as 'root', and authlib won't let you do > that. (I guess either the database is giving a uid of 0 back, or you haven't > set one) > > > Currently the LDAP_GLOB_UID & LDAP_GLOB_GID options r hash marked. Earlier > > 'vmail' was specified there as all r maildirs have 'vmail' as their uid/gid > > on LDAP server, but at this time it was logging ann error > > ================================================================== > > Aug 1 12:16:54 sqweb authdaemond.ldap: authldap: INVALID LDAP_GLOB_UID > > ================================================================== > > This means you don't have an entry in /etc/passwd or /etc/group for 'vmail'. > > Create a user, but because you are using NFS you should make sure that you > use the same uid/gid as you have on the remote NFS server. > > See 'man useradd', it might be something like > > # useradd -m -u 999 vmail > > if the uid/gid is 999, or else copy the relevant lines exactly from your > other machine (probably /etc/passwd, /etc/shadow and /etc/group) > > Regards, > > Brian. >
