note 47993 rejected from function.ldap-modify by nlopess

From: Date: Wed, 08 Dec 2004 15:28:39 +0000
Subject: note 47993 rejected from function.ldap-modify by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-81522@lists.php.net to get a copy of this message
Note Submitter: gnicholas at london dot newsquest dot co dot uk ---- 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"; } ?>

« previous php.notes (#81522) next »