View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
05721Bug reportsAuthenticationpublic2012-03-03 02:25
Reporterjhubbs Assigned Toc_schmitz  
PrioritynormalSeveritypartial_block 
Status closedResolutionfixed 
Product Version1.92RC3 
Fixed in Version1.91+ 
Summary05721: Login with admin and deafault password doesn't work
Description

http://www.limesurvey.org/en/forum/installation-a-update-issues/73190-192-rc3-adminpassword-doesnt-work

After installation of LimeSurvey, I can't get logged using
username: admin
password: password

Steps To Reproduce

I did the following:

  • blew away my existing installation
  • re-extracted 1.92RC3
  • blew away the existing database from postgresql
  • patched the create-postgresql.sql to fix the previous errors.
  • modified the config.php with the proper settings
  • ran the limesurvey/admin/install script
  • moved the install directory

I attempt to login using the config.php using the admin user and the default password that I set. I've attempted this on chrome/firefox/safari. It doesn't work.

Additional Information

Possibly related to bug 05710

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)12204
I will donate to the project if issue is resolvedNo
Browserall
Database type & versionPostgresql 9.1.2
Server OS (if known)Fedora 16
Webserver software & version (if known)Apache 2.2.21
PHP Version5.3.9

Relationships

duplicate of 05710 closedc_schmitz Installation of limesurvey fails for postgresql database. 

Users monitoring this issue

There are no users monitoring this issue.

Activities

Mazi

Mazi

2012-01-30 15:27

updater   ~17055

Can this be a Postgres issue? Because at MySQL it seems to work fine?!

jhubbs, can you attach an SQL dump of the database?

jhubbs

jhubbs

2012-01-30 16:57

reporter   ~17056

It probably is a Postgresql. It was mentioned that the tables had been modified and that perhaps the code hadn't been audited for case sensitivity for the various changes.
http://www.limesurvey.org/forum/installation-a-update-issues/73169-192-rc3-create-database-failures-during-install?lang=en#73189

jhubbs

jhubbs

2012-01-30 19:08

reporter   ~17091

I don't understand how this is a duplicate of 5710? It might be related but the file that I attached in 5710 doesn't fix this problem.

c_schmitz

c_schmitz

2012-01-30 21:16

administrator   ~17093

Sorry, but we did not use your file. I fixed it before seeing your patch - and it also fixed this one.

jhubbs

jhubbs

2012-01-31 15:36

reporter   ~17103

I'm running the development tree. It's not fixed
Repo: https://limesurvey.svn.sourceforge.net/svnroot/limesurvey/source/limesurvey_dev
Revision: 12263

c_schmitz

c_schmitz

2012-02-06 13:58

administrator   ~17241

It works just fine here. Did you try to install on a clean, newly created database?

jhubbs

jhubbs

2012-02-06 14:21

reporter   ~17244

Yes. Part of my process is to update the dev tree checkout I have and drop/create database.

c_schmitz

c_schmitz

2012-02-06 22:14

administrator   ~17265

Well, I just tested it again here, works just fine. No matter if I do it on Postgres 8.x or 9.x. So unless you give me access to such a system to debug I am afraid I can't do anything and have to close this issue.

jhubbs

jhubbs

2012-02-07 03:06

reporter   ~17269

I can provide you with access since it's running in a VM. I'll need an email.

Is there anything about installation/configuration that the wiki instructions haven't documented?

Mazi

Mazi

2012-02-07 09:24

updater   ~17273

jhubbs, you can send the details to Carsten using carsten.schmitz(at)limesurvey.org

c_schmitz

c_schmitz

2012-02-07 12:10

administrator   ~17275

Yep :-)

c_schmitz

c_schmitz

2012-02-27 01:31

administrator   ~17661

jhubbs, did you send anything? Because I did not get anything.

jhubbs

jhubbs

2012-02-28 17:10

reporter   ~17680

I sent an email Feb 2 around 18:51 UTC to the address listed on the web page which matches Mazi's post. I'll upgrade to the latest and re-send the login info again.

jhubbs

jhubbs

2012-02-28 20:58

reporter   ~17681

I went through the usercontrol.php file and pulled out the password comparison. When I dumped them to the output I received the following output. As you can see the two values are drastically different. Is there encoding value that I didn't set properly somewhere? The database is set for UTF-8. The database setup files in the limesurvey files are using UTF8 for encoding.

