I'll try to help you out. On Wed, Dec 19, 2001 at 04:10:32PM +0000, Greg Ulyatt wrote: > I can set the LDAP version no problem (from 2 to 3 to have this > function), but every time I try anything with the ldap_rename function, > it comes back as an unsupported call (protocol error). Does anyone out > there know why this would happen and how to get ldap_rename working?
I'm thinking of improving ldap_rename() a bit, but doesn't it work if you do ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3) prior to binding, and then supply non-zero strings for all "dn" arguments? Something like: ldap_rename($ds, "uid=foo,dc=my-company,dc=com", "uid=bar", "dc=my-company,dc=com", TRUE); If this doesn't work, let me know and I'll do some research and apply the necessary fix. I've been planning for a while to make ldap_rename() more usable (work with old API, v2 etc). Sorry for not responding before, Stig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]