How can I reset unembedded freepbx password?

Discussion in 'General' started by lakat, May 15, 2009.

  1. lakat

    Joined:
    Dec 10, 2007
    Messages:
    2
    Likes Received:
    0
    Hi,
    I lost my unembedded freepbx admin password, how can I reset it?
    Tank your help!
    Tamas
     
  2. Patrick_elx

    Joined:
    Dec 14, 2008
    Messages:
    1,120
    Likes Received:
    0
    I'm not sure if that's the correct one, but with phpmyadmin if you look in asterisk database, table ampuser you will have the password.

    As I said I'm not sure of it as I'm using the same password for elastix and freepbx (yes, shame on me, I know). But I think the elastix password is in the sqllite table instead.
     
  3. rafael

    Joined:
    May 14, 2007
    Messages:
    1,454
    Likes Received:
    1
  4. rafael

    Joined:
    May 14, 2007
    Messages:
    1,454
    Likes Received:
    1
    Patrick_elx, FreePBX uses mysql and Elastix uses sqlite. So the password we have to reset here is in mysql and I should be able to do it with phpmyadmin.

    regards,

    rafael
     
  5. lakat

    Joined:
    Dec 10, 2007
    Messages:
    2
    Likes Received:
    0
    Thank your help!
    It solved my problem!
    Best Regards!
    Tamas
     
  6. Patrick_elx

    Joined:
    Dec 14, 2008
    Messages:
    1,120
    Likes Received:
    0
    freepbx is one of the only application that is still storing password in plaintext in a mysql database :-(

    I had a problem with avantfax the other day that did not accept my password (their minimum password complexity is a pain in the a...) and I had to play with an encrypted password in the database instead.
     
  7. albatroz

    Joined:
    Jan 4, 2008
    Messages:
    17
    Likes Received:
    0
    I installed Elastix and never set up a password for enembedded freepbx.
    What is the default one?
     
  8. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
  9. kola

    Joined:
    Jul 10, 2010
    Messages:
    2
    Likes Received:
    0
    Password recovery required

    I have elastix 1.6 running and I cant remember the password I set for the unembeded free pbx. Now I cant get in there.

    I have all other passwords though.

    I will appreciate all suggestions that will enable me reset this password or break in somehow.

    Thanks :S
     
  10. kola

    Joined:
    Jul 10, 2010
    Messages:
    2
    Likes Received:
    0
    Re: Password recovery required

    Oh thanks, I see now that the suggestions already exist. I will go with these.
     
  11. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    Re: Password recovery required

    Code:
     sed -i 's/AUTHTYPE=database/AUTHTYPE=none/' /etc/amportal.conf;amportal restart;echo "go change your password on the web page right now";read -p "have you done that yet?";sed -i 's/AUTHTYPE=none/AUTHTYPE=database/' /etc/amportal.conf
    a one liner that simplifies but also self documents the process
     

Share This Page