0 votes

I am using ClearOS 6.6.0 Community Edition.

From cause to effect:

- Installing hostapd created mon.wlan0
- /usr/sbin/network --get-lan-ips returns "PHP warning: ifconfig_flags: No such device - /usr/clearos/apps/network/libraries/Iface_Manager.php (469)"
- slapd appears to take the first line returned from the above command to get the list of ips to bind to. Not surprisingly, it can't bind to the warning message.
- slapd fails
- webconfig reports "Account system is offline."

I looked in the referenced php file, at line 469. The line is
$flags = @ifconfig_flags($this->ifconfig_ctx, $device);

I changed to line to
if (substr($device, 0, 3) <> "mon") { $flags = @ifconfig_flags($this->ifconfig_ctx, $device);

it now works. However, I am not much of a php programmer, I haven't even tried to look over what else Iface_manager.php might be trying to do, and I'm certain there is a "better" solution. Hoping you folks might implement it, or provide me some guidance how to properly avoid the issue, rather than my kludge.
Tuesday, December 01 2015, 06:03 AM
Share this post:
Responses (1)
  • Accepted Answer

    Tuesday, December 01 2015, 06:04 AM - #Permalink
    0 votes
    No 'edit' function but clearly I mis-typed a little. Obviously the if { is closed with a } and the $rawlist line beneath it is also included in the if.
    The reply is currently minimized Show
Your Reply