summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9b4fa0e)
raw | patch | inline | side by side (parent: 9b4fa0e)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 2 Dec 2008 14:23:39 +0000 (14:23 +0000) | ||
committer | hickert <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
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 | patch | blob | history | |
gosa-core/include/password-methods/class_password-methods.inc | patch | blob | history |
diff --git a/gosa-core/include/password-methods/class_password-methods-crypt.inc b/gosa-core/include/password-methods/class_password-methods-crypt.inc
index 518449a139da862604446451b2d4d1d371a2f249..62b1a084857a0b9d69d4006dfcd2a173bed3fed9 100644 (file)
}
}
+ function create_template_hash($attrs)
+ {
+ return($this->generate_hash('N0T$3T4N0W').'N0T$3T4N0W');
+ }
+
function generate_hash($pwd)
{
diff --git a/gosa-core/include/password-methods/class_password-methods.inc b/gosa-core/include/password-methods/class_password-methods.inc
index b3144a180931db0490579bec847727b070b19c41..4a83b9c942f851d487d1aa55b6ba582a98c4b387 100644 (file)
if($this->get_hash_name() == ""){
return("{crypt}N0T$3T4N0W");
}else{
- return('{'.$this->get_hash_name().'}').'N0T$3T4N0W';
+ return('{'.$this->get_hash().'}').'N0T$3T4N0W';
}
}