| // +-----------------------------------------------------------------------+ // /** * Implmentation of PLAIN SASL mechanism * * @author Richard Heyes * @author Michael Weibel (made it work for PHP5) * @access public * @version 1.0 * @package Auth_SASL */ require_once(dirname(__FILE__) . '/Common.php'); class Auth_SASL_Plain extends Auth_SASL_Common { /** * Returns PLAIN response * * @param string $authcid Authentication id (username) * @param string $pass Password * @param string $authzid Autorization id * @return string PLAIN Response */ public function getResponse($authcid, $pass, $authzid = '') { return $authzid . chr(0) . $authcid . chr(0) . $pass; } } ?>