Skip to content

Commit 1ee2165

Browse files
authored
Explain how to set chunk size for LDAP's clean up checker (#1708)
Explain how to set chunk size for LDAP's clean up checker
2 parents 7f678c7 + 84afc7c commit 1ee2165

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

admin_manual/configuration_user/user_auth_ldap_cleanup.rst

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@ users and your ``ldapUserCleanupInterval`` is 20 minutes, the process will
3333
examine the first 50 users, then 20 minutes later the next 50 users, and 20
3434
minutes later the next 50, and so on.
3535

36-
There are two ``occ`` commands to use for examining a table of users marked as
36+
The amount of users to check can be set to a custom value via occ command. The
37+
following example sets it to 300:
38+
39+
``sudo -u www-data php occ config:app:set --value=300 user_ldap cleanUpJobChunkSize``
40+
41+
There are two ``occ`` commands to use for examining a table of users marked as
3742
deleted, and then manually deleting them. The ``occ`` command is in your
3843
Nextcloud directory, for example ``/var/www/nextcloud/occ``, and it must be run as
3944
your HTTP user. To learn more about ``occ``, see
@@ -59,6 +64,13 @@ This example shows what the table of users marked as ``deleted`` looks like::
5964
| aaliyah_kunze | aaliyah kunze | aaliyah_kunze | uid=aaliyah_kunze,ou=people,dc=com |
6065
+-----------------+-----------------+------------------+--------------------------------------+
6166

67+
Following flags can be specified additionally:
68+
69+
*--short-date*: formats the dates for ``Last login`` and ``Detected on`` in a short Y-m-d format (e.g. 2019-01-14)
70+
71+
*--json--*: instead of a table, the output is json-encoded. This makes it easy to process the data programmatically.
72+
73+
6274
Then you can run ``sudo -u www-data php occ user:delete aaliyah_brown`` to delete
6375
user aaliyah_brown. You must use the user's Nextcloud name.
6476

0 commit comments

Comments
 (0)