Kerberos Ticket Manager
Project description
Kerberos Ticket Manager
Simple kinit wrapper to update Kerberos ticket periodically for long running application.
Getting Started
Periodical kerberos ticket update
from krbticket import KrbTicket
ticket = KrbTicket.init("<principal>", "<keytab path>")
ticket.updater_start()
Retry
krbticket utilizes retrying, and you can pass the options using retry_options
of KrbConfig. The dafault values are:
- wait_exponential_multiplier = 1000
- wait_exponential_multiplier = 30000
- stop_max_attempt_number = 10
from krbticket import KrbTicket
retry_options = {
'wait_exponential_multiplier': 1000,
'wait_exponential_multiplier': 10000,
'stop_max_attempt_number': 5
}
ticket = KrbTicket.init("<principal>", "<keytab path>", retry_options=retry_options)
ticket.updater_start()
see: https://github.com/rholder/retrying
Test
docker run --rm -p 88:88 ksauzz/docker-krb5:0.0.1
pip install -r requirements-test.txt
KRB5_CONFIG=tests/conf/krb5.conf.local pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
krbticket-1.0.0b1.tar.gz
(8.1 kB
view hashes)
Built Distribution
Close
Hashes for krbticket-1.0.0b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b06637c25b2baf6f08627eeceef60cd2a8a0c6490a1721752969002d4a556ab |
|
MD5 | ff9e13b82124f5c796b69ccee6d54ad5 |
|
BLAKE2b-256 | 50eb69c08f5c914ee431973e826d224d0a100a7d94b26a3104f13c316d3e3ca5 |