ghgan has asked for the wisdom of the Perl Monks concerning the following question:

I had setup a webmail using squirrelmail with sasl. I am trying to create a cgi login web page that uses the same user database as squirrelmail whose user is created using sasl. Any idea how to go about creating the login script?