use of com.sequenceiq.freeipa.api.v1.kerberos.model.create.ActiveDirectoryKerberosDescriptor in project cloudbreak by hortonworks.
the class KerberosConfigToCreateKerberosConfigRequestConverter method getActiveDirectory.
private ActiveDirectoryKerberosDescriptor getActiveDirectory(KerberosConfig source) {
ActiveDirectoryKerberosDescriptor activeDirectory = new ActiveDirectoryKerberosDescriptor();
fillRequestWithCommonFields(activeDirectory, source);
activeDirectory.setAdminUrl(source.getAdminUrl());
activeDirectory.setContainerDn(source.getContainerDn());
activeDirectory.setLdapUrl(source.getLdapUrl());
activeDirectory.setPrincipal(getFakeSecretIfNotNull(source.getPrincipal(), FAKE_PRINCIPAL_POSTFIX));
activeDirectory.setRealm(getFakeSecretIfNotNull(source.getRealm(), FAKE_REALM_POSTFIX));
activeDirectory.setUrl(source.getUrl());
return activeDirectory;
}
Aggregations