From dd98bbdde340dd7b5c9e1bb5679f13d856a3f75f Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 12 Apr 2010 12:12:46 +0000 Subject: [PATCH] Include target dn in change_password calls git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@17589 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/functions.inc | 4 ++-- gosa-core/include/password-methods/class_password-methods.inc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index 8609fab62..200558212 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -2923,7 +2923,7 @@ function change_password ($dn, $password, $mode=0, $hash= "") // Get all available encryption Methods // NON STATIC CALL :) - $methods = new passwordMethod(session::get('config')); + $methods = new passwordMethod(session::get('config'),$dn); $available = $methods->get_available_methods(); // read current password entry for $dn, to detect the encryption Method @@ -2953,7 +2953,7 @@ function change_password ($dn, $password, $mode=0, $hash= "") } else { // User MD5 by default $hash= "md5"; - $test = new $available['md5']($config); + $test = new $available['md5']($config, $dn); } if($test instanceOf passwordMethod){ diff --git a/gosa-core/include/password-methods/class_password-methods.inc b/gosa-core/include/password-methods/class_password-methods.inc index cde47c38e..e1c348f2d 100644 --- a/gosa-core/include/password-methods/class_password-methods.inc +++ b/gosa-core/include/password-methods/class_password-methods.inc @@ -29,7 +29,7 @@ class passwordMethod var $lockable = TRUE; // Konstructor - function passwordMethod($config) + function passwordMethod($config, $dn) { } -- 2.30.2