Re: chdir problem (solved)

[email protected]
Newsgroups gmane.mail.jamm.user
Message-ID <[email protected]>
Solved this myself: there was a space after "homeDirectory"... Maybe you could
add this as a hint to the howto, not to put any character after the fields in
authldaprc :-)

Greetz, Ikke

Quoting Ikke:

> Hija,
> 
> Today I managed to get Jamm working, Postfix relays mails using the LDAP data
> etc, nothing wrong over there.
> 
> The problem I encounter lays in Courier-Imap.
> 
> Firet, a little log extract: (I changed the base DC always (the DC entries)
> Apr  1 20:19:31 gentoo imapd: Connection, ip=[::ffff:127.0.0.1]
> Apr  1 20:19:38 gentoo imapd: LOGIN: DEBUG: ip=[::ffff:127.0.0.1],
> command=LOGIN
> Apr  1 20:19:38 gentoo imapd: LOGIN: DEBUG: ip=[::ffff:127.0.0.1],
> [email protected]
> Apr  1 20:19:38 gentoo slapd[19984]: conn=35 fd=20 ACCEPT from
> IP=127.0.0.1:33791 (IP=0.0.0.0:389)
> Apr  1 20:19:38 gentoo slapd[20256]: conn=35 op=0 BIND dn="" method=128
> Apr  1 20:19:38 gentoo slapd[20256]: conn=35 op=0 RESULT tag=97 err=0 text=
> Apr  1 20:19:38 gentoo slapd[19989]: conn=35 op=1 SRCH
> base="ou=Domains,dc=my,dc=domain" scope=2
>
filter="(&(objectClass=JammMailAccount)(accountActive=TRUE)(delete=FALSE)([email protected]))"
> Apr  1 20:19:38 gentoo slapd[19989]: conn=35 op=1 SRCH attr=homeDirectory    
>    mailbox cn clearPassword userPassword mail
> Apr  1 20:19:38 gentoo slapd[19989]: <= bdb_equality_candidates:
> (accountActive) index_param failed (18)
> Apr  1 20:19:38 gentoo slapd[19989]: <= bdb_equality_candidates: (delete)
> index_param failed (18)
> Apr  1 20:19:38 gentoo slapd[19989]: conn=35 op=1 SEARCH RESULT tag=101 err=0
> nentries=1 text=
> Apr  1 20:19:38 gentoo slapd[19984]: conn=36 fd=22 ACCEPT from
> IP=127.0.0.1:33792 (IP=0.0.0.0:389)
> Apr  1 20:19:38 gentoo slapd[20257]: conn=36 op=0 BIND
> dn="[email protected],jvd=test.com,ou=Domains,dc=my,dc=domain" method=128
> Apr  1 20:19:38 gentoo slapd[20257]: conn=36 op=0 BIND
> dn="[email protected],jvd=test.com,ou=Domains,dc=my,dc=domain" mech=SIMPLE
> ssf=0
> Apr  1 20:19:38 gentoo slapd[20257]: conn=36 op=0 RESULT tag=97 err=0 text=
> Apr  1 20:19:38 gentoo slapd[20257]: conn=36 op=1 UNBIND
> Apr  1 20:19:38 gentoo slapd[20257]: conn=36 fd=22 closed
> Apr  1 20:19:38 gentoo imapd: chdir "": No such file or directory
> 
> The LDIF output of that '[email protected]' entry (added by Jamm):
> 
> version: 1
> 
> dn: [email protected],jvd=test.com,ou=Domains,dc=my,dc=domain
> mailbox: test.com/test/
> objectClass: top
> objectClass: JammMailAccount
> lastChange: 1080843558
> mail: [email protected]
> accountActive: TRUE
> cn: test
> delete: FALSE
> homeDirectory: /var/spool/mail/vmail
> userPassword: {SSHA}blablabla
> 
> A telnet transcript:
> 
> telnet localhost 143
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT
> THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION] Courier-IMAP ready.
> Copyright 1998-2004 Double Precision, Inc.  See COPYING for distribution
> information.
> a1 LOGIN [email protected] correctpassword
> Connection closed by foreign host.
> 
> The problem lays in the chdir appareantly. I want all my mail to be in
> /var/spool/mail/vmail/(domain)/(user). These are the attribs of all
> directories:
> 
> gentoo root # ls -l /var/spool/mail/
> total 4
> drwxr-xr-x    4 vmail    vmail        4096 Apr  1 15:08 vmail
> gentoo root # ls -l /var/spool/mail/vmail/
> total 8
> drwxr-xr-x    4 vmail    vmail        4096 Apr  1 15:03 jammCleaner
> drwx------    4 vmail    vmail        4096 Apr  1 17:33 test.com
> gentoo root # ls -l /var/spool/mail/vmail/test.com/
> total 8
> drwx------    5 vmail    vmail        4096 Apr  1 14:00 test
> drwx------    5 vmail    vmail        4096 Apr  1 17:33 test2
> gentoo root # ls -l /var/spool/mail/vmail/test.com/test
> total 12
> drwx------    2 vmail    vmail        4096 Apr  1 14:00 cur
> drwx------    2 vmail    vmail        4096 Apr  1 14:00 new
> drwx------    2 vmail    vmail        4096 Apr  1 14:00 tmp
> 
> User vmail:vmail has /var/spool/mail/vmail as HOME.
> 
> My courier authldaprc (removed all commented lines):
> 
> LDAP_SERVER             localhost
> LDAP_PORT               389
> LDAP_BASEDN             ou=Domains,dc=my,dc=domain
> LDAP_TIMEOUT            5
> LDAP_AUTHBIND           1
> LDAP_MAIL               mail
> LDAP_FILTER        
> (objectClass=JammMailAccount)(accountActive=TRUE)(delete=FALSE)
> LDAP_DOMAIN             my.domain
> LDAP_GLOB_UID           vmail
> LDAP_GLOB_GID           vmail
> LDAP_HOMEDIR        homeDirectory
> LDAP_MAILDIR            mailbox
> LDAP_DEFAULTDELIVERY    defaultDelivery
> LDAP_FULLNAME           cn
> LDAP_CLEARPW            clearPassword
> LDAP_CRYPTPW            userPassword
> LDAP_DEREF              never
> LDAP_TLS                0
> 
> Did I overlook something? I tried setting LDAP_MAILROOT too, but that didnt
> solve the issue.
> 
> Please help me out :) It's a pitty courier has such a small logging output (I
> dont even know to what dir it tries to chdir :-( ), or if it gets the correct
> result from slapd...
> 
> Regards, and thanks, Ikke





-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.