From b3a294eb9e4b0b6797cd859c2d744495e94204f0 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 5 May 2008 12:38:52 +0000 Subject: [PATCH] Updated MIT git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10763 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/services/kerberos/class_password-methods-MIT.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.30.2