[
https://issues.apache.org/jira/browse/DIRSERVER-2292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15646971#comment-15646971
]
Emmanuel Lécharny edited comment on DIRSERVER-2292 at 8/13/22 3:28 AM:
-----------------------------------------------------------------------
Below is the byte array which is passed to
{noformat}
public ChangePasswordResult( byte[] userData )
{ // first 2 bytes contain the result code ( from 0-7 ) int r = ( userData[0] &
0xFFFF << 8 ) + ( userData[1] & 0xFFFF ); code =
ChangePasswordResultCode.getByValue( r ); message = new String( userData, 2,
userData.length - 2 ); }
[0, 4, 0, 0, 0, 0, 0, 7, 0, 0, 0, 24, 0, 0, 0, 1, 0, 0, 33, 0, -11, 89, -128,
0, 0, 0, 0, -55, 42, 105, -64, 0]
{noformat}
When it takes first 2 bytes it returns 4 that means code is
{{KRB5_KPASSWD_SOFTERROR}}
Then rest of the byte array returns unreadable string which should be Message
(result string )
was (Author: jayamali):
Below is the byte array which is passed to
public ChangePasswordResult( byte[] userData )
{
// first 2 bytes contain the result code ( from 0-7 )
int r = ( userData[0] & 0xFFFF << 8 ) + ( userData[1] & 0xFFFF );
code = ChangePasswordResultCode.getByValue( r );
message = new String( userData, 2, userData.length - 2 );
}
[0, 4, 0, 0, 0, 0, 0, 7, 0, 0, 0, 24, 0, 0, 0, 1, 0, 0, 33, 0, -11, 89, -128,
0, 0, 0, 0, -55, 42, 105, -64, 0]
When it takes first 2 bytes it returns 4 that means code is
KRB5_KPASSWD_SOFTERROR
Then rest of the byte array returns unreadable string which should be Message
(result string )
> org.apache.directory.api.asn1.DecoderException:
> ERR_00001_BAD_TRANSITION_FROM_STATE Bad transition from state START_STATE,
> tag 0x6F
> ------------------------------------------------------------------------------------------------------------------------------------
>
> Key: DIRSERVER-2292
> URL: https://issues.apache.org/jira/browse/DIRSERVER-2292
> Project: Directory ApacheDS
> Issue Type: Bug
> Components: changepw
> Affects Versions: 2.0.0-M23
> Reporter: Jayamali Chathurika Jayawardhana
> Priority: Major
> Fix For: 2.0.0-M23
>
> Attachments: thirdPartyPatch-master.zip
>
>
> When i try to change the password it gives above exception and then returns
> ChangePasswordResult with error code 4.But message returned by
> ChangePasswordResult is not a readable string
> I need to see a meaningful error message
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]