Jump to content

Cannot get ldap_modify to work!


FredPenner

Recommended Posts

Hi there,

 

I am trying to get ldap_modify to change an attribute in my Active Directory.

 

$activeUser="Test Guy";
$floorname = "First Floor";
$entry[physicaldeliveryofficename] = $floorname
$results = ldap_modify($ds,"CN=$activeUser,OU=Test,DC=LDAPSERVER,DC=COM", $entry);

if (TRUE === $result) {
   echo "The entry was successfully modified.";
   } else {
   echo "The entry could not be modified.";
}

 

Am I doing something wrong?

 

Thanks in advance,

 

ML

Link to comment
https://forums.phpfreaks.com/topic/227582-cannot-get-ldap_modify-to-work/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.