From 9b10111d38b0589067bb74136863655b770a0ca2 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 2 Dec 2008 14:23:39 +0000 Subject: [PATCH] Updated password methods. -Fixed template password generation git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13119 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../password-methods/class_password-methods-crypt.inc | 5 +++++ .../include/password-methods/class_password-methods.inc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 518449a13..62b1a0848 100644 --- a/gosa-core/include/password-methods/class_password-methods-crypt.inc +++ b/gosa-core/include/password-methods/class_password-methods-crypt.inc @@ -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) { diff --git a/gosa-core/include/password-methods/class_password-methods.inc b/gosa-core/include/password-methods/class_password-methods.inc index b3144a180..4a83b9c94 100644 --- a/gosa-core/include/password-methods/class_password-methods.inc +++ b/gosa-core/include/password-methods/class_password-methods.inc @@ -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'; } } -- 2.30.2