lc_ldap.shortcuts

This commit is contained in:
Vincent Le Gallic 2013-05-16 06:31:57 +02:00
parent dc01a371dc
commit 0922e3c63b
8 changed files with 30 additions and 27 deletions

View file

@ -27,7 +27,7 @@
import sys
sys.path.append('/usr/scripts/')
sys.path.append('/usr/scripts/gestion')
sys.path.append('/usr/scripts/lc_ldap')
sys.path.append('/usr/scripts/')
import cranslib.deprecated
cranslib.deprecated.module()
@ -44,13 +44,11 @@ from iptools import AddrInNet, NetSubnets, IpSubnet
from config import NETs, mac_komaz, mac_wifi, mac_titanic, p2p, vlans, debit_max_radin, adm_users, accueil_route, blacklist_sanctions, blacklist_sanctions_soft, periode_transitoire
import config.firewall
from ipset import IpsetError, Ipset
from lc_ldap import lc_ldap
from ipt import gethostbyname
syslog.openlog('firewall')
debug = 1
db = crans_ldap()
QUERY=lc_ldap(uri='ldap://ldap.adm.crans.org/')
class IptablesError(Exception):
""" Gestion des erreurs d'iptables """