This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global: | |
edition: ee | |
appConfig: | |
ldap: | |
servers: | |
main: | |
label: 'LDAP' | |
host: 'yourdomain.com' | |
port: 389 | |
uid: 'sAMAccountName' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
#This script assumes there is a network object-group on all Cisco ASAs called 'grp..blacklist', and that the group is attached to the correct ACL/interface | |
#import all the modules we need | |
import sys | |
import os | |
import netmiko | |
from netmiko import ConnectHandler | |
print('imported modules') |