弁財天

ゴフマン「専門家を信じるのではなく、自分自身で考えて判断せよ」

LDIFファイルのインポート失敗

単純なldifエキスポート/インポートではうまくいかない
WARNING: Skipping entry "uid=x99900,ou=People,ou=General,dc=ugya.com"
which has no parent, ending at line 87272 of file "/tmp/20110407.ldif"

Oracle Directory Server Enterprise Edition 11g Release 1
Migrating User Data Manually

Export the required suffixes to LDIF by using the db2ldif command. This command exports all the suffix contents to an LDIF file, when the server is either running or stopped.

The following example exports two suffixes to a single LDIF file.

$ serverRoot/slapd-serverID/db2ldif -a example.ldif \
 -r -s "ou=people,dc=example,dc=com" -s "ou=departments,dc=example,dc=com"

In this example, -a specifies the resulting LDIF file, -r indicates that replication information should be exported, and -s specifies the suffixes to be included in the export.

On the new instance, import the LDIF files by using the dsadm import command. For example, the following commands import the LDIF file created previously into the two suffixes that were exported.

$ dsadm import instance-path example.ldif ou=people,dc=example,dc=com
$ dsadm import instance-path example.ldif ou=departments,dc=example,dc=com

somewhere\Sun\MPS\slapd-[サーバ名]\db2ldif.batを使うのと画面操作は同じ

エキスポートデータが、オブジェクトの作成順になってない

先頭

# entry-id: 1
dn: ou=General,dc=ugya.com
ou: General
objectClass: top
objectClass: organizationalUnit
aci: (targetattr = "*") (version 3.0;acl "ACI for Read Group";allow (read,comp
 are,search)(groupdn = "ldap:///cn=Read Group,ou=Special Groups,ou=Special,dc
 =ugya.com");)
aci: (targetattr = "*") (version 3.0;acl "ACI for Write Group";allow (all)(gro
 updn = "ldap:///cn=Write Group,ou=Special Groups,ou=Special,dc=ugya.com");)
nsUniqueId: 9f833f0b-1dd111b2-80fef156-3ff15ce3

の前に

# entry-id: 1
dn: dc=ugya.com
dc: ugya.com
objectClass: top
objectClass: domain
nsUniqueId: 9f833f02-1dd111b2-80fef156-3ff15ce3

を手メンテで編集移動

投稿されたコメント:

コメント
コメントは無効になっています。