Phillip T. George
2007-Apr-27 13:58 UTC
[Dovecot] Trying to modify the source - fopen problems
Hello all, I don't know if this needs to be sent to a different list or not, if so, please let me know. 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 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) Thanks, Phillip
Timo Sirainen
2007-May-09 13:05 UTC
[Dovecot] Trying to modify the source - fopen problems
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.cpop3-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: signature.asc 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.bin>