Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

ldapadd error
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



Report this thread to moderator Post Follow-up to this message
Old Post
Chard
05-03-05 02:07 PM


Re: ldapadd error
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
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Jonathan Steinert
05-03-05 09:04 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

LDAP archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:47 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.