[
https://issues.apache.org/jira/browse/DIRSERVER-2292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15628288#comment-15628288
]
Emmanuel Lécharny edited comment on DIRSERVER-2292 at 8/13/22 3:25 AM:
-----------------------------------------------------------------------
I am using JDK 8 platform with latest org.apache.directory.kerberos.client .
Below is the code that i used to change the password.I am using windows 2012
server.
{noformat}
KdcConfig config = KdcConfig.getDefaultConfig();
Set<EncryptionType> encTypes = new HashSet<EncryptionType>();
AdTest.removeCryptographyRestrictions();
config.setHostName("host");
config.setKdcPort(88);
config.setUseUdp(false);
KdcConnection conn = new KdcConnection(config);
try {
ChangePasswordResult passwordChangeResult =
conn.changePassword([userprincipal], password, Password@34);
}
{noformat}
Then it gives below error
{noformat}
[AbstractGrammar ] [Jetty-42 ] ERROR - ERR_00001_BAD_TRANSITION_FROM_STATE Bad
transition from state START_STATE, tag 0x6F
{noformat}
And then it returns {{ChangePasswordResult}} with error
{{{}KRB5_KPASSWD_SOFTERROR(4){}}},
But {{ChangePasswordResult.getMessage}} returns unreadable string so that i
cannot read the exact error.
was (Author: jayamali):
I am using JDK 8 platform with latest org.apache.directory.kerberos.client .
Below is the code that i used to change the password.I am using windows 2012
server.
KdcConfig config = KdcConfig.getDefaultConfig();
Set<EncryptionType> encTypes = new HashSet<EncryptionType>();
AdTest.removeCryptographyRestrictions();
config.setHostName("host");
config.setKdcPort(88);
config.setUseUdp(false);
KdcConnection conn = new KdcConnection(config);
try {
ChangePasswordResult passwordChangeResult =
conn.changePassword([userprincipal], password, Password@34);
}
Then it gives below error
[AbstractGrammar ] [Jetty-42 ] ERROR -
ERR_00001_BAD_TRANSITION_FROM_STATE Bad transition from state START_STATE, tag
0x6F
And then it returns ChangePasswordResult with error
KRB5_KPASSWD_SOFTERROR(4),
But ChangePasswordResult.getMessage returns unreadable string so that i cannot
read the exact error.
> 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]