LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 01:45 AM   #1
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 690

Rep: Reputation: 34
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, 03: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



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

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

All times are GMT -5. The time now is 09:17 PM.

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
Open Source Consulting | Domain Registration