vikash002 / rock-php

Automatically exported from code.google.com/p/rock-php
0 stars 0 forks source link

no login possible (using mongod --auth) #147

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. start mongod with --auth
2. configure config.php like this:
$MONGO["servers"][$i]["mongo_name"] = "Localhost";//mongo server name
$MONGO["servers"][$i]["mongo_host"] = "127.0.0.1";//mongo host
$MONGO["servers"][$i]["mongo_port"] = "27017";//mongo port
$MONGO["servers"][$i]["mongo_timeout"] = 30;//mongo connection timeout
//$MONGO["servers"][$i]["mongo_db"] = "";//default mongo db to connect, works 
only if mongo_auth=false
//$MONGO["servers"][$i]["mongo_user"] = "";//mongo authentication user name, 
works only if mongo_auth=false
//$MONGO["servers"][$i]["mongo_pass"] = "";//mongo authentication password, 
works only if mongo_auth=false
$MONGO["servers"][$i]["mongo_auth"] = true;//enable mongo authentication?
$MONGO["servers"][$i]["control_auth"] = false;//enable control users, works 
only if mongo_auth=false

What is the expected output? 
Successful login with (admin) user (user/pass from mongodb) / list of all 
databases and collections

What do you see instead?
nothing - login fails without error (page can't be opened)

RockMongo Version: 
- 1.1.0

Operation System:
- Linux (Debian Lenny) running MongoDB / RockMongo

PHP Version
- 5.2.6

php_mongo Version
- 1.2.0

MongoDB version
- 1.8.2

Connecting to the database via other 3rd party frameworks on client side is 
working as intended (authorization as well as inserts/updates/removes). 

Original issue reported on code.google.com by carsten....@gmail.com on 4 Jul 2011 at 7:20

GoogleCodeExporter commented 9 years ago
it seems to be the problem while using the latest php_mongo extension version
everything works fine with version 1.1.4 of the extension

Original comment by pcman...@gmail.com on 13 Jul 2011 at 6:26

GoogleCodeExporter commented 9 years ago
Still broken using the 1.2.1 version of php_mongo

Original comment by d.f.sm...@gmail.com on 19 Jul 2011 at 10:35

GoogleCodeExporter commented 9 years ago
Ugh! Having this same problem as well since I last updated mongodb to the most 
recent php extention.

Original comment by rkr...@phunware.com on 28 Jul 2011 at 11:00

GoogleCodeExporter commented 9 years ago
same here. (probably after database was corrupted and had been repaired)

i've changed in config.php:

$MONGO["servers"][$i]["control_auth"] = true;
to:
$MONGO["servers"][$i]["control_auth"] = false;

Original comment by hartmann...@gmail.com on 2 Sep 2011 at 2:34

GoogleCodeExporter commented 9 years ago
PLEASE FIX THIS!!!!!

Original comment by anth...@cliklabs.com on 14 Dec 2011 at 2:34

GoogleCodeExporter commented 9 years ago
Hi, 
1) please send me the PHP or Web Server (Nginx or Apache) error log 
2) try to update the php_mongo extension

if the problem still exists, tell me your configuration, and i will have a test.

Original comment by iwind....@gmail.com on 21 Feb 2012 at 8:53

GoogleCodeExporter commented 9 years ago
issue still exists on v1.1.1

have attached my phpinfo output

no entries in error logs

Original comment by alchim...@gmail.com on 5 Sep 2012 at 9:00

Attachments:

GoogleCodeExporter commented 9 years ago
Same here. Centos 6, nginx, php 5.3, pecl/mongo 1.2.12. 

Original comment by chawkin...@gmail.com on 24 Sep 2012 at 5:05