Jump to content


Add user in Active Directory (LDAP)

  • Please log in to reply
No replies to this topic

#1 AlAA

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 03 June 2006 - 04:49 PM

I can connect to AD but I can't create this user "Jean Dupont"
if ($ds) {
  // Admin for modifications
  ldap_bind($ds, "Administrateur@isims.be", "admin");
  // datas
    $info["cn"]="Jean Dupont";
    // add it
    $r=ldap_add($ds, "cn=Jean Dupont, o=isims, c=be", $info); /*line23*/
else echo 'Impossible to connect LDAP';
[!--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\" /]

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users