Change MySQL Password plugin for SquirrelMail
---------------------------------------------
Mark Motley, mmotley@la-mirada.net
Ver 1.0, Mar 28 2001 - Initial Version

This plugin was heavily based on the change LDAP password module by:
Simon Annetts, simon@ateb.co.uk

This plugin allows the user to change their password when it's stored in
a MySQL database. 

This can be used by admins using the MySQL SASL patch with Cyrus IMAP,
which is how I'm using it.  Under this model, a table is created with
userid and (optionally) crypted password columns.  Cyrus SASL authenticates 
users via this table.

The SASL-mysql patch for Cyrus SASL can be obtained from:
http://www.dmzs.com/~dmz/projects/cyrus/

I recommend you modify the patch and turn on encryption on the
password.  Do this by changing this section:

+ //#define QUERY_STRING    "select %s from %s where %s = '%s' and %s = password('%s')"
+ #define QUERY_STRING    "select %s from %s where %s = '%s' and %s = '%s'"

Just unremark the first line and remark the second.  If you do this,
make sure you set the "mysql_saslcrypt" variable to 1.  If you use
unencrypted passwords (standard patch), set it to 0 and it will use
plaintext passwords.

Make sure you modify the config.php file and specify the required 
login, database, table, and column information to fit your needs.


--CHANGE LOG----------------------------

1.0	Initial Release, stable for me...
