zhanghw created DIRKRB-754:
------------------------------
Summary: KrbClient.requestTgt(principal, password) receive
PREAUTH_FAILED (MIT Kerbveros)
Key: DIRKRB-754
URL: https://issues.apache.org/jira/browse/DIRKRB-754
Project: Directory Kerberos
Issue Type: Bug
Components: changepw
Affects Versions: 2.0.1
Environment: Red Hat Enterprise Linux7.7, krb5-server.x86_64
1.15.1-37.el7_6
Reporter: zhanghw
Fix For: 2.0.1
public static void main(String[] args) {
String principal = "[email protected]";
String password = "12345678";
KrbConfig krbConfig = new KrbConfig();
krbConfig.setString(KrbConfigKey.KDC_HOST, "kdc.mydomain.com");
krbConfig.setString(KrbConfigKey.KDC_REALM,"DEV.MYDOMAIN.COM");
krbConfig.setString(KrbConfigKey.PERMITTED_ENCTYPES,
"aes256-cts-hmac-sha1-96");
KrbClient krbClient = new KrbClient(krbConfig);
try {
krbClient.init();
TgtTicket tgt1 = krbClient.requestTgt(principal, password);
} catch (KrbException ex) {
ex.printStackTrace();
}
}
krb5's error message:
krb5kdc[1925](info): preauth (encrypted_timestamp) verify failure:
Preauthentication failed
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]