neo4j-contrib / authentication-extension

Neo4j Server Auth Extension
72 stars 28 forks source link

Plugin was installed according to instruction, but neo4j shutdown immidiate #35

Open korel-san opened 9 years ago

korel-san commented 9 years ago

Started neo4j (without plugin)

➜  neo4j-community-2.2.2  ./bin/neo4j start                                         
Starting Neo4j Server...WARNING: not changing user
process [15276]... waiting for server to be ready...... OK.
http://localhost:7474/ is ready.

Set username/password

:server change-password
neo4j/neo4j

Stopped neo4j

➜  neo4j-community-2.2.2  ./bin/neo4j stop 
Stopping Neo4j Server [15276].... done

Copied plugin

➜  neo4j-community-2.2.2  ls -la plugins 
total 40
drwxr-xr-x@  4 korel  staff    136 Jul 14 16:50 .
drwxr-xr-x@ 14 korel  staff    476 Jun  8 22:58 ..
-rw-r--r--@  1 korel  staff    273 May 21 16:15 README.txt
-rw-r--r--@  1 korel  staff  14643 Jul 14 16:50 authentication-extension-2.1.5-1.0-SNAPSHOT.jar 

Changed conf/neo4j-server.properties file

conf/neo4j-server.properties

Started neo4j

➜  neo4j-community-2.2.2  ./bin/neo4j start
Starting Neo4j Server...WARNING: not changing user
process [15101]... waiting for server to be ready...... Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.

Viewed console.log

➜  neo4j-community-2.2.2  tail -f ./data/log/console.log :
2015-07-14 13:53:48.531+0000 INFO  [API] Setting startup timeout to: 120000ms based on 120000
2015-07-14 13:53:50.785+0000 INFO  [API] Successfully started database
2015-07-14 13:53:50.861+0000 INFO  [API] Starting HTTP on port :7474 with 4 threads available
2015-07-14 13:53:51.083+0000 INFO  [API] Enabling HTTPS on port :7473
2015-07-14 13:53:51.198+0000 INFO  [API] Successfully shutdown Neo4j Server.
2015-07-14 13:53:51.228+0000 INFO  [API] Successfully stopped database

Could you help me with it?

jexp commented 9 years ago

You don't need it for Neo4j 2.2 as it comes with auth out of the box.

The plugin was never updated for Neo4j 2.2

Michael

Am 14.07.2015 um 16:13 schrieb Alexandra notifications@github.com:

Started neo4j (without plugin)

➜ neo4j-community-2.2.2 ./bin/neo4j start
Starting Neo4j Server...WARNING: not changing user process [15276]... waiting for server to be ready...... OK. http://localhost:7474/ is ready. Set username/password

:server change-password neo4j/neo4j Stopped neo4j

➜ neo4j-community-2.2.2 ./bin/neo4j stop Stopping Neo4j Server [15276].... done Copied plugin

➜ neo4j-community-2.2.2 ls -la plugins total 40 drwxr-xr-x@ 4 korel staff 136 Jul 14 16:50 . drwxr-xr-x@ 14 korel staff 476 Jun 8 22:58 .. -rw-r--r--@ 1 korel staff 273 May 21 16:15 README.txt -rw-r--r--@ 1 korel staff 14643 Jul 14 16:50 authentication-extension-2.1.5-1.0-SNAPSHOT.jar Changed conf/neo4j-server.properties file

https://camo.githubusercontent.com/06850c836c632bb079d5997e90d07a68c5af0a61/687474703a2f2f74616b652e6d732f76366a3459 Started neo4j

➜ neo4j-community-2.2.2 ./bin/neo4j start Starting Neo4j Server...WARNING: not changing user process [15101]... waiting for server to be ready...... Failed to start within 120 seconds. Neo4j Server may have failed to start, please check the logs. Viewed console.log

➜ neo4j-community-2.2.2 tail -f ./data/log/console.log : 2015-07-14 13:53:48.531+0000 INFO [API] Setting startup timeout to: 120000ms based on 120000 2015-07-14 13:53:50.785+0000 INFO [API] Successfully started database 2015-07-14 13:53:50.861+0000 INFO [API] Starting HTTP on port :7474 with 4 threads available 2015-07-14 13:53:51.083+0000 INFO [API] Enabling HTTPS on port :7473 2015-07-14 13:53:51.198+0000 INFO [API] Successfully shutdown Neo4j Server. 2015-07-14 13:53:51.228+0000 INFO [API] Successfully stopped database Could you help me with it?

— Reply to this email directly or view it on GitHub https://github.com/neo4j-contrib/authentication-extension/issues/35.

korel-san commented 9 years ago

@jexp Thanks for you reply! Ok, then, if i understand you correctly, i have to get data from url:

curl --user username:password http://localhost:7474/auth/list

right? but nothing happens.. Have you somewhere the manual for creating new users with permissions for neo4j 2.2?

jexp commented 9 years ago

Nope that was the API for this extension. The auth implemented is not related to this extension

Von meinem iPhone gesendet

Am 16.07.2015 um 17:05 schrieb Alexandra notifications@github.com:

@jexp Thanks for you reply! Ok, then, if i understand you correctly, i have to get data from url:

curl --user username:password http://localhost:7474/auth/list right? but nothing happens..

— Reply to this email directly or view it on GitHub.

korel-san commented 9 years ago

@jexp I'm not sure I understand you correctly. Could you tell me whether any way for creating read-only user (+ view the users list with permissions) or not (neo4j 2.2.2)? And if yes, could you give me a link with instructions how it could be possible (without installing this extension)

jexp commented 9 years ago

No, unfortunately not.

jexp commented 9 years ago

There is a community based extension for Neo4j 2.2 from Robin Bramley that allows you to add users:

https://leanjavaengineering.wordpress.com/2015/04/16/neo4j-2-2-authentication-and-adding-extra-users/