Code

IE Psot fix ....
[gosa.git] / include / class_ldap.inc
index 84eb21c1d2216aa455a1c9338a95cd44ee76dd28..e6ed318e2f624375433b702a3c15cf42e20e6361 100644 (file)
@@ -85,7 +85,7 @@ class LDAP{
       $this->reconnect= true;
       return (0);
     } else {
-      $this->error = "Could not bind to " . $binddn;
+      $this->error = "Could not bind to " . $credentials['ADMIN'];
       return NULL;
     }
   }
@@ -396,6 +396,7 @@ class LDAP{
             break;
           default:
             print_red(sprintf(_("Autocreation of type '%s' is currently not supported. Please report to the GOsa team."), $type));
+            echo $_SESSION['errors'];
             exit;
         }
         $this->cd($cdn);
@@ -522,7 +523,7 @@ class LDAP{
 
     /* Reset index */
     $i = 1 ; 
-
+       $identifier = array();
     $attribute= @ldap_first_attribute($this->cid,$entry,$identifier);
     while ($attribute) {
       $i++;