Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JDBC driver URI for authentication #11

Open
neo4juser opened this issue Feb 21, 2013 · 4 comments
Open

JDBC driver URI for authentication #11

neo4juser opened this issue Feb 21, 2013 · 4 comments

Comments

@neo4juser
Copy link

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

@jexp
Copy link
Collaborator

jexp commented Feb 21, 2013

They should.

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

@neo4juser
Copy link
Author

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.

@ashishsinghalnl
Copy link

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 .

@charoensri
Copy link

@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//dirver.jar before this does not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants