# Disabling LDAP User Cleanup

**URL:** <https://help.nextcloud.com/t/disabling-ldap-user-cleanup/12213>\
**Category:** ℹ️ Support\
**Created:** [May 5, 2017, 2:10pm UTC](https://help.nextcloud.com/t/disabling-ldap-user-cleanup/12213 "2017-05-05T14:10:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrMoint](https://help.nextcloud.com/user_avatar/help.nextcloud.com/mrmoint/32/3891_2.png) [@MrMoint](https://help.nextcloud.com/u/MrMoint)\
**Post date:** [May 5, 2017, 2:10pm UTC](https://help.nextcloud.com/t/disabling-ldap-user-cleanup/12213/1 "2017-05-05T14:10:46Z")

</div>

Hi,

I was wondering, how to disable the LDAP User Cleanup?  
According to docs, there are two prerequisites to make it work:

> 1. Set `ldapUserCleanupInterval` in `config.php` to your desired check  
> interval in minutes. The default is 51 minutes.

> 2…

So, if `ldapUserCleanupInterval` is not set in config.php it’s disabled?  
If I’m wrong, please enlighten me how to disable it 🙂

Thnx!

---

<div class="post-metadata">

**Author:** ![MrMoint](https://help.nextcloud.com/user_avatar/help.nextcloud.com/mrmoint/32/3891_2.png) [@MrMoint](https://help.nextcloud.com/u/MrMoint)\
**Post date:** [August 2, 2017, 1:20pm UTC](https://help.nextcloud.com/t/disabling-ldap-user-cleanup/12213/2 "2017-08-02T13:20:52Z")

</div>

I did some tests on this topic, but unfortunately I somehow wasn’t able to disable the LDAP User Cleanup at all.  
I really need some advice on

.) whether it’s possible to disable the LDAP User Cleanup completely  
.) and if it’s possible, how to disable it

I know, that this sounds a bit like a weird request, but I “inherited” this “problem” from another contractor who got fired by my customer a few months ago.

Thanks a lot for any tips/hints/advice on this issue!!

---

<div class="post-metadata">

**Author:** ![terry\_tibbles](https://help.nextcloud.com/letter_avatar/terry_tibbles/32/6_22734026db12803ebb3e059622ac3534.png) [@terry\_tibbles](https://help.nextcloud.com/u/terry_tibbles)\
**Post date:** [August 3, 2017, 1:37am UTC](https://help.nextcloud.com/t/disabling-ldap-user-cleanup/12213/3 "2017-08-03T01:37:49Z")

</div>

Can you explain why you need to disable it? It says in the documentation that you can set it to ‘0’ to disable it:

[https://docs.nextcloud.com/server/12/admin\_manual/configuration\_server/config\_sample\_php\_parameters.html?highlight=ldapusercleanupinterval#ldap](https://docs.nextcloud.com/server/12/admin_manual/configuration_server/config_sample_php_parameters.html?highlight=ldapusercleanupinterval#ldap)

The other option is just to disable their account in LDAP (but not delete it).

---

<div class="post-metadata">

**Author:** ![MrMoint](https://help.nextcloud.com/user_avatar/help.nextcloud.com/mrmoint/32/3891_2.png) [@MrMoint](https://help.nextcloud.com/u/MrMoint)\
**Post date:** [August 4, 2017, 1:09pm UTC](https://help.nextcloud.com/t/disabling-ldap-user-cleanup/12213/4 "2017-08-04T13:09:10Z")

</div>

Thanks a lot for the hint - I was just looking at [this part of the admin manual](https://docs.nextcloud.com/server/12/admin_manual/configuration_user/user_auth_ldap_cleanup.html).

Guess this makes it a classic case of “PEBKAC” on my side 😉

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 2, 2024, 2:06pm UTC](https://help.nextcloud.com/t/disabling-ldap-user-cleanup/12213/5 "2024-12-02T14:06:56Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 4, 2024, 1:23pm UTC](https://help.nextcloud.com/t/disabling-ldap-user-cleanup/12213/6 "2024-12-04T13:23:28Z")

</div>


