note 43682 added to function.ldap-rename

From: Date: Wed, 30 Jun 2004 06:41:58 +0000
Subject: note 43682 added to function.ldap-rename
Groups: php.notes 
Request: Send a blank email to php-notes+get-72158@lists.php.net to get a copy of this message
Since this function isn't documented to well I thought I'd help out those trying to get this to work. <?php // $dn is the full DN of the entry you wish to move $dn = 'cn=user1,ou=group1,dc=mydomain'; /* note that $newRdn IS NOT a full DN, it is only the start I've NOT gotten it to change attributes for the RDN but that could just be my schema */ $newRdn = 'cn=user2'; // $newparent IS the full DN to the NEW parent DN that you want to move/rename to $newParent = 'ou=group2,dc=mydomain'; ldap_rename($link, $dn, $newRdn, $newParent, true); ?> Like I said above I haven't been able to get it to rename to a DIFFERENT attribute so deleteoldrdn has no affect on it. ---- Manual Page -- http://www.php.net/manual/en/function.ldap-rename.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43682 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43682&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43682&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#72158) next »