Skip to content

Commit

Permalink
Moving the password page to auth (neo4j#1260)
Browse files Browse the repository at this point in the history
Co-authored-by: Reneta Popova <reneta.popova@neo4j.com>
  • Loading branch information
lidiazuin and renetapopova authored Dec 21, 2023
1 parent 79848c0 commit 27a31fa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion modules/ROOT/content-nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
** xref:configuration/ports.adoc[]
** xref:configuration/connectors.adoc[]
** xref:configuration/set-initial-password.adoc[]
** xref:configuration/password-and-user-recovery.adoc[]
** xref:configuration/plugins.adoc[Plugins]
** xref:configuration/dynamic-settings.adoc[]
** xref:configuration/configuration-settings.adoc[]
Expand Down Expand Up @@ -165,6 +164,7 @@
* xref:authentication-authorization/index.adoc[]
** xref:authentication-authorization/manage-users.adoc[]
** xref:authentication-authorization/manage-roles.adoc[]
** xref:authentication-authorization/password-and-user-recovery.adoc[]
** Manage privileges
*** xref:authentication-authorization/manage-privileges.adoc[]
*** xref:authentication-authorization/privileges-reads.adoc[]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
:description: This page describes how to reset a password to recover a user's access when their password is lost. It specifically focuses on how to recover an admin user if all the admin users have been unassigned the admin role, and how to recreate the built-in admin role if it has been dropped.
:page-aliases: configuration/password-and-user-recovery.adoc
[[password-and-user-recovery]]
= Password and user recovery
= Recover admin user and password

This page describes how to reset a password to recover a user's access when their password is lost.
It specifically focuses on how to recover an admin user if all the admin users have been unassigned the admin role, and how to recreate the built-in admin role if it has been dropped.
Expand Down Expand Up @@ -100,7 +101,7 @@ You can use a client such as xref:tools/cypher-shell.adoc[Cypher Shell] or the N
In a cluster deployment, you should complete the steps only on one of the Core servers.
====

. Complete the steps in xref:configuration/password-and-user-recovery.adoc#disable-authentication[Disable authentication] as per your deployment.
. Complete the steps in xref:authentication-authorization/password-and-user-recovery.adoc#disable-authentication[Disable authentication] as per your deployment.
. Connect to the `system` database using Cypher shell.
Alternatively, log into Neo4j Browser.
+
Expand All @@ -126,7 +127,7 @@ ALTER USER neo4j SET PASSWORD 'mynewpassword'
----
:exit;
----
. Proceed with the xref:configuration/password-and-user-recovery.adoc#post-recovery[post-recovery steps] as per your deployment.
. Proceed with the xref:authentication-authorization/password-and-user-recovery.adoc#post-recovery[post-recovery steps] as per your deployment.

[[recover-unassigned-admin-role]]
== Recover an unassigned admin role
Expand All @@ -138,7 +139,7 @@ You can use a client such as xref:tools/cypher-shell.adoc[Cypher Shell] or the N
In a cluster deployment, you should complete the steps only on one of the Core servers.
====

. Complete the steps in xref:configuration/password-and-user-recovery.adoc#disable-authentication[Disable authentication] as per your deployment.
. Complete the steps in xref:authentication-authorization/password-and-user-recovery.adoc#disable-authentication[Disable authentication] as per your deployment.
. Connect to the `system` database using Cypher shell.
Alternatively, log into Neo4j Browser.
+
Expand All @@ -164,7 +165,7 @@ GRANT ROLE admin TO neo4j
----
:exit;
----
. Proceed with the xref:configuration/password-and-user-recovery.adoc#post-recovery[post-recovery steps] as per your deployment.
. Proceed with the xref:authentication-authorization/password-and-user-recovery.adoc#post-recovery[post-recovery steps] as per your deployment.

[[recover-admin-role]]
== Recover the admin role
Expand All @@ -176,7 +177,7 @@ If you have removed the admin role from your system entirely, you can use a clie
In a cluster deployment, you should complete the steps only on one of the Core servers.
====

. Complete the steps in xref:configuration/password-and-user-recovery.adoc#disable-authentication[Disable authentication] as per your deployment.
. Complete the steps in xref:authentication-authorization/password-and-user-recovery.adoc#disable-authentication[Disable authentication] as per your deployment.
. Connect to the `system` database using Cypher shell.
Alternatively, log into Neo4j Browser.
+
Expand Down Expand Up @@ -217,7 +218,7 @@ To grant the role to a user (assuming your existing user is named `neo4j`), you
----
:exit;
----
. Proceed with the xref:configuration/password-and-user-recovery.adoc#post-recovery[post-recovery steps] as per your deployment.
. Proceed with the xref:authentication-authorization/password-and-user-recovery.adoc#post-recovery[post-recovery steps] as per your deployment.

[[post-recovery]]
== Post-recovery steps
Expand All @@ -233,7 +234,7 @@ To grant the role to a user (assuming your existing user is named `neo4j`), you
----
$ bin/neo4j stop
----
. Enable the authentication and restore your Neo4j to its original configuration (See xref:configuration/password-and-user-recovery.adoc#disable-authentication[Disable authentication]).
. Enable the authentication and restore your Neo4j to its original configuration (See xref:authentication-authorization/password-and-user-recovery.adoc#disable-authentication[Disable authentication]).
. Start Neo4j:
+
[source, shell]
Expand Down
1 change: 0 additions & 1 deletion modules/ROOT/pages/configuration/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ The topics described are:
* xref:configuration/ports.adoc[Ports] -- An overview of the ports relevant to a Neo4j installation.
* xref:configuration/connectors.adoc[Configure Neo4j connectors] -- How to configure Neo4j connectors.
* xref:configuration/set-initial-password.adoc[Set initial password] -- How to set an initial password.
* xref:configuration/password-and-user-recovery.adoc[Password and user recovery] -- How to recover after a lost admin password.
* xref:configuration/dynamic-settings.adoc[Update dynamic settings] -- How to configure certain Neo4j parameters while Neo4j is running.
* xref:configuration/configuration-settings.adoc[Configuration settings] -- A complete reference of all configuration settings.

Expand Down

0 comments on commit 27a31fa

Please sign in to comment.