Bug 61872 - [PATCH] mail/akpop3d fails to authenticate when using an authfile
Summary: [PATCH] mail/akpop3d fails to authenticate when using an authfile
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-25 07:40 UTC by David P. Reese Jr.
Modified: 2004-01-25 12:54 UTC (History)
0 users

See Also:


Attachments
file.diff (461 bytes, patch)
2004-01-25 07:40 UTC, David P. Reese Jr.
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David P. Reese Jr. 2004-01-25 07:40:07 UTC
	akpop3d fails to authenticate when using an external authfile.

Fix: There is a bug in the loop that reads in the authfile line by line.
How-To-Repeat: 	Install mail/akpop3d.

	Create the authfile /tmp/authfile with the following contents:
	--- begin authfile ---
	daver:foobar:daver:/var/mail/daver
	--- end authfile ---

	Start akpop3d:
	# akpop3d -a /tmp/authfile

	Telnet to the pop3 server and try to authenticate:
	$ telnet localhost pop3
	Trying ::1...
	Trying 127.0.0.1...
	Connected to localhost.
	Escape character is '^]'.
	+OK
	USER daver
	+OK
	PASS foobar
	-ERR authentication failed
	Connection closed by foreign host.
Comment 1 Kirill Ponomarev freebsd_committer freebsd_triage 2004-01-25 12:54:49 UTC
State Changed
From-To: open->closed

Committed, thanks!