Only cache CP RADIUS Auth credentials when reauthentication is enabled. Fixes #7528
(cherry picked from commit d4e42c54a2b7d9c955b11ad3034a186a73159f1a)(cherry picked from commit ed44d5fb36f1f69196417e3feab2a9d6df4a47c8)
Fix #7508 stop write_config after reset_factory_defaults
(cherry picked from commit 3dcaae882cdfdd86826be4db9b38ce04389701ec)
Work around broken wizard rules for ticket #7434
Fix comparisons for CDATA tags in config
Some length numbers here do not match the strings they are comparing with. That looks very odd.Note that:```substr($ent, 0, 5) == "text" ```will return true when $ent is "text". So actually this "works". But it returns false if $ent is "text1" "texta" etc....
Vendor MAC Retention File Consolidate
Use a single file for vendor MAC retention (vendor_mac). a) Writes only one file during boot up rather than a file for each interface. b) More efficient than numerous tiny files. c) Friendlier to write cycle sensitive media in a RAM disk disabled system.
Vendor MAC Retention File Relocate
Relocate the vendor MAC retention file to /var/db directory. a) It's more at home here with other network interface stuff. b) Friendlier to write cycle sensitive media in a RAM disk enabled system.
Vendor MAC Restore Logic
Only use the vendor MAC retention file for restoring the vendor MAC when not booting. a) During boot up the current MAC that is obtained from the system is the vendor MAC. b) Using this eliminates the inefficient need to open the vendor MAC retention file for every interface during system boot up.
Spoof MAC Var Name
Rename 'spoof_mac' var to generic 'mac_addr'. a) It may be the vendor MAC or a spoofed MAC. b) Update the comment re: not reapplying an already applied MAC.
Fix #7120: Restore vendor mac address when spoofmac is set to blank
Always add the CN as the first SAN when creating a certificate in the GUI or an automatic GUI self-signed certificate. Per RFC 2818, relying on the CN to determine the hostname is deprecated, SANs are required. Chrome 58 started enforcing this requirement. Fixes #7496
View revisions
Also available in: Atom