[
https://issues.apache.org/jira/browse/DIRSERVER-2088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14662201#comment-14662201
]
lucas theisen commented on DIRSERVER-2088:
------------------------------------------
I will need at least 3 new OID's for this:
{code}
dn:
ads-interceptorId=hashingInterceptor,ou=interceptors,ads-directoryServiceId=default,ou=config
objectclass: top
objectclass: ads-base
objectclass: ads-interceptor
objectclass: ads-hashingInterceptor
ads-enabled: TRUE
ads-interceptorclassname:
org.apache.directory.server.core.hash.HashingInterceptor
ads-interceptororder: 9
ads-interceptorid: hashingInterceptor
ads-hashAlgorithm: SSHA-256
ads-hashAttribute: userPassword
ads-hashAttribute: ?
dn: m-oid=?, ou=objectClasses, cn=adsconfig,
objectclass: top
objectclass: metaTop
objectclass: metaObjectClass
ou=schema
m-oid: ?
m-name: ads-hashingInterceptor
m-description: A generic hashing interceptor
m-supobjectclass: ads-base
m-typeobjectclass: ABSTRACT
m-must: ads-hashAlgorithm
m-may: ads-hashAttribute
dn: m-oid=?,ou=attributeTypes,cn=adsconfig,ou=schema
m-ordering: caseExactOrderingMatch
objectclass: metaTop
objectclass: metaAttributeType
objectclass: top
m-singlevalue: TRUE
m-oid: ?
m-description: Hash algorithm
m-substr: caseExactSubstringsMatch
m-syntax: 1.3.6.1.4.1.1466.115.121.1.44
m-name: ads-hashAlgorithm
m-equality: caseExactMatch
m-length: 0
dn: m-oid=?,ou=attributeTypes,cn=adsconfig,ou=schema
objectclass: metaTop
objectclass: metaAttributeType
objectclass: top
m-ordering: ?
m-singlevalue: FALSE
m-oid: ?
m-description: Attribute names that require hashing
m-substr: ?
m-syntax: 1.3.6.1.4.1.1466.115.121.1.38
m-name: ads-hashAttribute
m-equality: ?
m-length: 0
{code}
Do we have a file or something where we register new OID values? Is there a
process for allocating them?
> Add the ability to specify additional fields that should be hashed by the
> hashing interceptors
> ----------------------------------------------------------------------------------------------
>
> Key: DIRSERVER-2088
> URL: https://issues.apache.org/jira/browse/DIRSERVER-2088
> Project: Directory ApacheDS
> Issue Type: Improvement
> Reporter: lucas theisen
>
> This
> [discussion|http://mail-archives.apache.org/mod_mbox/directory-dev/201507.mbox/%3cbn1pr09mb019635837eb5b0c564a0e955cd...@bn1pr09mb0196.namprd09.prod.outlook.com%3E]
> went over the topic. Per the suggestion from [~akiran], this should be done
> with some new attributes:
> {quote}
> what I would do is to add support for configuring one or more attributes in
> this interceptor
> something like, 'ads-hashAttibute' a multi valued attributes
> {quote}
> Per [~elecharny], a new {{objectClass}} should be created:
> {quote}
> The idea is to add some configuration in the HashInterceptor
> configuration. You can create a new ObjectClass for that and add some
> new AttributeType to store the OID to be hashed.
> {quote}
> And given that we will create a new {{objectClass}} with its own
> configuration attribute for {{ads-hashAttribute}} it is also reasonable to
> add {{ads-hashAlgorithm}}. With this, _ALL_ of the individual classes could
> be implemented as one simple {{HashingInterceptor}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)