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

Re: 2.0.7: ldap_add: Undefined attribute type



One thing I notice below is that the ldapadd output says:

> add dc:
> mobilix.dk

However, the LDIF you included says:

> dc: mobilix

So maybe you have a typo somewhere and your root dc=mobilix,dc=dk entry is
not getting created? In your typescript, the error seems to get sent when it
attempts to lookup dc=mobilix,dc=dk in the database:

> conn=0 op=1 ADD dn="DC=MOBILIX,DC=DK"
> dn2entry_r: dn: "DC=MOBILIX,DC=DK"
> => dn2id( "DC=MOBILIX,DC=DK" )
> => ldbm_cache_open( "/usr/local/openldap/var/openldap-ldbm/dn2id.dbb", 7, 600
> )
> <= ldbm_cache_open (cache 0)
> <= dn2id NOID
> send_ldap_result: conn=0 op=1 p=3
> send_ldap_result: 21::value contains invalid data

--David


> From: Ole Michaelsen <olmic@mobilix.dk>
> Date: Fri, 29 Dec 2000 13:29:29 +0100
> To: openldap-software@OpenLDAP.org
> Subject: 2.0.7: ldap_add: Undefined attribute type
> 
> Hi people;
> 
> I'm following the Quick Start Guide (QSG) on
> 'http://www.openldap.org/doc/admin/quickstart.html', and have build
> OpenLDAP 2.0.7 on my Solaris 7-box, performed the tests (make test) with
> no errors, and installed under '/usr/local/openldap/'. My slapd.conf
> looks like suggested in the QSG:
> 
> # $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.4 2000/08/26 17:06:18
> kurt Exp $
> #
> # See slapd.conf(5) for details on configuration options.
> # This file should NOT be world readable.
> #
> include        /usr/local/openldap/etc/openldap/schema/core.schema
> 
> # Define global ACLs to disable default read access.
> 
> # Do not enable referrals until AFTER you have a working directory
> # service AND an understanding of referrals.
> #referral    ldap://root.openldap.org
> 
> pidfile        /usr/local/openldap/var/slapd.pid
> argsfile    /usr/local/openldap/var/slapd.args
> 
> # Load dynamic backend modules:
> # modulepath    /usr/local/openldap/libexec/openldap
> # moduleload    back_ldap.la
> # moduleload    back_ldbm.la
> # moduleload    back_passwd.la
> # moduleload    back_shell.la
> 
> #######################################################################
> # ldbm database definitions
> #######################################################################
> 
> database    ldbm
> suffix        "dc=mobilix, dc=dk"
> #suffix        "o=My Organization Name, c=US"
> rootdn        "cn=Manager, dc=mobilix, dc=dk"
> #rootdn        "cn=Manager, o=My Organization Name, c=US"
> # Cleartext passwords, especially for the rootdn, should
> # be avoid.  See slappasswd(8) and slapd.conf(5) for details.
> # Use of strong authentication encouraged.
> rootpw        secret
> # The database directory MUST exist prior to running slapd AND
> # should only be accessable by the slapd/tools. Mode 700 recommended.
> directory    /usr/local/openldap/var/openldap-ldbm
> # Indices to maintain
> index    objectClass    eq
> 
> When I run (#9 in the QSG)
> 
> 'ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts'
> 
> the output is
> 
> version: 2
> 
> #
> # filter: (objectclass=*)
> # requesting: namingContexts
> #
> 
> #
> dn:
> namingContexts: dc=mobilix,dc=dk
> 
> # search result
> search: 2
> result: 0 Success
> 
> # numResponses: 2
> # numEntries: 1
> 
> which looks correct, I guess. When I try to add initial entries in the
> directory, things go bad, however. I create an LDIF file that contains
> 
> dn: dc=mobilix,dc=dk
> objectclass: dcObject
> objectclass: organization
> o: mobilix
> dc: mobilix
> 
> dn: cn=Manager,dc=mobilix,dc=dk
> objectclass: organizationalRole
> cn: Manager
> 
> which is how I think it should be, according to the QSG. When I run
> 
> 'ldapadd -v -x -D "cn=Manager,dc=mobilix,dc=dk" -W -f test.ldif' I get
> this output:
> 
> ldap_initialize( <DEFAULT> )
> Enter LDAP Password:
> add objectclass:
> dcObject
> organization
> organizationalRole
> add o:
> mobilix
> add dc:
> mobilix.dk
> add dn:
> cn=Manager,dc=mobilix,dc=dk
> add cn:
> Manager
> adding new entry "dc=mobilix,dc=dk"
> ldap_add: Invalid syntax
> additional info: value contains invalid data
> 
> ldif_record() = 21
> 
> I have no idea why it will not work (but then again, I am very new in
> OpenLDAP), but I really belive I do it the way the QSG describes. I have
> tried to include other schemes, to add other indexes, and to modify
> the test.ldif file slightly - nothing works.
> 
> Running slapd with '-d -1' gives the typescript attached to this letter.
> Notice the 
> 
> ldap_read: want=1 error=Resource temporarily unavailable
> ber_get_next on fd 7 failed errno=11 (Resource temporarily unavailable)
> do_add
> ber_scanf fmt ({a) ber:
> 
> lines. That probably means something...
> 
> Please tell me where to find the solution, or what to try to find out what's
> wrong. If you need additional info in order to help me, I'll be happy
> to provide this.
> 
> Thanks a lot,
> 
> Ole Michaelsen,
> Copenhagen,
> Denmark
>