id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,confirmation,distro,engine,distro_ver,engine_version,svn_rev
3302,Random password generator for extensions and devices.,itiliti,p_lindheimer,There has been a lot of security questions raised regarding the terrible habits of people setting their extension or device password to be ing their extension_ or 1234_ etc. \r\n\r\nIt then struck me that there should be a password gebnerator in freepbx that will generate a password automatically if you dont enter one. Or perhaps you could turn that off in Amportal config.\r\n\r\nI dug up a little PHP code on the net and found this that might be able to be used to generate this for Freepbx. but I think it would be a huge hit with people. Especially with some of the auto provisioning that is going on with some of the IP endpoints out there now.\r\n\r\nAnyways_ we absolutely love freepbx_ and especially how stable and reliable it is. But I think this would be an awesome feature that keeps us unimaginative from have to think of extension passwords everytime we install a server. \r\n\r\n\r\n{{{\r\n<?php\r\n\r\nfunction random_string($length = 8_ $chars = null) {\r\n    if( empty($chars) ) $chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";\r\n    while( strlen($s) < $length) {\r\n        $s .= substr($chars_ rand(0_ strlen($chars) - 1)_ 1);\r\n    }\r\n    return $s;\r\n}\r\n\r\n// Example\r\necho random_string(10);\r\n\r\n?>\r\n}}}\r\n,Feature Requests,new,minor,2.11,Core - Users/Devices,,,,,Confirmed,,All,,,
