August 31st, 2004, 02:40 PM
ldap_mod_replace with AD and PHP
I am trying to modify an attribute in Active Directory useing LDAP and PHP. I can connect, bind and view the data from Active Directory I just can't seem to modify it. I am using the ldap_mod_replace within php and I even get no errors when it runs and it shows that it was successfully. But when I review the attribute that is to be changed, in this case the telephoneNumber. It is still the same as it was before. If anyone has any ideas I would appreciate it. I am currrently using PHP 5.0.1 on a windows 2003 server running active directory and IIS
August 31st, 2004, 06:42 PM
September 1st, 2004, 08:12 AM
don't use ldap_mod_replace
use $r = ldap_modify($ldapConn, $dn , $info);
for attribute-value modification
September 2nd, 2004, 01:41 PM
Got it. It really helps when you use the full dn when identifing the object you what to modify. Now I just need to get the connection to the server to work on port 636 so I can change passwords. Thanks.
September 3rd, 2004, 09:44 AM
if you can't establish the ssl - connection (and i bet you can't)
September 8th, 2004, 10:53 AM
I tried the suggestions on the web site that you directed to. But I still have the issue. If I put ldaps:// it connects on port 389 (unsecure) and I get unwilling to perform. If I put in the <ip address>, 636 to force the secure port I get unable to bind. If you have any other thoughts I would appreciate them.