cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Authentication Methods supported by NEo4j

What are the Authentication method supported by neo4j?
1] Can we create the UTF8 user and password in Neo4j ?

19 REPLIES 19

jggomez
Graph Voyager

Hi, you can use User and Password from a driver and LDAP

I believe Neo4j is fully UTF8, see reference quote below with notes on client locale

"even though Neo4j is UTF-8 (and fully capable of handling German umlauts), if you run the same query on a client that runs English locale and on a client that runs German locale, you’ll end up with different results."

Reference: Welcome to the Dark Side: Neo4j Worst Practices

Thanks For reply. My question is "what is the database query to create the "UTF8" user ?

Query would be helpful here.

See docs here

Administration : Users and Roles

(note version selection for documentation is a drop down menu in top right)

Note there are additional ways, some of which are being deprecated going forward

e.g. Deprecated security procedures

Thanks fro the Reply Joel. I am using Neo4j 3,5.14 and there " CREATE USER jake IF NOT EXISTS SET PASSWORD 'xyz'" is not working.
I have created user with " CALL dbms.security.createUser" but when i tried to create UTF-8 user with this getting below error.

neo4j> CALL dbms.security.createUser('ヨゲシュ', 'ヨゲシュ', true);
Username 'ヨゲシュ' contains illegal characters. Use ascii characters that are not ',', ':' or whitespaces.
neo4j>

I checked that the config file has "UTF-8" encoding parameter.

please do let me know your thought on this.

Hello @deshmukh.yogesh136 and sorry for the delay

It's not because you are using UTF-8 encoding that you will can use every characters available around the world. But you should be able to use characters from this list https://www.utf8-chartable.de/

Moreover, I advice you to use alias in your case, for example instead of ヨゲシュ, use USER_1 or something like this

Regards,
Cobra

Thanks Cobra for the information. So dose it means neo4j dint support Japanese character ?

I tried the character set provided by you above comment and tried to create the user but still getting same issue.

CALL dbms.security.createUser('test¥ä1','abc123',true);

Username 'test¥ä1' contains illegal characters. Use ascii characters that are not ',', ':' or whitespaces.

According to this article, you can store japanese values:

But I don't think you can create users or databases with non utf-8 characters

Thanks Cobra. That's what i want confirm that i can't create database user or db name with UTF-8 character like Japanese in Neo4j.

There is no way i can create Neo4j db user with UTF-8 character correct ?

You can create databases and users with UTF-8 characters but japanese characters are not encoded in UTF-8.

The error is pretty clear:

Username 'test¥ä1' contains illegal characters. Use ascii characters that are not ',', ':' or whitespaces.

Use ASCII characters from this table but not , and not :

How can i create UTF-8 user by using only ASCII character ?

Use only ASCII characters.

Thanks cobra. Let me go through once.

One last question ..what if customer is Japanese then how they create the users in Neo4j with Japanese language ?

You will have to translate them into ASCII characters