From: w trillich <will@se...> - 2004-09-28 23:44:04
Downloaded the chg_sasl_passwd plugin for our debian/sarge server and
it ran fine, but never changed the passwords.
here's how we worked around it -- after all, SUDO is designed for this
kind of thing, right? :)
assuming apache runs as user "www-data" (as it does on debian)
and that cyrus can use saslpasswd2 to change passwords:
visudo so that /etc/sudoers looks like this ===========
User_Alias WEB = www-data
Cmnd_Alias SASLPASS = /usr/sbin/saslpasswd2
RunAs_Alias CYRUS = cyrus
WEB ALL = (CYRUS) NOPASSWD: SASLPASS
in the chg_sasl_passwd/config.php make one change:
#$GLOBALS['chgsaslpasswd_cmd'] = SM_PATH
#$GLOBALS['chgsaslpasswd_cmd'] = "/usr/bin/sudo -u cyrus
(that's two lines -- one commented out, the other active;
not sure if squirrelmail breaks lines as displayed or not...)
and that's it! no compile, no trubble.
Their is five errers in this sentance.