3 messages in net.sourceforge.lists.courier-users[courier-users] possible bug in preau...
FromSent OnAttachments
Paul CrookMar 28, 2001 8:42 am 
paul...@lineone.netMar 28, 2001 9:14 am 
Kris KelleyMar 28, 2001 9:37 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] possible bug in preauthcustom.cActions...
From:Paul Crook (pau@dai.ed.ac.uk)
Date:Mar 28, 2001 8:42:13 am
List:net.sourceforge.lists.courier-users

I'm in the process of installing courier-imap-1.3.5. As part of this I needed to write a custom authorisation routine. I set it up as set out preauthcustom.c but it wouldn't authorise access for valid users. It appears that the existing framework of code provided doesn't make a call to callback_custom (in authcustom.c) so will fail to login users.

My fix was to edit the function authcustomcommon (in preauthcustom.c) replacing the last line of this function `return(rc)' by `return ((*callback)(&auth, arg))' and in the preceding if statements (that checked the password and clear password) replacing the two statements `rc=-1' with `return(-1)'.

I've not looked closely to see if this hack will create other possible problems but it was the only way I could find to get authcustom to work.

Paul