On 01/24/2012 12:25 PM, Dan H. Eicher wrote:Right. import is not an "additive" operation, it is a "destructive" operation. If you want the entry to be added, add it first to the LDIF file. That means your ldif file will first need an entry for dc=localdomain, then under that an entry for ou=Users,dc=localdomain, then your user entries.
Hi,
I will answer publicly so others might get some benefit, but first a dumb questions.
When I try to do a ldif2db from the command line, nothing gets added, I get an error message similar
to:
[24/Jan/2012:10:56:06
-0500]
- import userRoot: WARNING: Skipping entry
"uid=myuser,ou=Users,dc=localdomain" which has no parent,
ending at line 533175 of file "/testdump/dr-out-mod2"
I manually added an ou called Users under localdomain - but
still no joy.
Right. In console "import" is additive and "initialize" is destructive.
Import Database does not seem to have this issue with no
parent, but Initialize Database which is running now, seems
to
also.
Any tips?
Thanks,
Dan
On 01/23/2012 04:07 PM, Rich Megginson wrote:On 01/23/2012 02:05 PM, Dan H. Eicher wrote:
I’m attempting to port my ldap database from one machine to another, the machine I am attempting to port to is running a newer version of 389. The target machine is build 2011.308.2312.Have you tried Initialize database?
On the source machine I do an db2ldif - all looks good.
I go to the target machine and start fedora-console, open the directory server and choose import database.
Did the server then crash? Do you have a core file? What platform?
The first couple of thousand entries/users seem to go well, but then by looking at both my ldif source file and the contents of my reject file after one particular user I get:
Error adding object 'dn: uid=ctuser,ou=Users,dc=localdomain'. The error sent by the server was 'Cannot connect to the LDAP server'.
What version is the target machine? rpm -qi 389-ds-base
You could try to use ldif2db from the command line on the target machine.
Every new user after that fails to be added.
The import appears to complete and slapd doesn’t stop.
Any tips here on how I can resolve this?
Thanks,
Dan
--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users