Server: ldap_control_paged_result() is deprecated spam

Created on 24 Jan 2020  路  15Comments  路  Source: nextcloud/server

How to use GitHub

  • Please use the 馃憤 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.

Steps to reproduce

  1. Enable user_ldap authentication
  2. See the log

Expected behaviour

LDAP works

Actual behaviour

LDAP works but it spams hundreds of such error messages.

[PHP] Error: Function ldap_control_paged_result() is deprecated at /usr/share/webapps/nextcloud/apps/user_ldap/lib/LDAP.php#310

Server configuration

PHP version:
7.4.1

Nextcloud version: (see Nextcloud admin page)
18.0.0

1. to develop bug ldap

Most helpful comment

I really need a fix for this. Having the exact same issue on nextcloud 18. It's eating up processor cycles on the AD and the AD is freezing up with 100% CPU. I did a packet capture and its flooded with ldap requests from nextcloud to AD. The nextcloud log is currently 220 GB and filled with these errors.

The LDAP configuration is causing the entire AD infrastructure to fail, so this is critical. I'm having 250+ users working on the cloud.

All 15 comments

cc @nextcloud/ldap

This method were deprecated in 7.4 and for some reason the PHP LDAP module is always too talkative. We need to switch to ldap_exop, can be used starting PHP 7.3 where server controls support was added.

Any news on this nextcloud is not ready to PHP 7.4 if the ldap fonction spam a lot , i try to set the error_reporting but i can"t find where do i have to set it for

I have the same problem and switched back to PHP 7.3.15 on Ubuntu 18 with PHP 7.4.2

I'm back to php 7.3.14 because there were no little chance to get rid of those messages under php 7.4.x

Never the less my ubuntu 18.04.4 updates each time there are php updates 7.3.x AND 7.4.x
So i let them installed parallel for the day nextcloud becomes compatible with php 7.4.x

Any other affected functions of nextcloud that "dislike" php 7.4 at the moment (nc 18.0.1) ?

So need an update.
You launched the Nextcloud 18.0.2 shortly. Is this error still an open issue or has it been solved under the latest version?

The issue is still here. It seems like nothing in the LDAP app is changed.
f.w.i.w.: The app is at version 1.8.0. Nextcloud is at version 1.8.0.2

image

If this issue is open than it's not fixed yet. Please subscribe to this issue and you will be notified on status change.

I really need a fix for this. Having the exact same issue on nextcloud 18. It's eating up processor cycles on the AD and the AD is freezing up with 100% CPU. I did a packet capture and its flooded with ldap requests from nextcloud to AD. The nextcloud log is currently 220 GB and filled with these errors.

The LDAP configuration is causing the entire AD infrastructure to fail, so this is critical. I'm having 250+ users working on the cloud.

I really need a fix for this. Having the exact same issue on nextcloud 18. It's eating up processor cycles on the AD and the AD is freezing up with 100% CPU. I did a packet capture and its flooded with ldap requests from nextcloud to AD. The nextcloud log is currently 220 GB and filled with these errors.

The LDAP configuration is causing the entire AD infrastructure to fail, so this is critical. I'm having 250+ users working on the cloud.

Exact same situation here.
I've PHP 7.4.3 and Nextcloud 18.0.3.

@Lenezir for what its worth, I worked around this by degrading to PHP 7.3.

@pcolmer Thanks. :)

It's eating up processor cycles on the AD and the AD is freezing up with 100% CPU.

That's got nothing to do with Nextcloud logging PHP deprecation messages.

@dahammo I just fixed the problem (maybe it will not work for everyone).
I downgraded to PHP 7.3 AND I installed the php7.3-smbclient module (and some others modules presented on the doc), I forgot it. Now it works like a charm, no more overload of Apache.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rullzer picture rullzer  路  3Comments

williambargent picture williambargent  路  3Comments

georgehrke picture georgehrke  路  3Comments

brylie picture brylie  路  3Comments

blackcrack picture blackcrack  路  3Comments