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

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 Mandrake8-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        /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=alpha-c, dc=com"
> #suffix        "o=My Organization Name, c=US"
> rootdn        "cn=Manager, dc=alpha-c, dc=com"
> #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    /var/openldap-ldbm
> # Indices to maintain
>
> 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=alpha-c,dc=com
>
> # 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=alpha-c,dc=com
> objectclass: dcObject
> objectclass: organization
> o: Groupe Alpha-c
> dc: alpha-c
>
> dn: cn=Manager,dc=alpha-c,dc=com
> 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:
> Groupe Alpha-c
> add dc:
> alpha-c
> add dn:
> cn=Manager,dc=alpha-c,dc=com
> add cn:
> Manager
> adding new entry "dc=alpha-c,dc=com"
>
> additional info: value contains invalid data
> ldap_add: Undefined attribute type
additional içnfo: attribute type undefined
> ldif_record() = 17
>
> 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.
>
>
> 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,
>
> David Feuilloy,
> Pont de roide,
> France