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

Re: newbie problem w/ ldappadd



>
> dn:o=qmailusers,dc=mail,dc=hollybridge,dc=not
> objectClass: top
> sn: hollybridge mail users
> cn: qmailusers
>
> dn:uid=yjl,o=qmailusers,dc=mail,dc=hollybridge,dc=not
> objectClass: person
> cn: yin jiangliang
> sn: yin
> uid:yjl
>
> and then
>  [root@mail bin]# ldapadd -x -D "cn=qmailusers,dc=mail,dc=hollybridge,dc=not", -w secret -f example.ldif
> ldap_bind: Invalid DN syntax
>         additional info: invalid DN
>
> It seems no use.
>

This:

>
> >dn: o=qmailusers,dc=mail,dc=hollybridge,dc=not
> >objectClass: top
> >
> >dn: uid=yjl,o=qmailusers,dc=mail,dc=hollybridge,dc=not
> >objectClass: person
> >cn: yin jiangliang
> >sn: yin
> >uid:yjl
>

not this:

dn:o=qmailusers,dc=mail,dc=hollybridge,dc=not
objectClass: top
sn: hollybridge mail users
cn: qmailusers

dn:uid=yjl,o=qmailusers,dc=mail,dc=hollybridge,dc=not
objectClass: person
cn: yin jiangliang
sn: yin
uid:yjl

And then:

ldapadd -x -D "o=qmailusers,dc=mail,dc=hollybridge,dc=not" -w secret -f example.ldif

and You change also in your slapd.conf the ROOTDN !!
(maybe you forgot it ? )

(NB: why coma:  [root@mail bin]# ldapadd -x -D "cn=qmailusers,dc=mail,dc=hollybridge,dc=not", -w secret -f
example.ldif  )

^