Changeset 7517

Show
Ignore:
Timestamp:
03/13/09 12:45:32 (4 years ago)
Author:
ethans
Message:

Merged individiual security notifications into one all encompassing security notification. This will hopefully alleviate interface slowdown when a large deployment has multiple weak
passwords.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.5/weakpasswords/functions.inc.php

    r7481 r7517  
    2626      $weak = weakpasswords_get_users(); 
    2727      if(sizeof($weak) > 0)  { 
     28        $extended_text = _("Warning: The use of SIP/IAX passwords that are weak can allow hackers to make brute force registrations and possibly make calls through your PBX.  It is strongly recommended, you choose strong secrets.")."<br>";  
     29        $count = 0; 
    2830        foreach($weak as $details)  { 
    29           $extended_text = sprintf(_("Warning: The use of SIP/IAX passwords that are weak can allow hackers to make brute force registrations and possibly make calls through your PBX.  It is strongly recommended, you choose strong secrets. %s %s  has a weak secret of %s: %s"), $details['deviceortrunk'], $details['name'], $details['secret'], $details['message']); 
    30           $nt->add_security("weakpasswords", $details['name'], $details['deviceortrunk']." ".$details['name'].": ".$details['message'],$extended_text)
     31          $extended_text .= sprintf(_("%s %s has a weak secret of %s: %s<br>"), $details['deviceortrunk'], $details['name'], $details['secret'], $details['message']); 
     32          $count++
    3133        } 
     34        $nt->add_security("weakpasswords", "all", $count." "._("extensions/trunks has weak secrets"),$extended_text); 
     35 
    3236 
    3337      } 
  • modules/branches/2.5/weakpasswords/module.xml

    r7473 r7517  
    22  <rawname>weakpasswords</rawname> 
    33  <name>Weak Password Detection</name> 
    4   <version>2.5.0.0</version> 
     4  <version>2.5.0.1</version> 
    55  <type>setup</type> 
    66  <category>Internal Options &amp; Configuration</category> 
    77  <changelog> 
     8    *2.5.0.1* Consolidated individual security notices to a single notice with all details in extended text 
    89    *2.5.0.0* Initial release 
    910  </changelog>