Using default schemas included with slapd installation does not work.

Bug #583372 reported by jsass
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openldap (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

When attempting to use the default schemas included with an installation of slapd on Ubuntu 10.04's production release, I get the following error:

root@thing:/etc/ldap# sudo ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/cosine.ldif
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
adding new entry "cn=ldap,cn=test,cn=com"
ldap_add: Server is unwilling to perform (53)
 additional info: no global superior knowledge

root@thing:/etc/ldap# sudo ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/nis.ldif
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
adding new entry "cn=nis,cn=schema,cn=config"
ldap_add: Other (e.g., implementation specific) error (80)
 additional info: olcObjectClasses: AttributeType not found: "manager"

root@thing:/etc/ldap# sudo ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/inetorgperson.ldif
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
adding new entry "cn=inetorgperson,cn=schema,cn=config"
ldap_add: Other (e.g., implementation specific) error (80)
 additional info: olcObjectClasses: AttributeType not found: "audio"

root@thing:/etc/ldap# sudo ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/misc.ldif
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
adding new entry "cn=misc,cn=schema,cn=config"
ldap_add: Other (e.g., implementation specific) error (80)
 additional info: olcAttributeTypes: Duplicate attributeType: "2.16.840.1.113730.3.1.13"

I have installed slapd and ldap-utils
||/ Name Version Description
+++-=....=======================-==================================================================
ii slapd 2.4.21-0ubuntu5 OpenLDAP server (slapd)
ii ldap-utils 2.4.21-0ubuntu5 OpenLDAP utilities

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: slapd 2.4.21-0ubuntu5
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic x86_64
Architecture: amd64
Date: Thu May 20 10:46:50 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: openldap

Revision history for this message
jsass (sass-joel) wrote :
Revision history for this message
Adam Sommer (asommer) wrote :

Thanks for reporting this bug, and helping make Ubuntu better. It looks like you may have had some information already in your cn=config tree. Assuming you no longer want that information can you execute:

  sudo dpkg-reconfigure slapd

Then retry the above commands?

Thanks again.

Thierry Carrez (ttx)
Changed in openldap (Ubuntu):
status: New → Incomplete
Revision history for this message
J. Kary (jkary-98) wrote :

Hi,

I tried running the command sudo dpkg-reconfigure slapd and selected "yes" to ommit and re-ran the program to select "No" and yes the NEXT prompt. (This was not clear as the omit part didn't really make sense to me.)

After I got the database cleared I added core,cosine,inetorgperson and nis ldif files. The core file was needed (/etc/ldap/schema/core.ldif) as the DB was now empty.

Now I'm stuck trying to add db.ldif.

$> sudo ldapadd -Y EXTERNAL -H ldapi:/// -f db.ldif
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
adding new entry "cn=module{0},cn=config"
ldap_add: Naming violation (64)

$>

I have the same hw config amd/64 and I'm running 10.04.

Thoughts?

Jason Kary

Revision history for this message
Alex (mestia) wrote :

you need to change ldiff

like that one

dn: cn={6}automount
objectClass: olcSchemaConfig
cn: {6}automount
olcAttributeTypes: {0}( 1.3.6.1.1.1.1.25 NAME 'automountInformation' DESC 'Aut
 omount information' EQUALITY caseExactIA5Match SUBSTR caseExactIA5SubstringsM
 atch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} SINGLE-VALUE )
olcObjectClasses: {0}( 1.3.6.1.1.1.2.13 NAME 'automount' DESC 'Automount infor
 mation' SUP top STRUCTURAL MUST ( cn $ automountInformation ) MAY description
  )
olcObjectClasses: {1}( 1.3.6.1.4.1.2312.4.2.2 NAME 'automountMap' DESC 'An gro
 up of related automount objects' SUP top STRUCTURAL MUST ou )
structuralObjectClass: olcSchemaConfig
entryUUID: 697c7bb8-0435-102f-9c7a-edb903590556
creatorsName: cn=admin,cn=config
createTimestamp: 20100604145842Z
entryCSN: 20100604145842.994434Z#000000#000#000000
modifiersName: cn=admin,cn=config
modifyTimestamp: 20100604145842Z

dn: cn=automount,cn=schema,cn=config
objectClass: olcSchemaConfig
cn: automount
olcAttributeTypes: {0}( 1.3.6.1.1.1.1.25 NAME 'automountInformation' DESC 'Aut
 omount information' EQUALITY caseExactIA5Match SUBSTR caseExactIA5SubstringsM
 atch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} SINGLE-VALUE )
olcObjectClasses: {0}( 1.3.6.1.1.1.2.13 NAME 'automount' DESC 'Automount infor
 mation' SUP top STRUCTURAL MUST ( cn $ automountInformation ) MAY description
  )
olcObjectClasses: {1}( 1.3.6.1.4.1.2312.4.2.2 NAME 'automountMap' DESC 'An gro
 up of related automount objects' SUP top STRUCTURAL MUST ou )

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for openldap (Ubuntu) because there has been no activity for 60 days.]

Changed in openldap (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.