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

Re: Newbie question: ldapadd and invalid syntax

My best guess... uniquemember needs to be a DN, so they need the cn= like:

> uniquemember: cn=Niels Bohr, ou=People, o=JNDITutorial
> uniquemember: cn=Spuds Mackenzie, ou=People, o=JNDITutorial

As for LDIF syntax, look at 'man ldif' or use the man page viewer on

> From: Karen Hoofnagle <khoofnagle@microstate.com>
> Date: Fri, 11 May 2001 11:39:16 -0400 (EDT)
> To: OpenLDAP Software List <openldap-software@OpenLDAP.org>
> Subject: Newbie question: ldapadd and invalid syntax
> Can anyone tell me why I might be receiving an "invalid syntax" error when
> attempting to import this item using ldapadd:
> ------------------------------------------------------
> dn: cn=Accounting Managers,ou=groups,o=JNDITutorial
> objectclass: top
> objectclass: groupOfUniqueNames
> cn: Accounting Managers
> ou: Groups
> uniquemember: Niels Bohr, ou=People, o=JNDITutorial
> uniquemember: Spuds Mackenzie, ou=People, o=JNDITutorial
> description: People who can manage accounting entries
> -----------------------------------------------------------
> The first 2 records in the ldif file I'm importing come in just fine, but
> I am at a loss to know what's wrong with this one. (The ldif file comes
> from the JNDI API Tutorial and Reference CD. For what it's worth, I HAVE run
> the CreateJavaSchema and CreateCorbaSchema programs that come on the same
> disk.)
> Also, please tell me where I would find proper LDIF syntax defined. Is
> it only in one of the many RFCs?
> Thanks.
> Karen
> Karen Hoofnagle
> Research Programmer
> The Microstate Corporation