Using the SHA256::hashing($_POST['password'])
5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8

from the database
5653838343839386461323830343731353164306535366638646336323932373733363033643064366161626264643632613131656637323164313534326438

c_schmitz

c_schmitz

2012-02-29 00:40

administrator   ~17684

Run the following SQL command

ALTER DATABASE limesurvey SET bytea_output='escape';

and check if it fixes your problem.

This is usually executed automatically in createdb.php , around line 42

if($createdbtype=='postgres' && $connect->pgVersion=='9') 
{
    $connect->execute("ALTER DATABASE {$dbname} SET bytea_output='escape';");
}

I guess it is no executed on your database during installation. Please find out why by dumping $connect->pgVersion

jhubbs

jhubbs

2012-02-29 15:20

reporter   ~17690

$connect->pgVersion == '9.1' on my setup. I modified the file to add a check for 9.1. I'm able to login as admin now.

Thank you for the assistance.

c_schmitz

c_schmitz

2012-03-03 02:25

administrator   ~17729

1.92 released

Issue History

Date Modified Username Field Change
2012-01-30 15:16 jhubbs New Issue
2012-01-30 15:26 Mazi Assigned To => c_schmitz
2012-01-30 15:26 Mazi Status new => assigned
2012-01-30 15:27 Mazi Note Added: 17055
2012-01-30 15:27 Mazi Status assigned => feedback
2012-01-30 16:53 jhubbs File Added: limesurvey_192rc3_pgdump.sql.gz
2012-01-30 16:57 jhubbs Note Added: 17056
2012-01-30 16:57 jhubbs Status feedback => assigned
2012-01-30 18:39 c_schmitz Relationship added duplicate of 05710
2012-01-30 18:39 c_schmitz Status assigned => resolved
2012-01-30 18:39 c_schmitz Resolution open => duplicate
2012-01-30 18:40 c_schmitz File Deleted: limesurvey_192rc3_pgdump.sql.gz
2012-01-30 18:40 c_schmitz Status resolved => closed
2012-01-30 19:08 jhubbs Note Added: 17091
2012-01-30 19:08 jhubbs Status closed => feedback
2012-01-30 19:08 jhubbs Resolution duplicate => reopened
2012-01-30 21:16 c_schmitz Note Added: 17093
2012-01-30 21:16 c_schmitz Status feedback => closed
2012-01-30 21:16 c_schmitz Resolution reopened => duplicate
2012-01-31 15:36 jhubbs Note Added: 17103
2012-01-31 15:36 jhubbs Status closed => feedback
2012-01-31 15:36 jhubbs Resolution duplicate => reopened
2012-02-06 13:58 c_schmitz Note Added: 17241
2012-02-06 14:21 jhubbs Note Added: 17244
2012-02-06 14:21 jhubbs Status feedback => assigned
2012-02-06 17:43 c_schmitz Additional Information Updated
2012-02-06 22:14 c_schmitz Note Added: 17265
2012-02-06 22:14 c_schmitz Status assigned => feedback
2012-02-07 03:06 jhubbs Note Added: 17269
2012-02-07 03:06 jhubbs Status feedback => assigned
2012-02-07 09:24 Mazi Note Added: 17273
2012-02-07 09:24 Mazi Status assigned => feedback
2012-02-07 12:10 c_schmitz Note Added: 17275
2012-02-27 01:31 c_schmitz Note Added: 17661
2012-02-28 17:10 jhubbs Note Added: 17680
2012-02-28 17:10 jhubbs Status feedback => assigned
2012-02-28 20:58 jhubbs Note Added: 17681
2012-02-29 00:40 c_schmitz Note Added: 17684
2012-02-29 00:41 c_schmitz Status assigned => feedback
2012-02-29 15:20 jhubbs Note Added: 17690
2012-02-29 15:20 jhubbs Status feedback => assigned
2012-03-01 09:27 c_schmitz Status assigned => resolved
2012-03-01 09:27 c_schmitz Fixed in Version => 1.91+
2012-03-01 09:27 c_schmitz Resolution reopened => fixed
2012-03-03 02:25 c_schmitz Note Added: 17729
2012-03-03 02:25 c_schmitz Status resolved => closed