List of usage examples for org.apache.hadoop.minikdc MiniKdc MAX_TICKET_LIFETIME
String MAX_TICKET_LIFETIME
To view the source code for org.apache.hadoop.minikdc MiniKdc MAX_TICKET_LIFETIME.
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 void setMaxTicketLifetime(final String lifetimeSeconds) { this.kdcProperties.setProperty(MiniKdc.MAX_TICKET_LIFETIME, lifetimeSeconds); }
From source file:org.apache.sentry.api.service.thrift.TestConnectionWithTicketTimeout.java
License:Apache License
public static void beforeSetup() throws Exception { kdcConfOverlay.setProperty(MiniKdc.MAX_TICKET_LIFETIME, "360001"); //Only UGI based client connections renew their TGT, this is not a problem in the real world // as this is not configurable and always true conf.set(ServiceConstants.ServerConfig.SECURITY_USE_UGI_TRANSPORT, "true"); }
From source file:org.apache.sentry.hdfs.TestKrbConnectionTimeout.java
License:Apache License
@BeforeClass public static void setupConf() throws Exception { kdcConfOverlay.setProperty(MiniKdc.MAX_TICKET_LIFETIME, "300001"); setup();//from w ww. j ava 2 s. c om }