Stability fixes and logging improvements in ui
[moonshot.git] / rpm-sources / freeradius-ippool-tr.patch
1 Index: freeradius-server/raddb/mods-available/ippool
2 ===================================================================
3 --- freeradius-server.orig/raddb/mods-available/ippool
4 +++ freeradius-server/raddb/mods-available/ippool
5 @@ -22,54 +22,45 @@
6  #              DEFAULT Group == teachers, Pool-Name := "teachers"
7  #              DEFAULT Group == other, Pool-Name := "DEFAULT"
8  #
9 -# ********* IF YOU CHANGE THE RANGE PARAMETERS YOU MUST *********
10 -# ********* THEN ERASE THE DB FILES                     *********
11 +# Note: If you change the range parameters you must then erase the
12 +#       db files.
13  #
14  ippool main_pool {
15 +       #  The main db file used to allocate addresses.
16 +       filename = ${db_dir}/db.ippool
17  
18 -       #  range-start,range-stop:
19 -       #       The start and end ip addresses for this pool.
20 +       #  The start and end ip addresses for this pool.
21         range_start = 192.0.2.1
22         range_stop = 192.0.2.254
23  
24 -       #  netmask:
25 -       #       The network mask used for this pool.
26 +       #  The network mask used for this pool.
27         netmask = 255.255.255.0
28  
29 -       #  cache_size:
30 -       #       The gdbm cache size for the db files. Should
31 -       #       be equal to the number of ip's available in
32 -       #       the ip pool
33 +       #  The gdbm cache size for the db files. Should
34 +       #  be equal to the number of ip's available in
35 +       #  the ip pool
36         cache_size = 800
37  
38 -       # session-db:
39 -       #       The main db file used to allocate addresses.
40 -       session_db = ${db_dir}/db.ippool
41 -
42 -       # ip-index:
43 -       #       Helper db index file used in multilink
44 +       #  Helper db index file used in multilink
45         ip_index = ${db_dir}/db.ipindex
46  
47 -       # override:
48 -       #       If set, the Framed-IP-Address already in the
49 -       #       reply (if any) will be discarded, and replaced
50 -       #       with a Framed-IP-Address assigned here.
51 +       #  If set, the Framed-IP-Address already in the
52 +       #  reply (if any) will be discarded, and replaced
53 +       #  ith a Framed-IP-Address assigned here.
54         override = no
55  
56 -       # maximum-timeout:
57 -       #       Specifies the maximum time in seconds that an
58 -       #       entry may be active.  If set to zero, means
59 -       #       "no timeout".  The default value is 0
60 +       #  Specifies the maximum time in seconds that an
61 +       #  entry may be active.  If set to zero, means
62 +       #  "no timeout".  The default value is 0
63         maximum_timeout = 0
64  
65 -       # key:
66 -       #       The key to use for the session database (which
67 -       #       holds the allocated ip's) normally it should
68 -       #       just be the nas ip/port (which is the default).
69 +       #  The key to use for the session database (which
70 +       #  holds the allocated ip's) normally it should
71 +       #  just be the nas ip/port (which is the default).
72         #
73 -       #       If your NAS sends the same value of NAS-Port
74 -       #       all requests, the key should be based on some
75 -       #       other attribute that is in ALL requests, AND
76 -       #       is unique to each machine needing an IP address.
77 -       #key = "%{NAS-IP-Address} %{NAS-Port}"
78 +       #  If your NAS sends the same value of NAS-Port
79 +       #  all requests, the key should be based on some
80 +       #  other attribute that is in ALL requests, AND
81 +       #  is unique to each machine needing an IP address.
82 +#      key = "%{NAS-IP-Address} %{NAS-Port}"
83  }
84 Index: freeradius-server/src/lib/valuepair.c
85 ===================================================================
86 --- freeradius-server.orig/src/lib/valuepair.c
87 +++ freeradius-server/src/lib/valuepair.c
88 @@ -109,6 +109,8 @@ VALUE_PAIR *pairalloc(TALLOC_CTX *ctx, D
89         vp->op = T_OP_EQ;
90         vp->type = VT_NONE;
91  
92 +       vp->length = da->flags.length;
93 +
94         talloc_set_destructor(vp, _pairfree);
95  
96         return vp;