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

Re: Error while creating entries in OpenLDAP

Hi Pierangelo,

        Thanks for your reply.
            for error #1) I did a grep to check if 'aliasObject' is defined in any of my schema files. But it seems its not there. What can I do to get the schema definition for 'aliasObject'?

            and for error #2,  I didn't quite well understand why
                dn : cn=Jonathan Adams (with description), ou=Europe,ou=Search, o=IMC, c=US is not working but at the same time dn : cn=Jonathan Adams, ou=Europe,ou=Search, o=IMC, c=US   is working??

Thank you very much,

Pierangelo Masarati wrote:

        I've recently installed  OpenLDAP 2.2.17 with  BerkeleyDB 4.2.52
on Red Hat Enterprise Linux AS release 3 machine.

        When I tried to populate the directory server with the LDIF
files I have, I got following errors for few entries. Others worked fine.

        Error #1)

                dn: cn=Canada, ou=Search, o=IMC, c=US
                aliasedobjectname: ou=Americas, ou=Search, o=IMC, c=US
                objectclass: top
                objectclass: alias
                objectclass: aliasObject

                Error Message Recieved:
                        adding new entry "cn=Canada, ou=Search, o=IMC,
                        ldap_add: Invalid syntax (21)
                            additional info: objectclass: value #2
invalid per syntax

grep -i aliasobject servers/slapd/schema/*.schema
returns nothing.

            Error #2)

                dn: cn=Jonathan Adams (with description), ou=Europe,
ou=Search, o=IMC, c=US
                cn: Jonathan Adams
                sn: Adams
                givenname: Jonathan
                objectclass: top
                objectclass: person
                objectclass: organizationalPerson
                objectclass: inetOrgPerson
                telephonenumber: +1 408 720 0000
                mail: Jonathan.Adams@dirconnect2.org
                userpassword: Jonathan0000
                title: President
                employeenumber: 2200000
                description: this entry has one

                Error Message Recieved :
                        adding new entry "cn=Jonathan Adams (with
description), ou=Europe, ou=Search, o=IMC, c=US
                        ldap_add: Naming violation (64)
                            additional info: value of naming attribute
'cn' is not present in entry

                Note : The same entry worked for the dn: cn=Jonathan
Adams, ou=Europe, ou=Search, o=IMC, c=US (Note that the string within
bracket is not present here)

                Can anyone help?

See http://www.openldap.org/faq/data/cache/1006.html

Hope it helps.



"We believe in neat stuff, and Open Source is neat"