title: Ldap_add() : Invalid Syntax
body: <p>I have a program here that uses the ldap_add,
  when i try to run the program, it displays an 
  error:</p>
  
  <blockquote>
    <p>Warning: ldap_add() [function.ldap-add]: Add: Invalid syntax in
    /var/www/suey/costcenter.20090617.php on line 780</p>
  </blockquote>
  
  <p>My lil' code here is:</p>
  
  <pre><code> $ldapservers = 'ourServer';
   $ds = ldap_connect($ldapservers);
   if ($ds) {
       $r = ldap_bind($ds, $ldaprootun, $ldaprootpw);
       $add = ldap_add($ds, "uid=$fuid, $ldapbasedn", $infonew);
   }
  </code></pre>
  
  <p>ldapbasedn is set to <code>o=ourGroup;</code> infonew is an array of entries (person information)
  and am so sure that the array is not empty because i already tested it.
  the uid is not empty too.
  What could be wrong? Is it the entries(array)? or the server am trying to connect to?
  I tried testing the ldap_bind, and it also works well too..hmmm..</p>
  
  <p>Pls help.. thanks! </p>
  
  <hr>
  
  <p>I found the problem.. it's in the index infonew["createdBy"] = getenv("REMOTE_USER");
  it returns NULL! now, is that right? </p>