Re: [maildropl] per-user uid & ldap
Brought to you by:
mrsam
From: <ep...@ne...> - 2007-05-05 18:43:40
|
Petri Riihikallio wrote: >> By enabling DEGUN_LOGIN (and using telnet to login trough IMAP) I could >> verify that all the necessary information is returned from the LDAP >> server including the UID/GID. > > What was the value returned for "HOMEDIR" in this test case? > >> By using "su mail" I verified that I could read a users mailbox (owned >> by the user) so this is working fine, >> but maildrop still gives the error "Unable to change to home directory". >> I don't really understand this as maildrop >> is owned by root and setuid, so it should be able to change to the >> homedir either as root or mail. > > If the path returned for HOMEDIR doesn't exist even root or mail won't > be able to change to it, never mind the permissions. Of course the correct HOMEDIR value was returned from the LDAP server, so that was not a problem. When testing with IMAP it gave the same error: "chdir([path]) failed!!" Thanks, Adam |