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

how to customise database fields



hi,

anyone can help on the following, thanks....

slapd.conf file

include         /usr/local/etc/openldap/schema/core.schema
pidfile         /usr/local/var/slapd.pid
argsfile        /usr/local/var/slapd.args

database        ldbm
suffix          "dc=tstest, dc=aspiren, dc=com"
rootdn          "cn=Manager, dc=tstest, dc=aspiren, dc=com"
rootpw          secret
directory       /usr/local/var/openldap-ldbm
access to * by * read
index   objectClass     eq


test01.ldif file

dn: cn=Ali, dc=tstest, dc=aspiren, dc=com
cn: Ali Bin Ahmand
cn: Ali
sn: Ahamd
mail: ali@yahoo.com
telephoneNumber: 5896245
objectClass: person


when I tried to add an entry with

ldapadd -x -D "cn=Manager, dc=tstest, dc=aspiren, dc=com" -W -f
test01.ldif


It will show me the following...

adding new entry "cn=Ali dc=tstest, dc=aspiren, dc=com"
ldap_add: Object class violation
        additional info: attribute not allowed

ldif_record() = 65


Please help, and thanks in advance....

rdgs,
gary