Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure user and password for neo4j cluster without REST API

The version I use is neo4j-enterprise-2.2.0-M02

My question is : How can I configure a user (like add a new user, change the password ,etc) in backend or browser, instead of REST API? Can I do it via neo4j-shell? imagine that I am a DBA, it is not very convenient to do this by REST API.

Any help will be greatly appreciated!

like image 544
zxz Avatar asked Dec 25 '14 09:12

zxz


People also ask

How do I get my Neo4j username and password?

start the Neo4j server. - Open the url(http://127.0.0.1:7474/browser/) in browser. - click on Database icon from left side menu. - Find "Connected as" -> :server user add , click on and add your desire user name and password in right windows.

How do I change my Neo4j username and password?

You can use the browser instead of the API. Just go to http://localhost:7474 (or whatever IP to which the web console is bound) and you will be prompted to change the password. Once authenticated, use the command :server change-password to change the password again.

What is the default username and password for Neo4j?

The default username for a neo4j database is neo4j. The DB Password is the password for the neo4j database. The default password for a neo4j database is neo4j.

How do I access Neo4j from my browser?

Neo4j Browser is the easiest way to access a Neo4j database. To establish a connection, you enter the DBMS URL, the name of the database you want to connect, and the user credentials. You can also use the :server command to manage the connection to Neo4j.


2 Answers

You can use the browser instead of the API. Just go to http://localhost:7474 (or whatever IP to which the web console is bound) and you will be prompted to change the password. Once authenticated, use the command :server change-password to change the password again.

It is not yet possible to create multiple user accounts within the system.

You can use the command :help server to see available authentication commands.

like image 80
subvertallchris Avatar answered Sep 28 '22 01:09

subvertallchris


Although still utilizing the REST API, I'll throw the cURL option out there to anyone who doesn't have access to a web browser (AWS instance, for example):

$ curl -H "Content-Type: application/json" -X POST -d '{"password":"WHATEVER THE PASSWORD IS"}' -u neo4j:neo4j http://localhost:7474/user/neo4j/password 
like image 38
Brent Barbata Avatar answered Sep 28 '22 03:09

Brent Barbata