i
Moving Users from one Group to another in Oracle Internet Directory
1) This a example command for exporting all the users:
ldapsearch -h <OID_HOST> -p <oid_port> -D "cn=orcladmin" -w <pwd> -s sub -b "cn=Users,dc=rhel1,dc=com" objectclass=* > oid_all_users.ldif
This file you will have to split according to the new location of users.
To import them you will have to run:
ldapadd -h <OID_HOST> -p <oid_port> -D "cn=orcladmin" -w <pwd> -f users_container1.ldif
2) After all the users are in the right place you will have to delete the old users by emptying cn=Users,dc=rhel1,dc=com container.
OID Referential Integrity: Group Membership Update When a User Is Deleted or Moved (Doc ID 360510.1)
3) This export command above extracts all the attributes/roles for users.
No comments:
Post a Comment