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

Re: Newbie's problem on ldapadd- Operations error (1)



kaiduan xie wrote:
Jon,

Thank you very much for the help. Unfortunately, with your method I still can not get it work.

[root@kxielinux root]# ldapadd -f ldapexample.ldif
adding new entry "cn=kaiduan xie,dc=goodstart,dc=com"
ldap_add: Operations error (1)

[root@kxielinux root]# more ldapexample.ldif
dn: cn=kaiduan xie,dc=goodstart,dc=com
objectclass: top
objectclass: person
sn: xie
cn: kaiduan xie

This time the space after each colon was added.

This is my first touch on LDAP. (editing the /etc/openldap/sldap.conf, running it with service start ldap, and then ldapadd -f ldapexample.ldif).

Any further comments?

You don't share the error output, so it's hard to say. Maybe you should add your root as entries first, like:


dn: dc=com
objectclass: top
objectclass: dcObject
dc: com

dn: dc=goodstart,dc=com
objectclass: top
objectclass: dcObject
dc: goodstart

Jon