LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-24-2009, 08:08 AM   #1
aspenbr
Member
 
Registered: Aug 2006
Posts: 36

Rep: Reputation: 15
Smile Problem - ldapadd invalid syntex (21)


Hello

I am newbie in use OpenLdap , I have simple problem I canīt add structure of tree directory, the file org.lidf show my structure

dn: dc=labcom,dc=factory
objectClass: top
objectClass: dcObject
#objectClass: organization
dc: labcom
o : Linuxtech

When I type this command

ldapadd -f /etc/openldap/lidfs/org.ldif -x -D "cn=adm,dc=labcom,dc=factory" -W

Show this message error

Enter LDAP Password:
adding new entry "dc=labcom,dc=factory "
ldapadd: Invalid syntax (21)

Why this message error ?

I have include the follow schemas

include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema

The process slapd have been started by user root, so havenīt problem of permission

That is ...

Thanks
 
Old 07-24-2009, 11:35 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,910

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Without any additional info, I guess you have to completely remove the commented line (#objectClass: organization), even though "objectClass: organization" is a typical objectClass used by many applications.

Last edited by bathory; 07-25-2009 at 07:42 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
command syntex lincoln.runwal Linux - Newbie 3 12-02-2008 06:27 AM
Syslog syntex tommy_cs Linux - Server 5 02-05-2008 06:35 AM
ldapadd returning ldap_bind: Invalid credentials (49) unixtech Linux - Server 7 06-01-2007 12:37 PM
syntex error sachin1361 Linux - Enterprise 2 03-12-2007 06:11 AM
ldapadd problem !!! karlet Linux - General 0 04-01-2003 03:35 AM


All times are GMT -5. The time now is 03:30 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration