2021-07-19 01:47:39 -04:00
|
|
|
from zope.interface import Interface
|
|
|
|
|
|
|
|
|
|
|
|
class IKerberosService(Interface):
|
|
|
|
"""A utility wrapper around kinit/kadmin."""
|
|
|
|
|
|
|
|
def addprinc(principal: str, password: str):
|
|
|
|
"""Add a new principal with the specified password."""
|
|
|
|
|
2021-07-24 17:09:10 -04:00
|
|
|
def delprinc(principal: str):
|
|
|
|
"""Remove a principal."""
|
|
|
|
|
2021-07-19 01:47:39 -04:00
|
|
|
def change_password(principal: str, password: str):
|
|
|
|
"""Set and expire the principal's password."""
|