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

newbie problem w/ ldappadd


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=thesquare,dc=net"
rootdn          "cn=Manager,dc=thesquare,dc=net"

include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/cosine.schema
include /usr/local/etc/openldap/schema/inetorgperson.schema
include /usr/local/etc/openldap/schema/nis.schema
include /usr/local/etc/openldap/schema/qmail.schema


i've got the following ldif:

dn: ou=accounts, dc=thesquare, dc=net
objectclass: organizationalUnit
dn: uid=dkelley, ou=accounts, dc=thesquare, dc=net
cn: dan kelley
sn: kelley
objectClass: top
objectClass: person
objectClass: inetOrgPerson
objectClass: qmailUser
mail: dkelley@thesquare.net
mailAlternateAddress: dan.kelley@thesquare.net
mailHost: mx1.thesquare.net
mailMessageStore: /var/qmail/maildirs/dkelley
uid: dkelley
userPassword: {MD5}098f6bcd4621d373cade4e832627b4f6

and i'm trying to add it like so:

%ldapadd -x -D "cn=Manager,dc=thesquare,dc=net" -W -f test.ldif

when i do so, i get the following error:

adding new entry "ou=accounts, dc=thesquare, dc=net"
ldap_add: Object class violation
        additional info: missing required attribute
ldif_record() = 65

any ideas?