[Date Prev][Date Next] [Chronological] [Thread] [Top]

trouble reading in ldif file with ldapadd



Title: trouble reading in ldif file with ldapadd

hi folks,

just installed OpenLDAP 2.0.7 on RH 6.0.  I'm having a little trouble loading in an ldif file using ldapadd.  here's a trace of what happens when I try:

[/usr/local/openldap/bin]$ ./ldapadd -x -D "cn=Manager,dc=epicentric,dc=com" -W -f tutorial.ldif
Enter LDAP Password:
"dapadd: invalid format (line 60) entry: "o=JNDITutorial
ldif_record() = 89
[/usr/local/openldap/bin]$

the file I'm trying to load contains some sample data for use with Sun's JNDI tutorial.  I've copied the first few lines of the file into this message; the whole file is too long to send to this list, but I can mail it to anyone that's interested.  I'm pretty new to ldap so I don't really understand what the problem is.  I'd appreciate any suggestions for how I can get this to work.

thanks,

e

---- first lines from tutorial.ldif - begin ----
dn: o=JNDITutorial
o: JNDITutorial
objectclass: top
objectclass: organization

dn: ou=Groups, o=JNDITutorial
ou: Groups
objectclass: top
objectclass: organizationalunit

dn: cn=Directory Administrators, ou=Groups, o=JNDITutorial
cn: Directory Administrators
objectclass: top
objectclass: groupofuniquenames
ou: Groups
uniquemember: cn=Rosanna Lee, ou=People, o=JNDITutorial
uniquemember: cn=Scott Seligman, ou=People, o=JNDITutorial
uniquemember: cn=Jon Ruiz, ou=People, o=JNDITutorial
uniquemember: cn=Vinnie Ryan, ou=People, o=JNDITutorial
...
---- first lines from tutorial.ldif - end ----


----- BEGIN GEEK CODE BLOCK -----
Version: 3.12
GCS d- s: a- C+++ UL++/US++ P++ L++ E- W++(+++) N+ o? k? w(--) O? M(+)
V? PS(++) PE+(-) Y+ PGP t(+) 5(+) X R(++) tv-- b+(++) DI++ D+ G e++ h--- r++ y?
------ END GEEK CODE BLOCK ------