forked from public/pyceo
15 lines
409 B
Python
15 lines
409 B
Python
from zope.interface import Interface
|
|
|
|
|
|
class IKerberosService(Interface):
|
|
"""A utility wrapper around kinit/kadmin."""
|
|
|
|
def kinit():
|
|
"""Acquire and cache a new TGT."""
|
|
|
|
def addprinc(principal: str, password: str):
|
|
"""Add a new principal with the specified password."""
|
|
|
|
def change_password(principal: str, password: str):
|
|
"""Set and expire the principal's password."""
|