[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: creating attributes in new objectclass



You're right !I forgot to define an equality matching rule for my new attributetypes,
My attributetype is now :
attributetype ( 1.3.6.1.4.1.7135.1.3.7.102 NAME 'backupmail1'
DESC 'Adresse mail fictive pour backup mail 1 en temps reel'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128}
)


Thanks.
Christophe Dumonet.

----------------------------------------------------
Christophe Dumonet
Centre de Ressources Informatiques
Institut Francais de Mecanique Avancee (IFMA)
Campus des Cezeaux
BP 265
63175 AUBIERE Cedex
Tel : +33 - 4.73.28.80.64
Fax : +33 - 4.73.28.81.00
Mail : Christophe.Dumonet@ifma.fr
----------------------------------------------------



Ralf Haferkamp a écrit :
On Donnerstag, 10. April 2008, Christophe Dumonet wrote:
Hello,
I have created a new objectclass for my company, and added some new
attributes.
Slapd restarts well, I can create new attributes with values in dns,
but When I want to search with the attribute with an ldapsearch or
another tools (postfix ), these attributes are not find.
for example : I got no answer with :
 ldapsearch -x -b "ou=people,dc=ifma,dc=fr" -H ldap://172.16.10.92 -D
"cn=admin,dc=ifma,dc=fr" -W -LLL
"(backupmail1=dumonet@backup1.ifma.fr)" uid ( While I see in a ldap
browser an attribute backupmail1 with dumonet@backup1.ifma.fr in
value , and got an uid ! )

My objectclass is in a new schema : , and is included in slapd.conf
by include /etc/ldap/schema/ifma.schema
vi ifma.schema :
#schema local IFMA
#Date : 23/01/2008
#Author: Christophe Dumonet - IFMA
#
# CLASS IFMA
#
attributetype (  1.3.6.1.4.1.7135.1.3.7.103 NAME 'pathbackupmail1'
                DESC 'chemin pour backupmail1'
                SYNTAX 1.3.6.1.4.1.1466.115.121.1.50
                )
attributetype ( 1.3.6.1.4.1.7135.1.3.7.102 NAME 'backupmail1'
                DESC 'Adresse mail fictive pour backup mail 1 en
temps reel' SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
                )
objectclass ( 1.3.6.1.4.1.7135.1.3.7.1 NAME 'ifma' SUP top AUXILIARY
        DESC 'classe d infos ifma'
        MAY ( backupmail1 $ pathbackupmail1 ))

Why ? Is my schema not well created, my syntax ? other , I work with
openldap 2.3.30 , thanks for answer !
Christophe Dumonet.
You didn't define an equality matching rule for you attributetypes. If you want to do equality matching the attributes you want to match against should have an equality matching rule defined. Have look in the slapd.conf(5) man page for the "attributetype" keyword. And probably also take a look at the schema shipping with OpenLDAP for examples.