Skip to content

Instantly share code, notes, and snippets.

# Assuming that HOSTNAME is enrolled to IPA realm already,
# run the following on HOSTNAME where RADIUS server will be deployed
# In FreeIPA 4.6+ host principal has permissions to create own services
kinit -k
ipa service-add 'radius/HOSTNAME'
# create keytab for radius user
ipa-getkeytab -p 'radius/HOSTNAME' -k /etc/raddb/radius.keytab
chown root:radiusd /etc/raddb/radius.keytab
chmod 640 /etc/raddb/radius.keytab
@xbrianh
xbrianh / s3_tar.py
Created July 26, 2019 00:33
Tar archive class useful for interfacing with S3
#!/usr/bin/env python
"""
Prototyped utilities for working with indexed, unterminated tar archives.
See "end-of-archive entry" in the following link for more information about "unterminated":
https://www.gnu.org/software/tar/manual/html_node/Standard.html
These can be used efficiently with s3 objects to extract individual files,
splice archives together, and stream. See examples at end of file.
"""