SquirrelMail:: quota_usage IS NOW check_quota
All quota checking plugins have been merged into one official project at Squirrelmail.org. Use the check_quota plugin starting with version 2.2.
SquirrelMail does not come with the ability to chang user passwords. This is becaus SM is just a PHP based mail client and has nothing to do with the authentication server. Password authentication is done differently on Linux, Mac OS X, and Windows, so there is no default password changing feature. Luckily, SM accepts plugin modules.
Individuals have come up with password changing modules that interface with LDAP, Merak, MySQL, PAM (poppassd), Courier (courierpassd), Cyrus, and the UNIX shadow password file.
Unfortunately, there is no plug-in available for CGP’s PWD.Â
Now there is a easy hack to make the Change_passwd plugin module work with Mac OS X’s authentication server.
For Mac OS X servers v. 10.2.x~10.3.x, you can use an open source API called “dspasswd” to interface SM/Change_passwd to the Open Directory password service. For 10.4.x, Apple has included an API called “pwpolicy” that works very well. For this example, we’ll use pwpolicy on 10.4.x.
0. You will need the appropriate version of the Compatibility plugin already installed.
1. Download the version of the “Change_passwd” plugin for your version of SM.
2. Unzip the change_passwd directory into the SM/plugins directory.
gzipÂ -xzfrÂ change_passwd_x.tar.gz
3. Open the change_passwd directory. Copy config.php.sample to config.php.
cpÂ config.php.sampleÂ config.php
3. Edit config.php to point the plugin to the pwpolicy API:
$overridePathToChpasswdÂ =Â '/usr/bin/pwpolicy';
4. Edit options.php. Find and comment out:
//Â $cmdÂ =Â "$overridePathToChpasswdÂ $safe_userÂ $safe_oldpwÂ $safe_newpw";
Add right after:
$cmdÂ =Â "$overridePathToChpasswdÂ -aÂ $safe_userÂ -pÂ $safe_oldpwÂ -uÂ $safe_userÂ -setpasswordÂ $safe_newpw";
5. In v.4.0 of the plugin, there is a typo in functions.php:
6. In v.4.0 of the plugin, there is a typo in options.php, line 64:
7. Run SM the configure tool:
8. Turn on the change_passwd plugin.
The plugin will now be available under the Options menu through the webmail interface. Try it out.
To use theÂ change_passwd plug-in, you also need theÂ compatibillity plug-in. The last update to the change_passwd plug-in was in 2004 when the the compatibility plug-in was on version 1.3.
Alas, the change_passwd plug-in does not work with the newest compatibility plug-in. So far, I have confirmed that the compatibilty plugin works up to 2.0.2.
I suspect this is because the location of the compatibility patch was change in 2.0.3.
A beta version of the Change Password plugin is available at:
The beta version 4.2-1.2.8 released on 12/07/05 includes switches for ‘pwpolicy’ in the config.php file and does not require any changes in functions.php or options.php.
I have confirmed that change_passwd v.4.2b-1.2.8r120705 works with the compatibility plugin 2.0.13.
Merry Christmas to all of you who are celebrating the birth of Jesus, or just joining in the festivities because your culture has no other parties scheduled during this time of year. Happy holidays to all the others who’s cultures do traditionally celebrate some occurance this time of year but not related to Christ. And to all of you who are not celebrating at all during this time of year, I’d like to wish you a happy new year!
Aw, shit. I slept through the whole thing. There’s only a minute to go. Roll over the post date and you’ll see that I’m typing this at 11:59 PM.
Last but not least, to all of you who have betrayed me over the past year. Fuck you all and I hope you all die before the new year.