This is a multi-part message in MIME format.

------=_NextPart_000_004C_01C932C2.F4BA15D0
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Here is a test slapd conf file, with a test schema.
Put the test.schema in schema subdirectory, together with standard =
schema
files.
Run slapd -f slapdTest.conf -F /path/configdb
Slapd starts and can be accessed this time, all is fine.
But when restarting with the configdb only, it does not start:

olcObjectClasses: value #0 olcObjectClasses: AttributeType not found:
"mailHost"
config error processing cn=3D{3}test,cn=3Dschema,cn=3Dconfig: =
olcObjectClasses:
AttributeType not found: "mailHost"

and the /path/configdb/cn=3Dconfig/cn=3Dschema/cn=3D{3}test.ldif =
contains this:

dn: cn=3D{3}test
objectClass: olcSchemaConfig
cn: {3}test
olcObjectClasses: {0}( 1.2.250.1.49.4406.0.6.1 NAME 'museIncr2' SUP top
AUXILI
 ARY MAY ( uid $ manager $ employeeNumber $ departmentNumber $ mailHost =
$
intr
 acedUid $ source $ userCertificateIGCG $ modifiedTimestampSource ) )
structuralObjectClass: olcSchemaConfig
entryUUID: c28d5168-40ed-4af9-8583-a02786da8bc8
creatorsName: cn=3Dconfig
createTimestamp: 20081020124051Z
entryCSN: 20081020124051.109000Z#000000#000#000000
modifiersName: cn=3Dconfig
modifyTimestamp: 20081020124051Z

> -----Message d'origine-----
> De=A0: Hallvard Breien Furuseth [mailto:[EMAIL PROTECTED]
> Envoy=E9=A0: lundi 20 octobre 2008 14:32
> =C0=A0: [EMAIL PROTECTED]
> Objet=A0: Re: (ITS#5755) Schema file not always converted to LDIF and
> slapdwon't restart
Can you post a slapd.conf and the necessary file files which cause
this?  Or an URL to them?  Remember to remove passwords.

Since you say slapd won't restart, I assume it does start the first
time.  When slapd starts up and writes such a bad schema directory,
do the missing attributes show up with ldapsearch...
...in olcAttributeTypes in cn=3D{n}filename,cn=3Dschema,cn=3Dconfig?
...in attributeTypes    in cn=3Dsubschema  with search scope =3D base?>=20
> [EMAIL PROTECTED] writes:
> > Can you post a slapd.conf and the necessary file files
>=20
> Eh.  I mean                     the necessary schema files, of course.
>=20
> --
> Hallvard

------=_NextPart_000_004C_01C932C2.F4BA15D0
Content-Type: application/octet-stream;
        name="slapdTest.conf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
        filename="slapdTest.conf"

# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.23.2.2 2002/08/19 =
16:21:49 kurt Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
ucdata-path     ucdata
#loglevel 4072
loglevel 4095
logfile slapd-m.log
include         schema/core.schema
include         schema/cosine.schema
include         schema/inetorgperson.schema
include         schema/test.schema


pidfile         slapd.pid
argsfile        slapd.args


allow           bind_v2
access to * attr=3DuserPassword=0A=
        by self write=0A=
        by anonymous auth=0A=
        by * none

access to *
        by self write=0A=
        by users read
        by anonymous read
        by * none


#######################################################################
# database definitions
#######################################################################

database        bdb
suffix          "c=3Dfr"
rootdn          "cn=3Dmanager,c=3Dfr"
# number of entries which should be held in memory
cachesize       20000
# Specify how often the berkeley database transaction log is =
checkpointed.=20
# A checkpoint will occur when either <kbytes> of data have been written =
to=20
# the transaction logs, or <min> minutes have passed since the last =
checkpoint,=20
# which ever comes first.
# -> done by syncprov
# checkpoint    10000 10

updatedn "cn=3Dmanager,c=3Dfr"

# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw          {SSHA}IcRbIFvDVZ9j6g8hWK9bbgo7xhSrMMTf
# The database directory MUST exist prior to running slapd AND=20
# should only be accessible by the slapd/tools. Mode 700 recommended.
directory       db
# Indices to maintain
index objectClass,entryCSN,entryUUID eq
index cn,ou,sn,telephonenumber eq,sub

# for replication
overlay syncprov
# <nb ops> <minutes>
syncprov-checkpoint 100 10
# nb of session log entries
syncprov-sessionlog 100


------=_NextPart_000_004C_01C932C2.F4BA15D0
Content-Type: application/octet-stream;
        name="test.schema"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
        filename="test.schema"

attributetype ( 1.3.6.1.4.1.7914.1.2.1.6
        NAME 'mailHost'
        DESC 'Nom du serveur destinataire'
        EQUALITY caseIgnoreMatch
        SUBSTR caseIgnoreSubstringsMatch
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.44
        SINGLE-VALUE )

attributetype ( 1.2.250.1.49.5.17
        NAME 'intracedUid'
        DESC 'Identifiant Intranet'
        EQUALITY caseIgnoreMatch
        SUBSTR caseIgnoreSubstringsMatch
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
        SINGLE-VALUE )

attributetype ( 1.2.250.1.49.5.16
        NAME 'source'
        DESC 'Annuaire Source'
        EQUALITY caseIgnoreMatch
        SUBSTR caseIgnoreSubstringsMatch
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )

attributetype ( 1.2.250.1.49.4406.0.0.5
        NAME 'userCertificateIGCG'
        DESC 'Certificats de l=92IGC generique'
        EQUALITY certificateExactMatch
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.8 )

attributetype ( 1.2.250.1.49.4406.0.0.6
        NAME 'modifiedTimestampSource'
        DESC 'Date de modification d une entree issue de l annuaire =
externe'
        EQUALITY generalizedTimeMatch
        ORDERING generalizedTimeOrderingMatch
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.24=20
        SINGLE-VALUE )

objectclass     ( 1.2.250.1.49.4406.0.6.1
    NAME 'museIncr2'
    SUP top
    AUXILIARY
        MAY ( uid $ manager $ employeeNumber $ departmentNumber $
              mailHost $
              intracedUid $ source $ userCertificateIGCG $ =
modifiedTimestampSource
                )
        )

------=_NextPart_000_004C_01C932C2.F4BA15D0--


Reply via email to