From 9dc85939e92d21582478d8c078f5de6d5b95ce44 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Wed, 20 Nov 2019 18:13:41 +0100 Subject: [PATCH 1/2] LDAP: explain flags for show-remnants Signed-off-by: Arthur Schiwon --- admin_manual/configuration_user/user_auth_ldap_cleanup.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/admin_manual/configuration_user/user_auth_ldap_cleanup.rst b/admin_manual/configuration_user/user_auth_ldap_cleanup.rst index af2ce07abf5..cb1e0534560 100644 --- a/admin_manual/configuration_user/user_auth_ldap_cleanup.rst +++ b/admin_manual/configuration_user/user_auth_ldap_cleanup.rst @@ -59,6 +59,13 @@ This example shows what the table of users marked as ``deleted`` looks like:: | aaliyah_kunze | aaliyah kunze | aaliyah_kunze | uid=aaliyah_kunze,ou=people,dc=com | +-----------------+-----------------+------------------+--------------------------------------+ +Following flags can be specified additionally: + +*--short-date*: formats the dates for ``Last login`` and ``Detected on`` in a short Y-m-d format (e.g. 2019-01-14) + +*--json--*: instead of a table, the output is json-encoded. This makes it easy to process the data programmatically. + + Then you can run ``sudo -u www-data php occ user:delete aaliyah_brown`` to delete user aaliyah_brown. You must use the user's Nextcloud name. From d97676e86b86a02d10f031003bd7d8e5acba48b5 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Wed, 20 Nov 2019 18:18:27 +0100 Subject: [PATCH 2/2] LDAP: inform about cleanUpJobChunkSize setting Signed-off-by: Arthur Schiwon --- admin_manual/configuration_user/user_auth_ldap_cleanup.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/admin_manual/configuration_user/user_auth_ldap_cleanup.rst b/admin_manual/configuration_user/user_auth_ldap_cleanup.rst index cb1e0534560..b63ef97af11 100644 --- a/admin_manual/configuration_user/user_auth_ldap_cleanup.rst +++ b/admin_manual/configuration_user/user_auth_ldap_cleanup.rst @@ -33,7 +33,12 @@ users and your ``ldapUserCleanupInterval`` is 20 minutes, the process will examine the first 50 users, then 20 minutes later the next 50 users, and 20 minutes later the next 50, and so on. -There are two ``occ`` commands to use for examining a table of users marked as +The amount of users to check can be set to a custom value via occ command. The +following example sets it to 300: + +``sudo -u www-data php occ config:app:set --value=300 user_ldap cleanUpJobChunkSize`` + +There are two ``occ`` commands to use for examining a table of users marked as deleted, and then manually deleting them. The ``occ`` command is in your Nextcloud directory, for example ``/var/www/nextcloud/occ``, and it must be run as your HTTP user. To learn more about ``occ``, see