LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Trouble adding ldif file (http://www.linuxquestions.org/questions/linux-networking-3/trouble-adding-ldif-file-466171/)

iamwilliam 07-21-2006 04:23 AM

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)


bathory 07-21-2006 08:24 AM

Quote:

objectClass:organaizationalUnit
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)

iamwilliam 07-21-2006 09:41 AM

thanks alot
 
it works. how silly of me. thanx


All times are GMT -5. The time now is 04:20 PM.