opensolutions / ViMbAdmin

Virtual Mailbox Administration
http://www.vimbadmin.net/
GNU General Public License v3.0
485 stars 101 forks source link

Adding Administrator from Installation Problem #111

Closed jamesnogra closed 10 years ago

jamesnogra commented 10 years ago

When I browse to http://www.MY-WEBSITE.com/vimbadmin, I am redirected to http://www.MY-WEBSITE.com/vimbadmin/auth/setup. I can see the Installation form Step1, Step2, etc. But when I try to fill the registration form, Salt, Username, and Password and then I click "Activate my Account", I am redirected back to the same page (http://www.MY-WEBSITE.com/vimbadmin/auth/setup) telling me to add an Admin. When I looked at the vimbadmin database in MySQL, no admin was added.

What am I doing wrong here? I have the correct MySQL database name, username, password, and host. I am using PHP 5.5.9, Apache 2.4.7 and MySQL 5.5.38. By the way, I am using ViMbAdmin V3

frdmn commented 10 years ago

Same issue here!

I'm currently trying to setup a Docker image (frdmn/mail-docker) that ships Dovecot, Postfix, ViMbAdmin and Roundcube and just ran into the same issue.

Any ideas?

barryo commented 10 years ago

This is the first page you should see:

screen shot 2014-09-01 at 14 15 31

You need to complete step one by copying the salts to the config file. I.e. copy:

securitysalt                       = "Bbi;qJQ=]-Lt9}\FN;nFjQX@V%k+XadD2v~\.+yd:zgEM/7~zlMt$)[!<Ofr>7_("
resources.auth.oss.rememberme.salt = "4#0g,j2QJU.UZ*?/4pv80GR;}7h[hy|3dSlsI!N>H}$?Vjw&S9zT17EpBOWaZx3J"
defaults.mailbox.password_salt     = "I_a)wER#G;lXG$FBNKtT9cz\Zv4@6H*t{E~1Un8vg:I\fC+jir%cK(LkFp,bp9S;"

to application/configs/application.ini and replace the blank strings already there.

NB: There are empty placeholders WHICH MUST BE REMOVED - http://git.io/p2asEA

You can then complete step 1 immediately (with the key prefilled) or refresh to confirm your application.ini is correct - where you'll find:

screen shot 2014-09-01 at 14 18 57

Copy the security salt back and complete the registration.

frdmn commented 10 years ago

Thanks for the quick reply, @barryo. However: odd. Here's how my application.ini looks like at the moment:

# cat application/configs/application.ini | grep salt
securitysalt = "HFomEnnos3yPlWLV"
resources.auth.oss.rememberme.salt = "dkGMe2cMfNNPN1ND"
defaults.mailbox.password_salt = "Gh4d1kq2qOJq8Wi3"

Is that too little?

barryo commented 10 years ago

The values provided are random. Can you try with those and let me know?

frdmn commented 10 years ago

@barryo Okay, that worked. I could narrow it down (a bit):

Tried with a 64 byte alpha numeric string = Nay! 32 byte special characters = Nay! 64 byte special + alpha numeric = Yay!

Thanks for the help!