Re: ldap rename, anyone? help!
| From: | Unknown Sender | Date: | Thu, 27 Dec 2001 22:25:47 +0000 |
| Subject: | Re: ldap rename, anyone? help! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-78879@lists.php.net to get a copy of this message | ||
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