This is a multi-part message in MIME format.
--------------050905040301060400050300
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lukas Slebodnik wrote:
On (09/12/13 04:01), Howard Chu wrote:
Meanwhile you can refer to draft-behera-ldap-password-policy for the
specification of the response control. The control value is mandatory
for this control.
If I read draft "6.2. Response Control" correctly,
http://tools.ietf.org/html/draft-behera-ldap-password-policy-10#section-6.2
response can be sequence of "PasswordPolicyResponseValue".
I think that sequence means "0 or more values"
The sequence is required to begin with a Sequence marker.
In theory, there needn't be any password policy response value after control
type. In this case, either my patch or your patch are wrong.
Did I miss something?
The controlType is 1.3.6.1.4.1.42.2.27.8.5.1 and the controlValue is
the BER encoding of the following type:
"the controlValue is the BER encoding of a Sequence." - even if the
sequence has zero members, it cannot be omitted.
Thank you for your explanation.
I am attaching output from ldapwhoami with enabled ppolicy,
but I am sure that problem is in the server apacheds, because there is nothing
after controlType 1.3.6.1.4.1.42.2.27.8.5.1
(at least Sequence marker should be after controlType)
Agreed, that looks like an ApacheDS bug.
--
-- Howard Chu
CTO, Symas Corp.
http://www.symas.com
Director, Highland Sun
http://highlandsun.com/hyc/
Chief Architect, OpenLDAP
http://www.openldap.org/project/
--------------050905040301060400050300
Content-Type: text/plain; charset=UTF-8;
name="ldapwhoami.log"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="ldapwhoami.log"
W3Jvb3RAdm0tMjE5IH5dIyBsZGFwd2hvYW1pIC1kNyAtRCAiY249V2lsbGlhbSBCdXNoLG91
PXBlb3BsZSxkYz1leGFtcGxlLGRjPXNrIiAtdyBqYWhvZGEuMTIzIC1IIGxkYXA6Ly92bS0x
MzcuaWRtLmxhYi5sb2NhbCAtZSBwcG9saWN5CmxkYXBfdXJsX3BhcnNlX2V4dChsZGFwOi8v
dm0tMTM3LmlkbS5sYWIubG9jYWwpCmxkYXBfY3JlYXRlCmxkYXBfdXJsX3BhcnNlX2V4dChs
ZGFwOi8vdm0tMTM3LmlkbS5sYWIub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