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

Re: Newbie question about ldapadd & ldif file

At 03:01 PM 3/4/00 +0900, Youngho Cho wrote:
>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"
>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 <
>then " ldapadd: missing value on line 3 (attr is ou: Groups)" error

This implies that the input is being interpeted as an LDAP mod
record (alternative format), not an LDIF record... likely due to
new line placement.  See ldapadd(1) for details.