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

newbie problem w/ ldappadd



 hi-

 i'm attempting to learn about opeldap, in order to setup a qmail-ldap
 mailserver.  i have slapd up and running, and i'm trying to add entries w/
 ldapadd.  relevant postion of my slapd.conf:

 ---------------------------------------------------
  chemacheck     on
 database        ldbm
 suffix          "dc=mail,dc=hollybridge,dc=not"
 rootdn          "cn=Manager,dc=mail,dc=hollybridge,dc=not"

include /usr/local/openldap/etc/openldap/schema/core.schema
include /usr/local/openldap/etc/openldap/schema/corba.schema
include /usr/local/openldap/etc/openldap/schema/cosine.schema
include /usr/local/openldap/etc/openldap/schema/inetorgperson.schema
include /usr/local/openldap/etc/openldap/schema/java.schema
include /usr/local/openldap/etc/openldap/schema/krb5-kdc.schema
include /usr/local/openldap/etc/openldap/schema/misc.schema
include /usr/local/openldap/etc/openldap/schema/nadf.schema
include /usr/local/openldap/etc/openldap/schema/nis.schema
include /usr/local/openldap/etc/openldap/schema/openldap.schema

rootpw          secret
index   objectClass     eq


 ---------------------------------------------------

 i've got the following ldif:

 ---------------------------------------------------
dn: cn=accounts,dc=mail,dc=hollybridge,dc=not
objectClass: organizationalPerson
sn: hollybridge
cn: accounts

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

 ---------------------------------------------------

 and i'm trying to add it like so:
[root@mail bin]# ldapadd -D "dc=mail,dc=hollybridge,dc=not" -f example.ldif
adding new entry "cn=accounts,dc=mail,dc=hollybridge,dc=not "
ldap_add: No such object

ldif_record() = 32



 any ideas?

                  qqj