--
I'm trying like heck to get this working (I'm presenting about exim to
SeaBUG tomorrow and really need a working example).
I want to do PLAIN AUTH against a file where each line of the file has a
username:password
The password is MD5 encrypted.
So here is the authenticator
# This should allow encrypted passwords in authplain file
lookup_plain:
driver = plaintext
public_name = PLAIN
server_condition = ${lookup{$2}lsearch{/usr/local/etc/exim/authplain}\
{${if crypteq{$3}{\{md5\}$value}{yes}{no}}}{no}}
server_set_id = $2
Here is the authplain file
mdf:45ebd07ed0eea75cfdc99df2b0887821
Relevant output from exim -bd -d...
4984 SMTP<< AUTH PLAIN AG1kZgBtaXNobWFzaA==
4984 search_open: lsearch "/usr/local/etc/exim/authplain"
4984 search_find: file="/usr/local/etc/exim/authplain"
4984 key="mdf" partial=-1 affix=NULL starflags=0
4984 LRU list:
4984 9/usr/local/etc/exim/authplain
4984 End
4984 internal_search_find: file="/usr/local/etc/exim/authplain"
4984 type=lsearch key="mdf"
4984 file lookup required for mdf
4984 in /usr/local/etc/exim/authplain
4984 lookup yielded: 45ebd07ed0eea75cfdc99df2b0887821
4984 crypteq: using MD5+hex hashing
4984 subject=156335A148E8AA271069C550CC514586
4984 crypted=45ebd07ed0eea75cfdc99df2b0887821
4984 lookup_plain authenticator:
4984 $1 =
4984 $2 = mdf
4984 $3 = mishmash
4984 expanded string: no
4984 SMTP>> 535 Incorrect authentication data
What does the subject mean in the output and why isn't it matching?
Any ideas? TIA!
--
Some days it's just not worth chewing through the restraints...
Mark D. Foster, CISSP <mark@???>
http://mark.foster.cc/
--
[ Content of type application/pgp-signature deleted ]
--