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

Re: My First DIT Entry



On Mon, 02 Nov 1998 00:20:30 +0800, CN Liu wrote:

>linux:/usr/local/etc/ldap# cat test.entry
>dn: cn=CN Liu, ou=IT, o=Sinyih, c=TW
>objectClass: person
>cn: CN Liu
>sn: Liu
>linux:/usr/local/etc/ldap# ldapadd -f test.entry -w password -v
>add objectClass:
>        person
>add cn:
>        CN Liu
>add sn:
>        Liu
>adding new entry cn=CN Liu, ou=IT, o=Sinyih, c=TW
>ldap_add: No such object
>
>linux:/usr/local/etc/ldap#
>

    Oops. I apologize for all the questions when you already provided most of the 
information. I missed them earlier.

    The "ldapadd" command needs:
- a "-D" option as well as the password. (Is your password really "password"?)
  It is the one called "rootdn" in slapd.conf.
- a "-b" option to specify the base DN, which is the one you defined in
  slapd.conf called "suffix".


Jim Moe