diff --git a/main.py b/main.py index 860c7cd..3b8d68b 100644 --- a/main.py +++ b/main.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +#coding:utf-8 from configparser import ConfigParser import socket @@ -19,7 +20,7 @@ api_hostname = config.get('Re2o', 'hostname') api_password = config.get('Re2o', 'password') api_username = config.get('Re2o', 'username') -api_client = Re2oAPIClient(api_hostname, api_username, api_password, use_tls=False) +api_client = Re2oAPIClient(api_hostname, api_username, api_password, use_tls=True) client_hostname = socket.gethostname().split('.', 1)[0] diff --git a/templates/hp.tpl b/templates/hp.tpl index 394874b..7e29cd5 100644 --- a/templates/hp.tpl +++ b/templates/hp.tpl @@ -118,6 +118,7 @@ radius-server host {{ ipv4 }} dyn-authorization radius-server dyn-autz-port 3799 ;--- Filtrage mac --- aaa port-access mac-based addr-format multi-colon +aaa port-access mac-based unauth-redirect "http://re2o.auro.re/users/initial_register" ;--- Bricoles --- no cdp run {%- if additionals.dhcp_snooping_vlans %}