[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: ldapadd
I'm sorry i typed it wrong when I send the email. I
had put in the -D option.
The ldif file goes something like:
dn: o=Myorg
objectClass: top
objectClass: organization
o: Myorg
description: My org
dn: cn=LdapAdmin,o=Myorg
objectClass: organizationalRole
cn: LdapAdmin
description: LDAP Directory Administrator
dn: cn=First Last,o=Myorg
cn: First Last
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
mail: First.Last@somemail.net
givenName: First
sn: Last
userPassword: pass
If I delete the first entry from the ldif it will
import the next one.
Thanks for replying so quickly.
--- Ryan <niespam@yahoo.com> wrote:
> Jubal,
> It looks like you forgot the -D option.
>
> ldapadd -x -h 127.0.0.1 -p 389 -D
> "cn=LdapAdmin,o=Myorg"
>
> Should work, if not, you need to include more
> information, such as the contents of the ldif file.
>
> Ryan
>
>
> --- Jubal Molina <agro_jubal@yahoo.com> wrote:
> > Hi:
> > I'am trying to use add an Ldif file using
> ldapadd.
> > The problem I'm having is that it only imports the
> > first entry.
> > I have search google groups and the archives
> looking
> > for something like ldapadd one entry and have been
> > unable to find any help.
> > I'm using openldap 2.0.21-0.7.1.i386. The command
> > I'm
> > using is
> > ldapadd -x -h 127.0.0.1 -p 389 "cn=LdapAdmin,
> > o=Myorg"
> > -w mypass -f export.ldif.
> > Is there anything on the slapd.conf that has to
> do
> > with this?
> > I appreciate any help on this issue. I appologize
> > if
> > I post it to the wrong email
> > Jubal
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! - Official partner of 2002 FIFA World Cup
> > http://fifaworldcup.yahoo.com
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com