FreePBX - password sha1 change in database for admin to reset lost password

From Open CSTA
Jump to: navigation, search
  • Copy and paste this into a file - new-freepbx-password.php
<?php
  $newpassword = 'somethingNEW123';
  echo sha1($newpassword) ;
?>
  • chmod a+x new-freepbx-password.php
  • php -f new-freepbx-password.php
[root@pbxtest ~]# php -f new-freepbx-password.php 
658b27d9ab363eaab080ea65da35ceed21908fe5
  • Take this 658..... value and put it into ampusers database table
  • MySQL
use asterisk;
update ampusers set password_sha1 = '658b27d9ab363eaab080ea65da35ceed21908fe5' where username = 'admin' limit 1 ;
  • Now try logging in again with admin/somethingNEW123 -> success!!

Correct as at February 2010.

Personal tools