ldap add Invalid DN syntax

From: Date: Fri, 30 Apr 2010 11:34:55 +0000
Subject: ldap add Invalid DN syntax
Groups: php.general 
Request: Send a blank email to php-general+get-304773@lists.php.net to get a copy of this message
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?

« previous php.general (#304773) next »