Code

Updated password change.
[gosa.git] / gosa-core / include / class_plugin.inc
index 5fd81afbbccc9986874a5efe35996c2a6102e55c..588a9e0bef73c33fd103395fa4d766b48527dd65 100644 (file)
@@ -630,7 +630,7 @@ class plugin
       /* Additional attributes */
       foreach ($tmp as $name => $len){
         $value = $add_attrs[$name];
-        $command= preg_replace("/%$name/", "$value ", $command);
+        $command= preg_replace("/%$name/", "$value", $command);
       }
 
       if (check_command($command)){
@@ -669,7 +669,7 @@ class plugin
       /* Additional attributes */
       foreach ($tmp as $name => $len){
         $value = $add_attrs[$name];
-        $command= preg_replace("/%$name/", "$value ", $command);
+        $command= preg_replace("/%$name/", "$value", $command);
       }
 
       if (check_command($command)){
@@ -705,7 +705,7 @@ class plugin
       /* Additional attributes */
       foreach ($tmp as $name => $len){
         $value = $add_attrs[$name];
-        $command= preg_replace("/%$name/", "$value ", $command);
+        $command= preg_replace("/%$name/", "$value", $command);
       }
 
       if (check_command($command)){
@@ -1016,7 +1016,7 @@ class plugin
         foreach ($this->config->adepartments as $key => $ntag){
 
           /* This one is bigger than our dn, its not relevant... */
-          if ($len <= strlen($key)){
+          if ($len < strlen($key)){
             continue;
           }