AlAA Posted June 3, 2006 Share Posted June 3, 2006 Hello,I can connect to AD but I can't create this user "Jean Dupont"[code]<?php$ds=ldap_connect("ldap://tfe.isims.be");if ($ds) { // Admin for modifications ldap_bind($ds, "[email protected]", "admin"); // datas $info["cn"]="Jean Dupont"; $info["sn"]="Jean"; $info["mail"]="[email protected]"; $info["objectclass"]="personne"; // add it $r=ldap_add($ds, "cn=Jean Dupont, o=isims, c=be", $info); /*line23*/ ldap_close($ds);}else echo 'Impossible to connect LDAP';?>[/code]then,[!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]Warning: ldap_add(): Add: No such attribute in c:\program files\easyphp1-8\www\test3.php on line 23[!--colorc--][/span][!--/colorc--]Any idea plz? [img src=\"style_emoticons/[#EMO_DIR#]/unsure.gif\" style=\"vertical-align:middle\" emoid=\":unsure:\" border=\"0\" alt=\"unsure.gif\" /] Link to comment https://forums.phpfreaks.com/topic/11093-add-user-in-active-directory-ldap/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.