config= $config; } function is_available() { # Check if heimdal information is available # in configuration and return true/false # # In particular, we need the hook to feed kadmin # return true; } function generate_hash($pwd) { $mode= "kerberos"; if (isset($this->config->current['KRBSASL']) && preg_match('/^true$/i', $this->config->current['KRBSASL'])){ $mode= "sasl"; } return "{".$mode."}".$this->attrs['uid'][0]."@".$cfg= $this->config->data['SERVERS']['KERBEROS']['REALM']; } function remove_from_parent() { # Find and remove kerberos entry below $this->dn } function set_password() { # Add or modify kerberos entry below $this->dn } function get_hash_name() { $mode= "kerberos"; if (isset($this->config->current['KRBSASL']) && preg_match('/^true$/i', $this->config->current['KRBSASL'])){ $mode= "sasl"; } return "$mode"; } function is_configurable() { return TRUE; } function configure() { echo "Show dialog"; } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?>