简体   繁体   中英

Move all entries from one OU to another OU in Oracle Unified Directory server

I am using Oracle Unified Directory ldap server and i want to rename OU which is having more user entries in it.I just executed below script in my staging ldap server to change the name of OU and it got worked and all user entries moved to new OU.

dn: ou=OLD,dc=example,dc=com
changetype: modrdn
newrdn: ou=NEW
deleteoldrdn: 1

but below oracle documentation tells, we cannot rename if RDN has any childeren. https://docs.oracle.com/cd/E22289_01/html/821-1273/adding-modifying-and-deleting-directory-data.html

please suggest is it safe to rename ou using modrdn.

Well, according to Oracle on OUD, no.

MANY LDAP server implementations have the same limitation.

The LDAP server implementation controls this activity. Some LDAP server implementations of course do support performing a modRDN on a container.

AFIK, Microsoft Active Directory does.

eDirectory I know does as long as the container is a partition.

You can of course, perhaps, not ideal, create a new container with the new name and then modRDN the user within the "old" container into the new container.

I guess you just looked at the wrong documentation (OUD 11.1.1 was released in 2012).

Starting from 11.1.2.x (released in 2014), OUD documentation no more lists that limitation .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM