squid-imap is a basic squid auth helper that authenticates usernames and passwords via an IMAP server.