[Date Prev][Date Next] [Chronological] [Thread] [Top]

Help me:Rename DN with childrens in PHP.

I have this problem:

- Server Open Ldap version 2.1.5.

- PHPinfo() : 
                      LDAP Support           enabled 
                      RCS Version             $Id: ldap.c,v
2002/04/23 18:59:57 derick Exp $ 
                      Total Links                 0/unlimited 
                      API Version               2004 
                      Vendor Name            OpenLDAP 
                      Vendor Version          20105 

- Schema :  
                      ou=company ------ ou=DIRECTOR ---- ou=division
-------------  ou=DEPARTMENT----- cn=name4(workmen)  
cn=name2(boss)        cn=name3(boss)         cn=name5(workmen)

- I want to rename "ou=division" to "ou=DIVISION" : 
                                 $ds = ldap_connect(""); 
                                 $editdn =
                                 $rdn = "ou=DIVISION";
                                 $parent =  "ou=DIRECTOR,ou=compeny";
                                 ldap_rename($ds, $editdn , $rdn , $parent ,
- This will change the DN of ou=division. But don't the DN of the DEPARTMENT
and of the CNs. 
  So I then get schema:
                      ou=company ------ ou=DIRECTOR ---- ou=DIVISION
  without the childrens.
 				Thank You for Your help.  Kopacik

The information contained in this message or any of its attachments may be confidential and is intended for the exclusive use of the addressee(s). Any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited without the express permission of the sender. The views expressed in this email are those of the individual and not necessarily those of Sony or Sony affiliated companies. Sony email is for business use only. 

This email and any response may be monitored by Sony United Kingdom Limited.