[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Newbie question about ldapadd & ldif file
Hi,
I am trying to insert a data to ldap.
if I am using following command in a console,
$ ldapadd -D "cn=Manager, o=JNDITutorial" -w secret <<EOR
> dn: ou=Groups, o=JNDITutorial
> ou: Groups
> objectclass: top
> objectclass: organizationalunit
> EOR
then the data input with " adding new entry ou=Groups, o=JNDITutorial"
message.
and I can see the entity using ldapsearch command.
But if I am using the following command with myldif.ldif file
$ ldifadd -D "cn=Manager, o=JNDITutorial" -w secret <
/home/mydir/myldif.ldif
then " ldapadd: missing value on line 3 (attr is ou: Groups)" error
happened.
The myldif.ldif file is
dn: ou=Groups, o=JNDITutorial
ou: Groups
objectclass: top
objectclass: organizationalunit
I am not sure what I am wrong ??
I need your help.
Thanks in advance.
youngho