[Dovecot] Trying to modify the source - fopen problems

Timo Sirainen tss at iki.fi
Wed May 9 16:05:23 EEST 2007


On Fri, 2007-04-27 at 08:58 -0500, Phillip T. George wrote:
> Anyways, I'm trying to modify the dovecot source a bit, but the problem 
> I'm having is that whenever I use "fopen", it always returns NULL.  I've 
> tried a variety of things, even fopen("/dev/null", "w") -- because that 
> should almost always work.  I'm trying to get it to work in 
> src/pop3-login/client-authenticate.c

pop3-login is chrooted, so there's no /dev. You could of course set
login_chroot=no

> Any idea why this might be happening?  Any suggestions as to where to 
> put the code instead?  (I'm trying to check the username against some 
> information in a file OR pass the username to a process and have it do 
> the work)

dovecot-auth would be the correct place to do the authentication. Maybe
you want to use a checkpassword script
(http://wiki.dovecot.org/PasswordDatabase/CheckPassword).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20070509/4657d8be/attachment.pgp 


More information about the dovecot mailing list