At the prompt, type the commands below. It will put ldapadd in a mode that accepts data via standard in via the terminal, so you just type and press return. At the end, press return twice, and it should try to add your entry, and then you can press CTRL+C if it does not drop you back to a prompt. Adjust to wherever your openldap based ldapadd binary is. Please be sure you followed the quickstart guide on the OpenLDAP website and setup your DC in openldap too.
$> /usr/local/openldap/bin/ldapadd -x -D cn=root,dc=caplan,dc=org -H ldap://ldap.server:port -W
<press return twice>
Ok, I found the right ldapadd to use, but now i'm getting
Invalid syntax (21)
additional info: objectClass: value#0 invalid per syntax
|Quanah Gibson-Mount <email@example.com> |
01/29/2008 04:05 PM
|Vinh CTR Hoang/ACT/CNTR/FAA@FAA |
|Re: Invalid syntax on ldapadd|
--On Tuesday, January 29, 2008 4:01 PM -0500 Vinh.CTR.Hoang@faa.gov wrote:
> Oh i was going to ask about that. the x option is illegal for some
> reason. I might of been using the solaris ldapadd. Is there a way to
> tell which is which? I install openldap as a package so I don't really
> know where the OpenLDAP ldapadd went.
Keep replies on the list if you want further help.
type "which ldapadd" to see where the ldapadd you are using is located. If
you don't know where the OpenLDAP installation put things, I suggest you
figure that out first.
Principal Software Engineer
Zimbra :: the leader in open source messaging and collaboration
Chris G. Sellers | NITLE Technology