neo4j 登录验证配置

neo4j没有登录用户名和密码设置,需要使用插件实现,步骤如下: 
1.配置文件
配置文件conf/neo4j-server.properties中添加:

org.neo4j.server.credentials=username:password
org.neo4j.server.thirdparty_jaxrs_classes=org.neo4j.server.extension.auth=/auth
其中username、password即为登录用户名和密码
2.添加jar包
在plugins目录下,添加相应版本的authentication-extension jar包:
jar包地址
打开连接后,在最下方选择所需版本,右键复制链接地址
进入plugins目录,执行wget xxxx(复制的地址)即可下载。
3.重新启动neo4j,配置才能生效

authentication-extension jar地址:
https://github.com/neo4j-contrib/authentication-extension
posted @ 2015-02-28 23:19  世间安得两全法  阅读(2317)  评论(0编辑  收藏  举报