Welcome to python-kadmin-rs’s documentation!

This is a Python interface to libkadm5.

For remote operations:

import kadmin

princ = "user/admin@EXAMPLE.ORG"
password = "vErYsEcUrE"
kadm = kadmin.KAdmin.with_password(princ, password)
print(kadm.list_principals("*"))

For local operations:

import kadmin

kadm = kadmin.KAdmin.with_local()
print(kadm.list_principals("*"))

This module consists of bindings to the kadmin Rust crate. It doesn’t link against libkadm5 directly, but instead loads if at runtime. You can find more information about this process in the Rust crate documentation.

Contents:

Indices and tables