[GH-ISSUE #111] Adding Administrator from Installation Problem #86

Closed
opened 2026-02-26 09:35:44 +03:00 by kerem · 5 comments
Owner

Originally created by @jamesnogra on GitHub (Aug 12, 2014).
Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/111

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

Originally created by @jamesnogra on GitHub (Aug 12, 2014). Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/111 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
kerem closed this issue 2026-02-26 09:35:44 +03:00
Author
Owner

@frdmn commented on GitHub (Sep 1, 2014):

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?

<!-- gh-comment-id:54057274 --> @frdmn commented on GitHub (Sep 1, 2014): Same issue here! I'm currently trying to setup a Docker image ([frdmn/mail-docker](https://github.com/frdmn/mail-docker)) that ships Dovecot, Postfix, ViMbAdmin and Roundcube and just ran into the same issue. Any ideas?
Author
Owner

@barryo commented on GitHub (Sep 1, 2014):

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.

<!-- gh-comment-id:54058311 --> @barryo commented on GitHub (Sep 1, 2014): This is the first page you should see: ![screen shot 2014-09-01 at 14 15 31](https://cloud.githubusercontent.com/assets/804649/4108631/1f8af73a-31da-11e4-85c4-aedefe5d8a65.png) 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](https://cloud.githubusercontent.com/assets/804649/4108659/9e037aba-31da-11e4-9b8d-ca217b53bab3.png) Copy the security salt back and complete the registration.
Author
Owner

@frdmn commented on GitHub (Sep 1, 2014):

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?

<!-- gh-comment-id:54058615 --> @frdmn commented on GitHub (Sep 1, 2014): 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?
Author
Owner

@barryo commented on GitHub (Sep 1, 2014):

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

<!-- gh-comment-id:54058886 --> @barryo commented on GitHub (Sep 1, 2014): The values provided are random. Can you try with those and let me know?
Author
Owner

@frdmn commented on GitHub (Sep 1, 2014):

@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!

<!-- gh-comment-id:54065794 --> @frdmn commented on GitHub (Sep 1, 2014): @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!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ViMbAdmin-opensolutions#86
No description provided.