Re: [PHP] ldap rename, anyone? help!

2001-12-27 Thread Stig Venaas

I'll try to help you out.

On Wed, Dec 19, 2001 at 04:10:32PM +, 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]




[PHP] ldap rename, anyone? help!

2001-12-19 Thread Greg Ulyatt

I'm having a great deal of trouble with the new ldap_rename function...
it won't seem to work for me at all!

I am running on the following:
Solaris 8 on Ultra1e (dev server, 256M ram)
OpenLDAP 2.0.18
PHP 4.1.0

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?

OR 

can someone give me a good idea of how to change a DN with PHP? 

help!

-- 
Greg Ulyatt
REDNET Ltd.
UNIX Systems Administrator
High Wycombe, Bucks, UK

-- 
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]