Skip to content

Commit 3354df6

Browse files
Add new code for commands not allowed with auth disabled (#405)
Added in neo-technology/neo4j#33717 --------- Co-authored-by: Reneta Popova <[email protected]>
1 parent 75b37fe commit 3354df6

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed

modules/ROOT/content-nav.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@
431431
**** xref:errors/gql-errors/51N27.adoc[]
432432
**** xref:errors/gql-errors/51N28.adoc[]
433433
**** xref:errors/gql-errors/51N29.adoc[]
434+
**** xref:errors/gql-errors/51N2A.adoc[]
434435
**** xref:errors/gql-errors/51N30.adoc[]
435436
**** xref:errors/gql-errors/51N31.adoc[]
436437
**** xref:errors/gql-errors/51N32.adoc[]
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
:page-role: new-2025.11
2+
= 51N2A
3+
4+
== Status description
5+
error: system configuration or operation exception - not supported with auth disabled. The command `{ <<cmd>> }` is not available with auth disabled.
6+
7+
== Explanation
8+
This error occurs when auth is disabled and a user attempts to run a command that is not available unless auth is enabled.
9+
10+
== Example scenario
11+
For example, try to change the current user's password when auth is disabled:
12+
13+
[source,cypher]
14+
----
15+
ALTER CURRENT USER SET PASSWORD FROM $oldPassword TO $newPassword
16+
----
17+
18+
You will receive the following error:
19+
20+
[source]
21+
----
22+
error: system configuration or operation exception - not supported with auth disabled. The command 'ALTER CURRENT USER SET PASSWORD' is not available with auth disabled.
23+
----
24+
25+
To fix this, either enable auth or change the password using the `ALTER USER` command:
26+
27+
[source,cypher]
28+
----
29+
ALTER USER $currentUsername SET PASSWORD $newPassword CHANGE NOT REQUIRED
30+
----
31+
32+
ifndef::backend-pdf[]
33+
[discrete.glossary]
34+
== Glossary
35+
36+
include::partial$glossary.adoc[]
37+
endif::[]

modules/ROOT/pages/errors/gql-errors/index.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1772,6 +1772,11 @@ Status description:: error: system configuration or operation exception - not su
17721772

17731773
Status description:: error: system configuration or operation exception - not supported by this server. The command `{ <<cmd>> }` must be executed on the current `LEADER` server.
17741774

1775+
[role=label--new-2025.11]
1776+
=== xref:errors/gql-errors/51N2A.adoc[51N2A]
1777+
1778+
Status description:: error: system configuration or operation exception - not supported with auth disabled. The command `{ <<cmd>> }` is not available with auth disabled.
1779+
17751780
=== xref:errors/gql-errors/51N30.adoc[51N30]
17761781

17771782
Status description:: error: system configuration or operation exception - not supported with this configuration. `{ <<item>> }` is not supported in `{ <<context>> }`.

0 commit comments

Comments
 (0)