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

use slapadd



I am using Openldap-2.0.11. When i try to add an new entry to my ldap
server using slapadd command,  an error was prompt to me :
   slapadd: dn="c=SG" (line=5):missing required attribute

The following is my slapd.conf file

include  /usr/local/etc/openldap/schema/core.schema
include  /usr/local/etc/openldap/schema/cosine.schema

schemacheck on

# where the pidfile and argsfile located
pidfile  /usr/local/var/slapd.pid
argsfile  /usr/local/var/slapd.args

#######################################################################
# ldbm database definitions
#######################################################################

database ldbm
# base of searching
suffix "o=Transparity,c=SG"
suffix "c=SG"
suffix ""
# place of database located
directory /usr/local/db/ldapdb
# root id and password
rootdn "cn=Manager,o=Transparity,c=SG"
rootpw secret

# index of searching
index  objectclass  eq

My ldif file is as below :

dn: c=SG
objectclass: top
objectclass: country
description: Singapore


Can anyone tell me that's wrong with my slapd.conf file or ldif file ?
Thanks !

Regards,
Siok Peng