To answer some questions: -did you reload inetd.conf by sending it a HUP? Yes I did that. -Could this be a mistake in the xinetd file? No, just a cut-n-paste error. -but is there a comma after the last quotation mark in config? Yes. -are you sure checkpassword is working? Yes, it was tested as below.
The telnet login test I believe demonstrates the crux of the problem: "1 NO LOGIN failed: Plain text password authentication is disallowed." Binc is just not getting the "plain auth = yes" param from my config file. I've checked the inetd.conf line and the conf file itself, and its permissions. I don't know what it could be. Its probably something little.
It would be very helpful if binc had some sort of "-d" flag like exim to output extra debug info to the log. There is not very much log output to go on.
Any more suggestions are appreciated. I'll let you all know when I find it.
John Masinter wrote:
Summary:
I have set ' allow plain auth in non ssl = "yes" ' in the config file, but a telnet test login still fails with "Plain text password...disallowed.
Details:
Q: Why is Binc not accepting my config of plain auth = yes?
0) I have set inetd.conf as below, and it starts up fine:
imap stream tcp nowait root /usr/local/sbin/bincimap-up \
--conf=/etc/bincimap/bincimap.con f --logtype=syslog -- /bin/checkpassword \
/usr/local/sbin/bincimapd
1) The conf file is accessible:
# ls -l /etc/bincimap/bincimap.conf
-rw-r--r-- 1 root root 4064 Dec 8 17:23 /etc/bincimap/bincimap.conf
2) The telnet login test:
$ telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK Welcome to Binc IMAP v1.2.3 (c) Copyright 2002, 2003 Andreas Aardal Hanssen at 2003-12-08 17:23:15 EST
1 LOGIN karen temp
1 NO LOGIN failed: Plain text password authentication is disallowed. Please try enabling SSL or TLS in your mail client.
Connection closed by foreign host.
3) I checked that 'checkpassword' is functioning as expected, and with the test login.
# useradd testuser .... # passwd testuser goodpass # printf "testuser\0goodpass\0Mon Dec 8 16:27:22 EST 2003\0" > t.good # printf "testuser\0baddpass\0Mon Dec 8 16:27:22 EST 2003\0" > t.bad # checkpassword echo "it worked" 3<t.good ; echo $? it worked 0 # checkpassword echo "it worked" 3<t.bad ; echo $? 1 #
4) Enironment: Slackware 9.1, kernel 2.4.22, gcc 3.2.3.
5) Syslog:
Dec 8 17:23:15 mill bincimap-up[23279]: Client connected to Binc IMAP from ?
Dec 8 17:23:25 mill bincimap-up[23279]: Unprivileged stub shutting down - read:0 bytes, wrote:0 bytes.
--
,,,
(oo)
----------------------o0Oo-(_)-oO0o-----------------------
| John F. Masinter Total Business Computing Inc. |
| Voice: 770-886-9100 x10 Fax: upon request |
| mailto:[EMAIL PROTECTED] http://www.totalb.com |
| P.O. Box 88584 Atlanta, GA 30356 |
------------------------ooO--Ooo--------------------------"The spec said Windows-95 or better...so I installed Linux"
