Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 349251

Summary: net-nds/openldap-2.4.23: crashes because unknown AttributeType in inetorgperson.schema
Product: Gentoo Linux Reporter: Timo Eissler <morlix>
Component: Current packagesAssignee: Gentoo LDAP project <ldap-bugs>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Timo Eissler 2010-12-21 06:43:13 UTC
I merged openldap and configured it as described in the Gentoo LDAP Howto.

But i´m able not to start it. If i start slapd with debug output it shows the following error:

line 123 (attributetype ( 2.16.840.1.113730.3.1.40 NAME 'userSMIMECertificate' DESC 'RFC2798: PKCS#7 SignedData used)
line 135 (attributetype ( 2.16.840.1.113730.3.1.216 NAME 'userPKCS12' DESC 'RFC2798: personal identity information, )
line 155 (objectclass   ( 2.16.840.1.113730.3.2.2    NAME 'inetOrgPerson' DESC 'RFC2798: Internet Organizational Per)
/etc/openldap/schema/inetorgperson.schema: line 155 objectclass: AttributeType not found: "audio"
/etc/openldap/slapd.conf: line 6: <include> handler exited with 1!
slapd destroy: freeing system resources.
slapd stopped.
connections_destroy: nothing to destroy.

If i start slapd without inetorgperson.schema then it starts without a problem.

Reproducible: Always

Steps to Reproduce:
1. emerge -v =net-nds/openldap-2.4.23
2. Add or uncomment the following lines in your /etc/openldap/slapd.conf file
include     /etc/openldap/schema/core.schema     
include     /etc/openldap/schema/inetorgperson.schema
3. /usr/lib/openldap/slapd -d -1

Actual Results:  
OpenLDAP failed to start

Expected Results:  
OpenLDAP starts

Portage 2.1.9.25 (default/linux/x86/10.0, gcc-4.4.4, glibc-2.11.2-r3, 2.6.30-gentoo-r8_20100626-1 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r8_20100626-1-i686-Intel-R-_Pentium-R-_4_CPU_2.53GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 21 Dec 2010 05:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11-r1
dev-lang/python:     2.6.6-r1, 3.1.2-r4
dev-util/ccache:     2.4-r9
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13::<unknown repository>, 2.65-r1
sys-devel/automake:  1.4_p6::<unknown repository>, 1.5::<unknown repository>, 1.6.3::<unknown repository>, 1.7.9-r211
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       3.3.6-r1::<unknown repository>, 3.4.6-r2::<unknown repository>, 4.1.2, 4.3.4, 4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA sun-bcla-java-vm dlj-1.1"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/openvpn/easy-rsa /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/geb"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandx"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --sta "
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/gentoo-de /usr/portage/local/layman/vdr-testing"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
p2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
AGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Timo Eissler 2011-01-26 14:32:27 UTC
The problem is caused because if using inetorgperson.schema the cosine.schema is required.

To fix it you just have to add the following line to your slapd.conf before include inetorgperson.schema

include /path/to/cosine.schema