summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ee462af)
raw | patch | inline | side by side (parent: ee462af)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 25 Jun 2009 06:51:15 +0000 (06:51 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 25 Jun 2009 06:51:15 +0000 (06:51 +0000) |
- We do not have $config object during setup, added checks.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13791 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13791 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_password-methods-MIT.inc | patch | blob | history |
diff --git a/gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_password-methods-MIT.inc b/gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_password-methods-MIT.inc
index f41b114257e1cc56e5e4a4e673595b43a8b5e002..bf7092834c5ac5abb2be0597f74b6b0cb3e3b742 100644 (file)
*/
public function is_available()
{
+ global $config;
+ /* No config object given, this may be the case
+ if there is only a is_available() request triggered.
+ */
+ if(!is_object($config)){
+ return;
+ }
+
+
$o = new gosaSupportDaemon(FALSE);
if(count($this->server_list) && $o->connect() && $o->is_configured()){
public function generate_hash($pwd = "")
{
$mode= "kerberos";
- if ($this->config->get_cfg_value("useSaslForKerberos") == "true"){
+
+ /* No config object given, this may be the case
+ if there is only a is_available() request triggered.
+ */
+ if (is_object($config) && $this->config->get_cfg_value("useSaslForKerberos") == "true"){
$mode= "sasl";
}
return "{".$mode."}".$this->attrs['uid'][0]."@".$this->goKrbRealm;
public function get_hash_name()
{
$mode= "kerberos";
- if ($this->config->get_cfg_value("useSaslForKerberos") == "true"){
+
+ /* No config object given, this may be the case
+ if there is only a is_available() request triggered.
+ */
+ if (is_object($config) && $this->config->get_cfg_value("useSaslForKerberos") == "true"){
$mode= "sasl";
}
return "$mode";