Skip to content

Latest commit

 

History

History
71 lines (65 loc) · 1.6 KB

kdcserver.md

File metadata and controls

71 lines (65 loc) · 1.6 KB

kerb-server

Initiate kdc server

  • Initiate a kdc server with prepared confDir.
KdcServer server = new KdcServer(confDir);

Start and set kdc server

  • Start kdc server.
start();
  • Set KDC realm for ticket request
setKdcRealm(realm);
  • Set KDC host.
setKdcHost(kdcHost);
  • Set KDC tcp port.
setKdcTcpPort(kdcTcpPort);
  • Set KDC udp port. Only makes sense when allowUdp is set.
setKdcUdpPort(kdcUdpPort);
  • Set to allow TCP or not.
setAllowTcp(allowTcp);
  • Set to allow UDP or not.
setAllowUdp(allowUdp);
  • Allow to debug so have more logs.
enableDebug();
  • Allow to hook customized kdc implementation.
setInnerKdcImpl(innerKdcImpl);

Stop kdc server

  • Start kdc server.
stop();