note 47993 added to function.ldap-modify

From: Date: Wed, 08 Dec 2004 15:25:17 +0000
Subject: note 47993 added to function.ldap-modify
Groups: php.notes 
Request: Send a blank email to php-notes+get-81520@lists.php.net to get a copy of this message
Hi, I am trying to modify a users email field on an MS LDAP server. However, I get the following error: Warning: ldap_modify(): Modify: No such object in D:\htdocs\systemadmin\modify.php on line 85 An error occurred. Error number 32: No such object Any idea on what causes the error code snippet below:- <? $info["cn"] = $_POST['cn']; $info["samaccountname"] = $_POST['samaccountname']; $info["mail"] = $_POST['mail']; $info["objectCategory"] = "user"; $dn = "samaccountname=".$_POST['samaccountname'].",DC=ln,DC=ad, DC=newsquest,DC=co,DC=uk"; $result = ldap_modify($conn, $dn, $info); if($result) { echo $dn." has been modified."; } else { echo "error"; } ?> ---- Manual Page -- http://www.php.net/manual/en/function.ldap-modify.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+47993 Delete -- http://master.php.net/manage/user-notes.php?action=delete+47993&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47993&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47993&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47993&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47993&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47993&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+47993&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#81520) next »