Well as long as you have the security figured out a simple plugin like the following should work.
<?php
class singlepassword extends rcube_plugin {
public $task = 'login';
function init() {
$this->add_hook('authenticate', array($this, 'authenticate'));
}
function authenticate($args) {
$args['pass'] = 'The Password';
return $args;
}
}
?>