Code

Fixed base hook to use unencoded dn's
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 27 Nov 2007 14:46:00 +0000 (14:46 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 27 Nov 2007 14:46:00 +0000 (14:46 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7916 594d385d-05f5-0310-b6e9-bd551577e9d8

include/functions.inc

index f91515c26657e50c3ba3460afdc74ca4c421baaf..8899b7d0b7a66c7c373e90f7daf403f359eccafc 100644 (file)
@@ -2144,7 +2144,7 @@ function get_base_from_hook($dn, $attrib)
     $command= $config->current['BASE_HOOK'];
 
     if ($command != ""){
-      $command.= " '$dn' $attrib";
+      $command.= " '".LDAP::fix($dn)."' $attrib";
       if (check_command($command)){
         @DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__, $command, "Execute");
         exec($command, $output);