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

new installation cannot do ldapadd



Hi,

I just compiled the current release version on my Red Hat Linux  6.0 box. I
started the slapd daemon and tried the ldapadd commend as suggested in the
Quick Starting Guide.
I always git the message:

[root@echi-pc2 slapd]# /ext/work/ldap/clients/tools/ldapadd -D "cn=Manager,
dc=eric, dc=com" -W < m2.ldif 
Enter LDAP Password: 
ldapadd: no attributes to change or add (entry dc=eric, dc=com dc: eric o:
My Company objectclass: organization objectclass: dcObject)

I tried the ldapsearch as in the Qucik Starting Guide and it doesn't give
me anything either.

I've listed the conf and ldif files I used below. Could someone point me
where could be the problem? Thanks.

Eric.

----------------------------------------------------------------------------
-------------------------------------------------
The file m2.ldif is here
----------------------------------------------------------------------------
------------------------------------
<this is m2.ldif>
dn: dc=eric, dc=com 
dc: eric 
o: My Company 
objectclass: organization 
objectclass: dcObject
dn: cn=Manager, dc=eric, dc=com 
cn: Manager 
sn: Manager 
objectclass: person

And here is my slapd.conf that's used to start the daemon:
----------------------------------------------------------------------------
---------------------------
# 
# See slapd.conf(5) for details on configuration options. 
# This file should NOT be world readable. 
# 
# include %SYSCONFDIR%/slapd.at.conf 
# include %SYSCONFDIR%/slapd.oc.conf 
# schemacheck off 
#referral ldap://root.openldap.org/
# pidfile %LOCALSTATEDIR%/slapd.pid 
# argsfile %LOCALSTATEDIR%/slapd.args
include /ext/work/ldap/servers/slapd/slapd.at.conf 
include /ext/work/ldap/servers/slapd/slapd.oc.conf 
schemacheck off 
#referral ldap://root.openldap.org/
pidfile /ext/work/ldap/servers/slapd/slapd.pid 
argsfile /ext/work/ldap/servers/slapd/slapd.args
####################################################################### 
# ldbm database definitions 
#######################################################################
database ldbm 
suffix "dc=eric, dc=com" 
rootdn "cn=Manager, dc=eric, dc=com" 
rootpw secreta 
# cleartext passwords, especially for the rootdn, should 
# be avoid. See slapd.conf(5) for details. 
directory /usr/tmp