1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.directory.server.kerberos;
21
22
23
24
25
26 public class ChangePasswordConfig extends KerberosConfig
27 {
28
29 private static final String SERVICE_PRINCIPAL_DEFAULT = "kadmin/changepw@EXAMPLE.COM";
30
31
32 public ChangePasswordConfig()
33 {
34 setServicePrincipal( SERVICE_PRINCIPAL_DEFAULT );
35 }
36
37
38 public ChangePasswordConfig( KerberosConfig kdcConfig )
39 {
40 setServicePrincipal( "kadmin/changepw@" + kdcConfig.getPrimaryRealm() );
41
42
43 this.setAllowableClockSkew( kdcConfig.getAllowableClockSkew() );
44 this.setBodyChecksumVerified( kdcConfig.isBodyChecksumVerified() );
45 this.setEmptyAddressesAllowed( kdcConfig.isEmptyAddressesAllowed() );
46 this.setEncryptionTypes( kdcConfig.getEncryptionTypes() );
47 this.setForwardableAllowed( kdcConfig.isForwardableAllowed() );
48 this.setMaximumRenewableLifetime( kdcConfig.getMaximumRenewableLifetime() );
49 this.setMaximumTicketLifetime( kdcConfig.getMaximumTicketLifetime() );
50 this.setPaEncTimestampRequired( kdcConfig.isPaEncTimestampRequired() );
51 this.setSearchBaseDn( kdcConfig.getSearchBaseDn() );
52 }
53 }