Code

Updated password methods.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 2 Dec 2008 14:23:39 +0000 (14:23 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 2 Dec 2008 14:23:39 +0000 (14:23 +0000)
-Fixed template password generation

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13119 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/password-methods/class_password-methods-crypt.inc
gosa-core/include/password-methods/class_password-methods.inc

index 518449a139da862604446451b2d4d1d371a2f249..62b1a084857a0b9d69d4006dfcd2a173bed3fed9 100644 (file)
@@ -36,6 +36,11 @@ class passwordMethodCrypt extends passwordMethod
     }
   }
 
+  function create_template_hash($attrs)
+  {
+    return($this->generate_hash('N0T$3T4N0W').'N0T$3T4N0W');
+  }
+
 
   function generate_hash($pwd)
   {
index b3144a180931db0490579bec847727b070b19c41..4a83b9c942f851d487d1aa55b6ba582a98c4b387 100644 (file)
@@ -38,7 +38,7 @@ class passwordMethod
     if($this->get_hash_name() == ""){
       return("{crypt}N0T$3T4N0W");
     }else{
-      return('{'.$this->get_hash_name().'}').'N0T$3T4N0W';
+      return('{'.$this->get_hash().'}').'N0T$3T4N0W';
     }
   }