From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Sat, 5 Feb 2005 15:12:54 -0500 From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] factotum & invalid entries In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <8ff5bc522d87f33eb5b6dc5c159350b4@vitanuova.com> Topicbox-Message-UUID: 039a4418-ead0-11e9-9d60-3106f5b1d025 > I don't have a secstore. Each time I connect to, say, sources, and I type > either an incorrect username or password, I can't connect (authentication > fails) until I clean factotum's database and get it correct the first time. I think you are half-mistaken. If you type a bad password, it should be no big deal. If you type a bad user name, that's when you get the infinite loop. > What exactly happens when authentication fails and factotum re-prompts > the user for credentials? If you type the same user name and a new password, then factotum replaces the bad key, and all is well. But if you type the wrong user name the first time and then get it right the second time, factotum won't think the two keys match (the user names are different!) so your key gets added to the end of the list. Factotum looks for keys to use from the beginning of the list, so it finds the bad key again, and adding more keys isn't going to help. I changed things so that the new keys get inserted at the beginning of the list. That should help a bit. Russ