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

Re: problems with ldapadd



On Thursday 10 January 2002 12:49 pm, Kilaru Sambaiah wrote:
 Dear All,
     I am a newbie to ldap. I am running ldap server version 2.0.11-13 on
 redhat 7.1 server. (default rpm with redhat).
 My slapd.conf file has following entries

 include		/etc/openldap/schema/core.schema
 include		/etc/openldap/schema/cosine.schema
 include		/etc/openldap/schema/inetorgperson.schema
 include		/etc/openldap/schema/nis.schema
 include		/etc/openldap/schema/redhat/rfc822-MailMember.schema
 include		/etc/openldap/schema/redhat/autofs.schema
 include		/etc/openldap/schema/redhat/kerberosobject.schema
 database	ldbm
 suffix		"dc=vetri,dc=com"
 directory	/var/lib/ldap
 rootdn		"cn=Manager,dc=vetri,dc=com"
 rootpw		secret
 index	objectClass,uid,uidNumber,gidNumber,memberUid	eq
 index	cn,mail,surname,givenname			eq,subinitial

 I am taking example.ldif file

 dn: dc=vetri,dc=com
     objectclass: dcObject
     objectclass: organization
     o: Example Company
     dc: example
     dn: cn=Manager,dc=vetri,dc=com
     objectclass: organizationalRole
     cn: Manager

 when I run the following command it gives error like
 ldapadd -x -D "cn=Manager,dc=vetri,dc=com"  -f example.ldif -w secret

 ldapadd: no attributes to change or add (entry="dc=vetri,dc=com
 objectclass: dcObject   objectclass: organization   o: Example Company  
 dc: example   dn: cn=Manager,dc=vetri,dc=com   objectclass:
 organizationalRole cn: Manager")
 ldif_record() = 89

 My ldap server is running. I am able to telnet to that port. Any pointers?

 regards,
 Sambaiah Kilaru