LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 07-21-2006, 04:23 AM   #1
iamwilliam
Member
 
Registered: Apr 2006
Location: Nairobi
Distribution: CentOS
Posts: 78

Rep: Reputation: 21
Trouble adding ldif file


Hi Guys,
I am trying to add entries to ldap directory. I use vi to create the ldif files. However, I get an error. I think it has something to do with whitespace characters in
the ldif file. I have removed them (I think!). If not how do you remove them using vi?

the ldif entry

Code:
dn:ou=DSA,dc=org
objectClass:top
objectClass:organaizationalUnit
ou:DSA
description:security account for LDAP clients


here is the error message after the command
slapadd -d 2 -l smbldap.ldif

Code:
bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December  3, 2003)
bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December  3, 2003)
bdb_db_init: Initializing BDB database
str2entry: invalid value for attribute objectClass (syntax 1.3.6.1.4.1.1466.115.121.1.38)
slapadd: could not parse entry (line=6)
 
Old 07-21-2006, 08:24 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,907

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Quote:
objectClassrganaizationalUnit
Are you sure this is not a typo? The correct should be:
Code:
objectclass: organizationalUnit
Also leave a space after each entry (i.e. dn: ou=DSA,dc=org)

Last edited by bathory; 07-21-2006 at 08:26 AM.
 
Old 07-21-2006, 09:41 AM   #3
iamwilliam
Member
 
Registered: Apr 2006
Location: Nairobi
Distribution: CentOS
Posts: 78

Original Poster
Rep: Reputation: 21
thanks alot

it works. how silly of me. thanx
 
  


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
Writing LDIF kaon Linux - Software 2 11-16-2005 09:59 AM
openldap ldif file problem iluvatar Linux - Software 3 07-31-2005 06:57 PM
Problem importing LDIF file into OpenLDAP database cboxall Linux - Newbie 1 06-17-2005 09:51 AM
admin.ldif for ldap berrance Linux - Networking 1 03-06-2005 05:32 AM
New to Open LDAP. Trying to import an LDIF file. davealex Linux - Networking 1 10-16-2003 03:19 PM


All times are GMT -5. The time now is 07:47 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