[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: OID syntax and NAMEs
- To: Michael Ströder <michael@stroeder.com>, openldap-technical@openldap.org
- Subject: Re: OID syntax and NAMEs
- From: Howard Chu <hyc@symas.com>
- Date: Mon, 28 Nov 2016 17:12:56 +0000
- In-reply-to: <WM!a14f00b92e4d4627b12052c977e72c1b5c5b863c0aa6d2823a3547eb230a749a0257c1304fe6a9779359beed766606f0!@mailstronghold-1.zmailcloud.com>
- References: <1cb3d7ca-4353-82ed-cdb9-aa8b9f925311@stroeder.com> <WM!a14f00b92e4d4627b12052c977e72c1b5c5b863c0aa6d2823a3547eb230a749a0257c1304fe6a9779359beed766606f0!@mailstronghold-1.zmailcloud.com>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46a2
Michael Ströder wrote:
HI!
I've declared an attribute type like this with LDAP syntax OID:
( 1.3.6.1.4.1.5427.1.389.100.4.18
NAME 'aeApplicableSOC'
DESC 'AE-DIR: structural object classes for which policy is applicable'
EQUALITY objectIdentifierMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.38
X-ORIGIN 'AE-DIR' )
Which is pretty similar to this:
( 2.5.4.0
NAME 'objectClass'
DESC 'RFC4512: object classes of the entity'
EQUALITY objectIdentifierMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.38 )
Now I wonder why I can't use the object class NAMEs instead of the OIDs as
attribute or assertion values, e.g. why I can't find the entries with filter
(aeApplicableSOC=aeUser).
This reminds me a bit of the similar OID vs. NAME issue with 'pwdAttribute' in
'pwdPolicy' entries.
It's the exact same issue. The objectIdentifierMatch function only works with
numeric OIDs. The ppolicy overlay inserts its own matching function to make
the name work.
Eventual I'd like to have a constraint like this:
# check whether appropriate password policy is assigned
constraint_attribute structuralObjectClass,pwdPolicySubentry
set "this/structuralObjectClass & this/pwdPolicySubentry/aeApplicableSOC"
Not possible without custom code.
Ciao, Michael.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/