Hallo there everyone although i have built my code correctly according to the examples i found on the net.. i get Invalid DN syntax error when i try to insert some attributes with ldap add.. i get and read a csv file where i get the data correctly as i can see on the echos that follow: *$data=split("[;\r]",$data);* * * * **$info["cn"]= $data[$c];* * **echo "|onoma-->";* * **echo $info["cn"] ;//* * ** ** $c++;* * **$info["sn"]= $data[$c];* * **echo "|epwnimo-->";* * **echo $info["sn"] ;* * * * **$info["objectclass"][0] = "top";* * ** ** $info["objectclass"][1] = "organizationalPerson";* * * * ** * * ** $r = ldap_add($ldapconn, "cn=".$info['cn'].",cn=*****,ou=@@@,ou=****.,ou=****,dc=.....dc=....", $info);* funny thing is that when i put them absolute like *$info["sn"]= "bla bla";* it works fine... any ideas?