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

RE: modify DNs in PHP



ldap_modrdn2()

int ldap_modrdn2( LDAP *ld, char *entrydn, char *newrdn, int deleteoldrdn );

or 

ldap_modrdn2_s()

(usage is the same)

J.Trotta
Pratt & Whitney

-----Original Message-----
From: Tomas Kucera [mailto:tom.kucera@sh.cvut.cz]
Sent: Tuesday, December 19, 2000 5:17 AM
To: LDAP
Subject: modify DNs in PHP


hi,
does anybody know how to change DNs to another one?
I have this dn:

cn=john,ou=marketing,dc=company,dc=country

and I would change it to:

cn=john,ou=support,dc=company,dc=country

but when I dont know how to do it in php
there is a function ldap_modify but its seems to work only with common
attributes.
 
	thanks

-- 
--------------------------------------------------------------------------
(o>    Tomas Kucera (kuca) student 6.rocniku FEL CVUT
//  \    tom.kucera@sh.cvut.cz, tomas@globe.cz       
V_/_   ICQ: 33297193, TEL: 0604 704983                                   
       http://symuro.webzdarma.cz
--------------------------------------------------------------------------
Linux is like fantasy game: you can kill zombies and invoke daemons
--------------------------------------------------------------------------