For Programmers: Free Programming Magazines  


Home > Archive > LDAP > May 2005 > ldapadd error









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author ldapadd error
Chard

2005-05-03, 9:07 am

Hi All,
I have seen this error on numerous forums, and everyone seems to say to
add a newline before the dn line, but I have a new line there...

Anyway, the error is this:

[root@linux-server openldap]# ldapadd -x -D
"cn=Manager,dc=chard,dc=id,dc=au" \
-W -f /etc/openldap/chard.id.au.ldif

Enter LDAP Password:
adding new entry "dc=chard, dc=id, dc=au"
ldap_add: Undefined attribute type (17)
additional info: dn: attribute type undefined

======================================

My chard.id.au.ldif file is as follows:

dn: dc=chard, dc=id, dc=au
dc: chard
description: Root LDAP entry for chard.id.au
objectClass: dcObject
# objectClass: organizationalUnit
ou: rootobject
o: chard

dn: ou=People, dc=chard, dc=id, dc=au
ou: People
description: All people in organisation
objectClass: organizationalUnit

=====================================
and the slapd.conf is:

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/openldap.schema
allow bind_v2
pidfile /var/run/slapd.pid
argsfile /var/run/slapd.args
database ldbm
suffix "dc=chard,dc=id,dc=au"
rootdn "cn=Manager,dc=chard,dc=id,dc=au"
rootpw {SSHA}cMcdYQopsLyAyT8pHvZllklkkGbXLwyH
directory /var/lib/ldap/chard.id.au
index objectClass eq,pres
index ou,cn,mail,surname,givenname eq,pres,sub
index uidNumber,gidNumber,loginShell eq,pres
index uid,memberUid eq,pres,sub
index nisMapName,nisMapEntry eq,pres,sub

=================================

The system is running Fedora Core 3 and...

openldap-servers-2.2.13-2
compat-openldap-2.1.30-2
openldap-servers-sql-2.2.13-2
mod_authz_ldap-0.26-2
openldap-devel-2.2.13-2
php-ldap-4.3.11-2.5
nss_ldap-220-3
openldap-clients-2.2.13-2
openldap-2.2.13-2
python-ldap-2.0.1-2

If you need any other info, let me know,

Thanks in advance,
Chard


Jonathan Steinert

2005-05-03, 4:04 pm

I don't know the answer to your problem, but I must suggest that you ask
on the openldap help channels. According to what you listed you aren't
even using perl, and this is the perl-ldap list.

http://www.openldap.org/lists/

--Jonathan Steinert

Chard wrote:

> Hi All,
> I have seen this error on numerous forums, and everyone seems to say
> to add a newline before the dn line, but I have a new line there...
>
> Anyway, the error is this:
>
> [root@linux-server openldap]# ldapadd -x -D
> "cn=Manager,dc=chard,dc=id,dc=au" \
> -W -f /etc/openldap/chard.id.au.ldif
>
> Enter LDAP Password:
> adding new entry "dc=chard, dc=id, dc=au"
> ldap_add: Undefined attribute type (17)
> additional info: dn: attribute type undefined
>
> ======================================
>
> My chard.id.au.ldif file is as follows:
>
> dn: dc=chard, dc=id, dc=au
> dc: chard
> description: Root LDAP entry for chard.id.au
> objectClass: dcObject
> # objectClass: organizationalUnit
> ou: rootobject
> o: chard
>
> dn: ou=People, dc=chard, dc=id, dc=au
> ou: People
> description: All people in organisation
> objectClass: organizationalUnit
>
> =====================================
> and the slapd.conf is:
>
> 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/openldap.schema
> allow bind_v2
> pidfile /var/run/slapd.pid
> argsfile /var/run/slapd.args
> database ldbm
> suffix "dc=chard,dc=id,dc=au"
> rootdn "cn=Manager,dc=chard,dc=id,dc=au"
> rootpw {SSHA}cMcdYQopsLyAyT8pHvZllklkkGbXLwyH
> directory /var/lib/ldap/chard.id.au
> index objectClass eq,pres
> index ou,cn,mail,surname,givenname eq,pres,sub
> index uidNumber,gidNumber,loginShell eq,pres
> index uid,memberUid eq,pres,sub
> index nisMapName,nisMapEntry eq,pres,sub
>
> =================================
>
> The system is running Fedora Core 3 and...
>
> openldap-servers-2.2.13-2
> compat-openldap-2.1.30-2
> openldap-servers-sql-2.2.13-2
> mod_authz_ldap-0.26-2
> openldap-devel-2.2.13-2
> php-ldap-4.3.11-2.5
> nss_ldap-220-3
> openldap-clients-2.2.13-2
> openldap-2.2.13-2
> python-ldap-2.0.1-2
>
> If you need any other info, let me know,
>
> Thanks in advance,
> Chard
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com