2.4 - SimpleKdcServer¶
A simplified Kdc server. It can be imported by other project to work as a kdc server.
Kdc server¶
Start simple 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);Create principle with principal name.Kadmin¶
createPrincipal(principal);Add principle with principal name and password.
createPrincipal(principal, password);Create principles with principal names.
createPrincipals(principals);Creates principals and export their keys to the specified keytab file.
createAndExportPrincipals(keytabFile principals);Delete principle with principal name.
deletePrincipal(principal);Delete principles with principal names.
deletePrincipals(principals);* Export principles to keytab file.
exportPrincipals(keytabFile);