Search This Blog

Monday, November 22, 2010

Export LDAP Users from Oracle Internet Directory 10g

This is a short and sweet post. How to export all of your OID users.

(EXPORT IN LDIF Format)

ldapsearch -h $OID_HOSTNAME -p $OID_PORT -D cn=orcladmin -w $IAS_PASSWORD -L -b "cn=Users,dc=example,dc=oracle,dc=com" -s sub "objectclass=*" > export.txt

(EXPORT IN XML Format) - use this format if you want to remove the authpassword objects. OID does not allow the import of authpassword entries.

ldapsearch -h $OID_HOSTNAME -p $OID_PORT -X -D "cn=orcladmin" -w $IAS_PASSWORD -b "cn=users,dc=oracle,dc=example,dc=com" -s sub "objectclass=inetorgperson" > portal_users.xml

No comments:

Post a Comment