Changeset 2761 for n4d-freeradius


Ignore:
Timestamp:
Nov 7, 2016, 1:07:27 PM (3 years ago)
Author:
daduve
Message:

New posibility to add external router Ip

Location:
n4d-freeradius/trunk/fuentes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • n4d-freeradius/trunk/fuentes/debian/changelog

    r783 r2761  
     1n4d-freeradius (0.1.9) xenial; urgency=high
     2
     3  * Add posibility to add external Router IP
     4
     5 -- Daniel Duran Vecino <daduve@gmail.com>  Mon, 07 Nov 2016 13:05:46 +0100
     6
    17n4d-freeradius (0.1.8) xenial; urgency=medium
    28
  • n4d-freeradius/trunk/fuentes/install/usr/share/n4d/python-plugins/FreeRadiusManager.py

    r782 r2761  
    4141                vars["LDAP_PASSWORD"]=ldap_pwd
    4242                vars["SERVER"]=server
     43                vars["ROUTER_IP"]=router_ip
    4344               
    4445                env = Environment(loader=FileSystemLoader(self.templates_path))
     
    8485        #def
    8586       
    86         def install_conf_files(self,server,radius_secret,ldap_user,ldap_pwd):
     87        def install_conf_files(self,server,radius_secret,ldap_user,ldap_pwd,router_ip):
    8788               
    8889                try:
    8990               
    90                         clients_str,ldap_str=self.render_templates(server,radius_secret,ldap_user,ldap_pwd)
     91                        clients_str,ldap_str=self.render_templates(server,radius_secret,ldap_user,ldap_pwd,router_ip)
    9192                       
    9293                        if not os.path.exists(self.radius_path):
     
    156157       
    157158        r=RadiusManager()
    158         r.install_conf_files("server","myradius1","cn=roadmin...","2")
     159        r.install_conf_files("server","myradius1","cn=roadmin...","2","")
  • n4d-freeradius/trunk/fuentes/install/usr/share/n4d/templates/n4d-freeradius/clients.conf

    r782 r2761  
    209209}
    210210
     211{% if ROUTER_IP is defined and ROUTER_IP != None %}
     212
     213client {{ ROUTER_IP }} {
     214        secret = {{ RADIUS_SECRET }}
     215        nastype = other
     216       
     217{% endif %}
     218
    211219#client 10.10.10.10 {
    212220#       # secret and password are mapped through the "secrets" file.
Note: See TracChangeset for help on using the changeset viewer.