LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-29-2011, 02:45 AM   #1
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 632

Rep: Reputation: 33
Ldap syntax wrong ?


Hello,

what is wrong with the following ldif file :

Code:
dn: dc=mydomain
objectclass: dcObject 
objectclass: organization 
o: My Ldap 
dc: mydomain

dn: cn=Manager,dc=mydomain
objectclass: organizationalRole 
cn: Manager
Because I get following output :
Code:
[root@1 ~]# /usr/bin/ldapadd -x -D "cn=Manager,dc=mydomain" -W -f /etc/openldap/basic.ldif 
Enter LDAP Password: 
adding new entry "dc=mydomain"
ldapadd: Invalid syntax (21)
	additional info: objectclass: value #0 invalid per syntax
 
Old 04-29-2011, 04:58 AM   #2
omgs
Member
 
Registered: Dec 2010
Posts: 64

Rep: Reputation: 6
Are you trying to recreate the root LDAP tree? If not and it exists, then you only have to put in the file the new entries (regardless the error message is accurate or not). If so, then you should use slapcat/slapadd with ldap stopped.

You can take a look at "man ldapadd" or the relevan man pages for examples.
 
1 members found this post helpful.
  


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
LDAP Problem Invalid DN Syntax (34) steve007 Linux - Newbie 3 08-24-2009 08:53 AM
Fortran - G95 - Wrong Syntax or wrong compiler settings laucian Programming 1 03-21-2008 11:18 AM
is this redirect syntax wrong? neocontrol Linux - Server 9 03-06-2007 12:19 PM
LDAP Problem Invalid DN syntax (34) steve007 Linux - Newbie 3 10-18-2005 06:03 AM
What's wrong with this iptables syntax?? registering Linux - Security 3 06-16-2004 04:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:20 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration