directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jayamali Chathurika Jayawardhana (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DIRKRB-612) org.apache.directory.api.asn1.DecoderException: ERR_00001_BAD_TRANSITION_FROM_STATE Bad transition from state START_STATE, tag 0x6F
Date Mon, 07 Nov 2016 10:16:58 GMT

    [ https://issues.apache.org/jira/browse/DIRKRB-612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15643731#comment-15643731
] 

Jayamali Chathurika Jayawardhana commented on DIRKRB-612:
---------------------------------------------------------

cngaepasswordmethod is
   public ChangePasswordResult changePassword( String clientPrincipal, String oldPassword,
String newPassword ) throws ChangePasswordException
inside that method it calls 
 AbstractPasswordMessage reply = sendAndReceiveChngPwdMsg( req, channel );
 from sendAndReceiveChngPwdMsg it calls below
ChangePasswordDecoder.decode( repData, chngPwdChannel.isUseTcp() );

from that decode method
 return ChangePasswordReply.decode( buf );

from the above decode method it calls
 return new ChangePasswordReply( protocolVersion, applicationReply, privateMessage );
from that reply message
it does below 
 ChangePasswordReply chngPwdReply = ( ChangePasswordReply ) reply;

            KrbPriv replyPriv = chngPwdReply.getPrivateMessage();
            // the same subKey present in ApReq is used for encrypting the KrbPriv present
in reply
            byte[] data = cipherTextHandler.decrypt( subKey, replyPriv.getEncPart(), KeyUsage.KRB_PRIV_ENC_PART_CHOSEN_KEY
);
            part = KerberosDecoder.decodeEncKrbPrivPart( data );
            
            ChangePasswordResult result = new ChangePasswordResult( part.getUserData() );

> org.apache.directory.api.asn1.DecoderException: ERR_00001_BAD_TRANSITION_FROM_STATE Bad
transition from state START_STATE, tag 0x6F 
> ------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DIRKRB-612
>                 URL: https://issues.apache.org/jira/browse/DIRKRB-612
>             Project: Directory Kerberos
>          Issue Type: Bug
>          Components: changepw
>    Affects Versions: 2.0.0-M23
>            Reporter: Jayamali Chathurika Jayawardhana
>             Fix For: 2.0.0-M23
>
>         Attachments: KerberosPWdChnage.rtf, KerberospwdChangeKerberos.pcapng, Stacktarce.txt
>
>
> 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
(v6.3.4#6332)

Mime
View raw message