Skip to content

Latest commit

 

History

History
81 lines (77 loc) · 2.22 KB

kadmin.md

File metadata and controls

81 lines (77 loc) · 2.22 KB

kerb-admin

Local mode

Initiate a LocalKadminImpl

  • Initiate a LocalKadminImpl with prepared KdcConfig and BackendConfig.
LocalKadmin kadmin = new LocalKadminImpl(kdcConfig, backendConfig);
  • Initiate a LocalKadmin with confDir.
LocalKadmin kadmin = new LocalKadminImpl(confDir);
  • Initiate a LocalKadmin with kdcSetting and backend.
LocalKadmin kadmin = new LocalKadminImpl(kdcSetting, backend);

Principal operating

  • Add principle with principal name.
addPrincipal(principal);
  • Add principle with principal name and password.
addPrincipal(principal, password);
  • Add principle with principal name and kOptions.
addPrincipal(principal, kOptions);
  • Add principle with principal name, password and kOptions.
addPrincipal(principal, password kOptions);
  • Delete principle with principal name.
deletePrincipal(principal);
  • Modify principle with principal name and kOptions.
modifyPrincipal(principal, kOptions);
  • Rename principle.
renamePrincipal(oldPrincipalName, newPrincipalName);
  • Get principle with principal name.
getPrincipal(principalName);
  • Get all the principles.
getPrincipals();
  • Update password with principal name and new password.
updatePassword(principal, newPassword);
  • Export all identity keys to the specified keytab file.
exportKeyTab(keyTabFile);