List of usage examples for org.apache.hadoop.minikdc MiniKdc ORG_DOMAIN
String ORG_DOMAIN
To view the source code for org.apache.hadoop.minikdc MiniKdc ORG_DOMAIN.
Click Source Link
From source file:org.apache.accumulo.harness.TestingKdc.java
License:Apache License
public TestingKdc(File kdcDir, File keytabDir, long maxTicketLifetime) throws Exception { requireNonNull(kdcDir, "KDC directory was null"); requireNonNull(keytabDir, "Keytab directory was null"); checkArgument(maxTicketLifetime > 0, "Ticket lifetime must be positive"); this.keytabDir = keytabDir; this.hostname = InetAddress.getLocalHost().getCanonicalHostName(); log.debug("Starting MiniKdc in {} with keytabs in {}", kdcDir, keytabDir); Properties kdcConf = MiniKdc.createConf(); kdcConf.setProperty(MiniKdc.ORG_NAME, ORG_NAME); kdcConf.setProperty(MiniKdc.ORG_DOMAIN, ORG_DOMAIN); kdcConf.setProperty(MiniKdc.MAX_TICKET_LIFETIME, Long.toString(maxTicketLifetime)); // kdcConf.setProperty(MiniKdc.DEBUG, "true"); kdc = new MiniKdc(kdcConf, kdcDir); }
From source file:org.apache.nifi.security.krb.KDCServer.java
License:Apache License
public KDCServer(final File baseDir) { this.baseDir = baseDir; this.kdcProperties = MiniKdc.createConf(); this.kdcProperties.setProperty(MiniKdc.INSTANCE, "DefaultKrbServer"); this.kdcProperties.setProperty(MiniKdc.ORG_NAME, "NIFI"); this.kdcProperties.setProperty(MiniKdc.ORG_DOMAIN, "COM"); }