From: hickert Date: Mon, 5 May 2008 12:38:52 +0000 (+0000) Subject: Updated MIT X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b3a294eb9e4b0b6797cd859c2d744495e94204f0;p=gosa.git Updated MIT git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10763 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/heimdal/admin/systems/services/kerberos/class_password-methods-MIT.inc b/gosa-plugins/heimdal/admin/systems/services/kerberos/class_password-methods-MIT.inc index 8c808b73e..fe3e7f071 100644 --- a/gosa-plugins/heimdal/admin/systems/services/kerberos/class_password-methods-MIT.inc +++ b/gosa-plugins/heimdal/admin/systems/services/kerberos/class_password-methods-MIT.inc @@ -160,8 +160,10 @@ class passwordMethodMIT extends passwordMethod $ldap->cd($dn); $ldap->cat($dn); $this->attrs = $ldap->fetch(); - if(isset($this->attrs['userPassword']) && preg_match("/".$this->get_hash_name()."/",$this->attrs['userPassword'][0])){ + if(isset($this->attrs['userPassword']) && preg_match("/^\{".$this->get_hash_name()."\}/",$this->attrs['userPassword'][0])){ + /* Extract principal name out of userPassword attribute + */ $p_name = preg_replace("/^\{".$this->get_hash_name()."\}/","",$this->attrs['userPassword'][0]); /* Try to detect server our principal is configured on