Created
October 19, 2016 21:38
-
-
Save arnobroekhof/28bb3401e9ab515f5d54f19b78bf05e7 to your computer and use it in GitHub Desktop.
Change kerberos password using java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
<dependency> | |
<groupId>org.apache.directory.server</groupId> | |
<artifactId>kerberos-client</artifactId> | |
<version>2.0.0-M20</version> | |
</dependency> | |
*/ | |
public static void main(String[] args) { | |
KdcConfig config = KdcConfig.getDefaultConfig(); | |
config.setHostName("my-kdc.server.fred.com"); | |
config.setUseUdp(false); | |
KdcConnection conn = new KdcConnection(config); | |
conn.changePassword("user@DOMAIN.DE", "share123", "share322"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I could not make this work. Used a different approach