Skip to content

Instantly share code, notes, and snippets.

David Murrell uow-dmurrell

Block or report user

Report or block uow-dmurrell

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@uow-dmurrell
uow-dmurrell / authorized_keys.py
Created Sep 13, 2018
Requires the following rpm packages installed: yum install -y python-kerberos python-ldap python-krbV
View authorized_keys.py
#!/usr/bin/python
# Used ideas from here, but perl + gssapi + ldap doesn't work on RHEL6
# http://www.sysadmin.org.au/index.php/2012/12/authorizedkeyscommand/
import pprint
import ldap
import ldap.sasl
import os
import socket
You can’t perform that action at this time.