[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
newbie problem w/ ldappadd
hi all,
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:
---------------------------------------------------
database ldbm
suffix "dc=mail,dc=hollybridge,dc=not"
rootdn "o=qmailusers,dc=mail,dc=hollybridge,dc=not"
include /usr/local/openldap/etc/openldap/slapd.oc.conf
include /usr/local/openldap/etc/openldap/slapd.at.conf
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: o=qmailusers,dc=mail,dc=hollybridge,dc=not
objectClass: top
objectClass: organization
objectClass: dcobject
dc: mail
#sn: hollybridge mail users
#cn: qmailusers
o: qmailusers
dn: cn=yjl,o=qmailusers,dc=mail,dc=hollybridge,dc=not
objectClass: top
objectClass: organization
objectClass: person
o: qmailusers
cn: yjl
sn: yin
---------------------------------------------------
and i'm trying to add it like so:
[root@mail bin]# ldapadd -x -D "cn=qmailusers,dc=mail,dc=hollybridge,dc=not" -w secret -f example.ldif -v
ldap_initialize( <DEFAULT> )
add objectClass:
top
organization
dcobject
add dc:
mail
add o:
qmailusers
adding new entry "o=qmailusers,dc=mail,dc=hollybridge,dc=not "
ldap_add: No such object
ldif_record() = 32
any ideas?