| | |
ldif file format in openldap
![]() |
•
•
Join Date: Apr 2009
Posts: 8
Reputation:
Solved Threads: 0
Hi This is my ldif file:
dn: cn=Manager,dc=test,dc=com
dc: test
description: This is my Wonderful company as much text as you want to put in this line upto 32 K
objectClass: top
objectClass: dcObject
objectClass: person
objectClass: organization
objectClass: inetOrgPerson
#First Level Hierarchy
dn: cn=Manager,ou=people,dc=test,dc=com
dc: test
ou: people
description: All people in organisation
objectClass: organizationalunit
cn: smith
sn: rod
mail:cn.sn at test dot com
#dc: test.com
#Second Level hierarchy
dn: cn=Kevin Rule,ou=people,dc=test,dc=com
dc:test
objectClass: inetOrgPerson
cn: Kevin Rule
cn: kevin
sn: rule
mail:cn.sn at test dot com
#dc: test.com
When imported the same I get the following errors:
javax.naming.directory.SchemaViolationException: [LDAP: error code 65 - invalid structural object class chain (person/organization)]; remaining name 'dc=test,dc=com'
Can anyone tell me where is my ldif file wrong, or why is this error so.
Also in Eclipse IDE
I am creating a directory with the attributes cn, sn and mail. Since mail is an attribute defined in inetOrgPerson, So I imported inetOrgPerson schema file in my slapd.conf file.
But while adding entries, it says ldap Error code 65- attribute dc not allowed.
Now If I try to delete dc attribute it gives me a warning. Attribute dc is part of RDN!
Ignoring this warning when I delete dc attribute it again shows me ldap Error code 65- attribute dc not allowed.
Please tell me where I am wrong and do I need to so. DO I have to edit any schema files. I am new to ldap
Thanks for the help.
dn: cn=Manager,dc=test,dc=com
dc: test
description: This is my Wonderful company as much text as you want to put in this line upto 32 K
objectClass: top
objectClass: dcObject
objectClass: person
objectClass: organization
objectClass: inetOrgPerson
#First Level Hierarchy
dn: cn=Manager,ou=people,dc=test,dc=com
dc: test
ou: people
description: All people in organisation
objectClass: organizationalunit
cn: smith
sn: rod
mail:cn.sn at test dot com
#dc: test.com
#Second Level hierarchy
dn: cn=Kevin Rule,ou=people,dc=test,dc=com
dc:test
objectClass: inetOrgPerson
cn: Kevin Rule
cn: kevin
sn: rule
mail:cn.sn at test dot com
#dc: test.com
When imported the same I get the following errors:
javax.naming.directory.SchemaViolationException: [LDAP: error code 65 - invalid structural object class chain (person/organization)]; remaining name 'dc=test,dc=com'
Can anyone tell me where is my ldif file wrong, or why is this error so.
Also in Eclipse IDE
I am creating a directory with the attributes cn, sn and mail. Since mail is an attribute defined in inetOrgPerson, So I imported inetOrgPerson schema file in my slapd.conf file.
But while adding entries, it says ldap Error code 65- attribute dc not allowed.
Now If I try to delete dc attribute it gives me a warning. Attribute dc is part of RDN!
Ignoring this warning when I delete dc attribute it again shows me ldap Error code 65- attribute dc not allowed.
Please tell me where I am wrong and do I need to so. DO I have to edit any schema files. I am new to ldap
Thanks for the help.
![]() |
Similar Threads
- how to read the content of dll file in known format (Windows NT / 2000 / XP)
- Reading binary file without knowing file format (C)
- file not recognized: File format not recognized (C++)
- class to read any kind of file format e.g .doc,.pdf,.txt (Java)
- Reverse Engineer OS9 File Format - Music Notation (Legacy and Other Languages)
- Parsing CSV file in partcular format (Java)
Other Threads in the Linux Servers and Apache Forum
- Previous Thread: Linux Certification Not Required
- Next Thread: mod_rewrite subdomains
| Thread Tools | Search this Thread |
.net apache asus bbc bluegene centos cisco citrix cloud cloudcomputing custom datacenters debian dell desktops development distributions distros drivers economy eeepc energy enterprise fedora gadgets gentoo gos government gpl hardware hp hyper-v ibm java jobs kindle knoppix kvm laptop laptops lawsuits licensing limo linustorvalds linux linuxfoundation linuxmagazine magazines microserver microsoft mobile mobilephones netbook netbooks news novell olpc open openmoko openoffice opensolaris opensource opensuse openvz operatingsystems os patents pc pcworld plathome politics print qumranet redhat rhel robot russia sco server servers slackware software solaris source sun supercomputer support tivo torvalds training tv ubuntu umpc unix virtualization vmware windows x86 xandros xen





