LinuxQuestions.org
Visit Jeremy's Blog.
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
 
LinkBack Search this Thread
Old 11-22-2005, 03:30 AM   #1
libregeek
Member
 
Registered: Oct 2005
Posts: 47

Rep: Reputation: 15
openldap: ldap_add: Naming violation (64)


Hello all,
I am new to openldap and am just getting starting with it. I have edited the slapd.conf and created a ldif file according to the documentation provided at openldap.org. But when I tried to execute ldapadd, an error occured. This is the error message i got.:
Quote:
[root@triveni ~]# ldapadd -x -D "cn=root,dc=ejyothi,dc=net" -W -f ejyothi.ldif
Enter LDAP Password:
adding new entry "dc=ejyothi,dc=net"
ldap_add: Naming violation (64)
additional info: naming attribute 'dc' is not present in entry
My configuration is as follows:
Distro: Fedora Core 4
openldap-servers-2.2.23-5
openldap-clients-2.2.23-5
openldap-devel-2.2.23-5
openldap-2.2.23-5

/etc/openldap/slapd.conf:
Quote:
database bdb
suffix "dc=ejyothi,dc=net"
rootdn "cn=root,dc=ejyothi,dc=net"
rootpw xxxxxx
The ldif file I tried is :
Quote:
dn: dc=ejyothi,dc=net
objectclass: dcObject
objectclass: organization
o: Example Company

dc: ejyothi
dn: cn=root,dc=ejyothi,dc=net
objectclass: organizationalRole
cn: root
I can't get what had gonw wrong with it. please advice.
regards
libregeek
 
Old 11-23-2005, 09:02 PM   #2
twsnnva
Member
 
Registered: Oct 2003
Location: Newport News, Va
Distribution: Debian
Posts: 246

Rep: Reputation: 30
Move "dc: ejyothi", up with "dn: dc=ejyothi,dc=net". Try this as your ldif.

Code:
dn: dc=ejyothi,dc=net
dc: ejyothi
objectclass: dcObject
objectclass: organization
o: Example Company
 
Old 11-24-2005, 12:51 AM   #3
libregeek
Member
 
Registered: Oct 2005
Posts: 47

Original Poster
Rep: Reputation: 15
It worked for me. I changed the ldif file as given below:
Quote:
dn: dc=ejyothi,dc=net
objectclass: dcObject
objectclass: organization
o: Example Company
dc: ejyothi

dn: cn=root,dc=ejyothi,dc=net
objectclass: organizationalRole
cn: root
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
URGENT: ldap_add(): Add: Object class violation error 65 sierraaltae Linux - Security 1 08-05-2005 10:41 AM
Segment violation Jozsef Linux - Newbie 1 10-08-2004 03:11 PM
segment violation Jozsef Linux - Software 1 10-06-2004 09:46 AM
mail server the naming naming convention problem kashan Linux - Newbie 0 07-16-2004 02:08 PM
Access Violation??? sh4k3y Linux - Software 3 03-25-2004 07:22 AM


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

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