Hi,
I installed OpenLDAP 2.0.21 and complied PHP with ldap support. but i cannot add new entries to ldap. my code is similar to this:
$ds=ldap_connect("localhost");
$r=ldap_bind($ds,"cn=Manager, o=myorg, c=US","mypass");
$info["cn"]="smn";
$info["uid"]="smn";
$info["userpassword"]="newpass";
$info["maildrop"]="smn@myorg.com";
$info["mailacceptinggeneralid"]="smn";
$dn="cn=smn, o=myorg, c=US";
$r=ldap_add($ds,$dn,$info);
can you help me?
tnx