neo4j-jdbc icon indicating copy to clipboard operation
neo4j-jdbc copied to clipboard

JDBC driver URI for authentication

Open neo4juser opened this issue 12 years ago • 4 comments

Neo4j server configured to use neo4j-contrib / authentication-extension.

When trying to use JDBC uri "jdbc:neo4j://localhost:7474/?user=myuser&password=admin" Error thrown is "401 Unauthorized"

When the authenctication is removed , jdbc driver works fine.

Does authentication-extension and JDBC driver work togther?

-Sam

neo4juser avatar Feb 21 '13 19:02 neo4juser

They should.

If you access webadmin does the basic-auth dialog ask exactly for those two values?

jexp avatar Feb 21 '13 20:02 jexp

Neo4j version 1.8

On accessing webadmin it does asks for basic-auth dialog. On entering right credentials it allows access. But jdbc with credentials fail.. here is an sample groovy code -

import java.io.File import groovy.sql.Sql

def srcCon = Sql.newInstance('jdbc:neo4j://myhost:7474/', 'admin', 'admin123', 'org.neo4j.jdbc.Driver')

srcCon.eachRow("START n=node(1) RETURN n.name as name") { println "${it.name}" }

The same code above works if authentication is disabled.

neo4juser avatar Feb 22 '13 01:02 neo4juser

Hi Guys ,I am executing pega.yaml file .but getting below error .

helm install mypega pega/pega --namespace mypega --values pega.yaml Error: failed to parse pega.yaml: error converting YAML to JSON: yaml: line 35: did not find expected hexdecimal number

I have given uri as : driverUri: "C:\Users\singh610\Downloads/ojdbc7.jar" .please suggest me what to provide here ? what hexadecimal value it is expecting

please help me on this .

ashishsinghalnl avatar Jan 25 '21 17:01 ashishsinghalnl

@ashishsinghalnl - try with the actual URL e.g. driverUri: "https://jdbc.postgresql.org/download/postgresql-42.2.19.jar" I think I tried with the file URI, e.g. file://c/<PATH>/dirver.jar before this does not work.

charoensri avatar Apr 05 '21 05:04 charoensri