Guest User

Untitled

a guest
Jun 21st, 2018
393
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. <section index="2.2.4" title="Recommendation" ref="RECOMMENDATION">
  2. <text>DWS strongly recommends that all authentication credentials should be configured with a strong password.</text>
  3. <text>DWS recommends that:</text>
  4. <list type="bullet">
  5. <listitem>passwords should be at least eight characters in length;</listitem>
  6. <listitem>characters in the password should not be repeated more than five times;</listitem>
  7. <listitem>passwords should include both upper case and lower case characters;</listitem>
  8. <listitem>passwords should include numbers;</listitem>
  9. <listitem>passwords should include punctuation characters;</listitem>
  10. <listitem>passwords should not include the username;</listitem>
  11. <listitem>passwords should not include a device's name, make or model;</listitem>
  12. <listitem>passwords should not be based on dictionary words.</listitem>
  13. </list>
  14. <text>Notes for Cisco Catalyst Switch devices:</text>
  15. <text>The following commands can be used on Cisco Catalyst Switch devices to set the enable password, create a local user with a password and to delete a local user:<code><command>enable secret <cmduser>password</cmduser></command>
  16. <command>username <cmduser>user</cmduser> secret <cmduser>password</cmduser></command>
  17. <command>no username <cmduser>user</cmduser></command>
  18. </code></text>
  19. </section>
  20.  
  21. <?php
  22. $xml = simplexml_load_file("toshibaconfig2.xml");
  23.  
  24. $report = $xml->xpath("//section [@index = '2.2.4'] //code");
  25.  
  26. //foreach ($report as $reports)
  27.  
  28. print_r($report);
Add Comment
Please, Sign In to add comment