Secure Neo4j server with username and password like MySQL in one minute

Secure Neo4j server with username and password like MySQL in one minute

  • @Tsartsaris

    Posted on 2014-02-19

    ​For those of you ,  who like the old fashion way of securing a database with username and password here it goes.
    First go to Neo4j plugins folder

     cd /var/lib/neo4j/plugins

    Next make a wget to download the plugin extension from github

     wget "http://dist.neo4j.org/authentication-extension/authentication-extension-2.0.0-1.0-SNAPSHOT.jar"

    After download finishes we have to edit the "neo4j-server.properties" file and add 2 lines to tell the server to use the plugin and set the username and password.

     org.neo4j.server.credentials=username:password
    org.neo4j.server.thirdparty_jaxrs_classes=org.neo4j.server.extension.auth=/auth

    Change username and password with whatever you like (something stronger than username and password).Restart the Neo4j service

     service neo4j-service stop
    service neo4j-service start

    Go to your browser and navigate to

     http://127.0.0.1:7474/browser/

    You should have something like this.

    Secure Neo4j Server with username and password

    In php you should add to your client the username and password like this

     $client = new Everyman\Neo4j\Client();
    $client->getTransport()
          ->setAuth('username', 'password');

    Ready, set GO.

Tag-cloud

webNeo4Jphpd3jsubuntuworkcypherinternetbootstrapdevelopmentflaskpython

Social Me!

Twitter Logo LinkedIn Logo Google+ Logo Tumblr Logo