Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ldap_search(): Partial search results returned: Sizelimit exceeded at /var/www/nextcloud/apps/user_ldap/lib/LDAP.php#293 #5837

Closed
mwries opened this issue Jul 22, 2017 · 6 comments

Comments

@mwries
Copy link

mwries commented Jul 22, 2017

Steps to reproduce

[updated 20170724] When editing the LDAP configuration in the Admin page, in the tab "Groups" there is a button "Verify settings and count the groups". This triggers the error msg in the log.

Expected behaviour

No error

Actual behavior

Error in log

Server configuration

Operating system: Linux nextcloud.systemsnavigator.com 4.4.0-83-generic #106-Ubuntu SMP Mon Jun 26 17:54:43 UTC 2017 x86_64

Web server: Apache/2.4.18 (Ubuntu) (apache2handler)

Database: pgsql PostgreSQL 9.5.7 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609, 64-bit

PHP version: 7.0.18-0ubuntu0.16.04.1
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, apache2handler, redis, PDO, xml, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, imap, intl, json, ldap, exif, mcrypt, pdo_pgsql, pgsql, Phar, posix, readline, shmop, SimpleXML, smbclient, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, libsmbclient, Zend OPcache

Nextcloud version: 12.0.0 - 12.0.0.29

Updated from an older Nextcloud/ownCloud or fresh install:
Fresh install

Where did you install Nextcloud from:
Nextcloud VM

Signing status:

Signing status
[]

List of activated apps:

App list ``` Enabled: - activity: 2.5.2 - comments: 1.2.0 - dav: 1.3.0 - federatedfilesharing: 1.2.0 - files: 1.7.2 - files_sharing: 1.4.0 - files_texteditor: 2.4.1 - files_trashbin: 1.2.0 - files_versions: 1.5.0 - gallery: 17.0.0 - issuetemplate: 0.2.1 - logreader: 2.0.0 - lookup_server_connector: 1.0.0 - nextcloud_announcements: 1.1 - notifications: 2.0.0 - oauth2: 1.0.5 - password_policy: 1.2.2 - provisioning_api: 1.2.0 - serverinfo: 1.2.0 - sharebymail: 1.2.0 - systemtags: 1.2.0 - theming: 1.3.0 - twofactor_backupcodes: 1.1.1 - updatenotification: 1.2.0 - user_ldap: 1.2.1 - workflowengine: 1.2.0

Disabled:

  • admin_audit
  • encryption
  • federation
  • files_external
  • files_pdfviewer
  • files_videoplayer
  • firstrunwizard
  • issuetemplate-master
  • previewgenerator
  • survey_client
  • user_external
</details>

**The content of config/config.php:**
<details>
	<summary>Config report</summary>

{
"passwordsalt": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"trusted_domains": [
"localhost",
"192.168.11.131",
"nextcloud.systemsnavigator.com"
],
"datadirectory": "/var/ncdatamnt",
"overwrite.cli.url": "https://nextcloud.systemsnavigator.com/",
"dbtype": "pgsql",
"version": "12.0.0.29",
"dbname": "nextcloud_db",
"dbhost": "localhost",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "REMOVED SENSITIVE VALUE",
"dbpassword": "REMOVED SENSITIVE VALUE",
"installed": true,
"instanceid": "oc6fxph0akpf",
"mail_smtpmode": "smtp",
"memcache.local": "\OC\Memcache\Redis",
"filelocking.enabled": true,
"memcache.distributed": "\OC\Memcache\Redis",
"memcache.locking": "\OC\Memcache\Redis",
"redis": {
"host": "/var/run/redis/redis.sock",
"port": 0,
"timeout": 0,
"dbindex": 0,
"password": "REMOVED SENSITIVE VALUE"
},
"htaccess.RewriteBase": "/",
"loglevel": "2",
"log_type": "file",
"logfile": "/var/ncdatamnt/nextcloud.log",
"logtimezone": "Europe/Amsterdam",
"maintenance": false,
"mail_from_address": "martijn.riesenkamp",
"mail_smtpauthtype": "LOGIN",
"mail_domain": "systemsnavigator.com",
"mail_smtpauth": 1,
"mail_smtphost": "smtp.office365.com",
"mail_smtpname": "REMOVED SENSITIVE VALUE",
"mail_smtppassword": "REMOVED SENSITIVE VALUE",
"mail_smtpport": "587",
"mail_smtpsecure": "tls",
"ldapIgnoreNamingRules": false,
"ldapProviderFactory": "\OCA\User_LDAP\LDAPProviderFactory",
"skeletondirectory": ""
}

</details>

**Are you using external storage, if yes which one:** files_external is disabled

**Are you using encryption:** no

**Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/...

#### LDAP configuration (delete this part if not used)
<details>
	<summary>LDAP config</summary>

	```
	With access to your command line run e.g.:
	sudo -u www-data php occ ldap:show-config
	from within your Nextcloud installation folder

	Without access to your command line download the data/owncloud.db to your local
	computer or access your SQL server remotely and run the select query:
	SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';


	Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.
	```
</details>
### Client configuration
**Browser:** Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393

**Operating system:**

### Logs
#### Web server error log
<details>
	<summary>Web server error log</summary>
	```
	Insert your webserver log here
	```
</details>

#### Nextcloud log (data/nextcloud.log)
<details>
	<summary>Nextcloud log</summary>
	```
ldap_search(): Partial search results returned: Sizelimit exceeded at /var/www/nextcloud/apps/user_ldap/lib/LDAP.php#293
	```
</details>

#### Browser log
<details>
	<summary>Browser log</summary>
	```
	Insert your browser log here, this could for example include:

	a) The javascript console log
	b) The network log
	c) ...
	```
</details>
@mwries
Copy link
Author

mwries commented Jul 22, 2017

cc @enoch85

@enoch85
Copy link
Member

enoch85 commented Jul 22, 2017

@blizzz Do you have any idea?

enoch85 referenced this issue in nextcloud/issuetemplate Jul 22, 2017
Made some changes according to the previous discussion. Also made some further improvements reducing the need of scrolling.

- Divided Server configuration into two parts, General and Nextcloud
- Operating system, webserver etc. are back to using only one line
- Removed headings to `detail`-blocks, they already have a name, saved some space and rearranged the order a bit.

Looking forward to your input about these changes.
@mwries
Copy link
Author

mwries commented Jul 24, 2017

I found the trigger:

When editing the LDAP configuration in the Admin page, in the tab "Groups" there is a button "Verify settings and count the groups". This triggers the error msg in the log.

@GitHubUser4234
Copy link
Contributor

GitHubUser4234 commented Aug 15, 2017

I also got this error sometimes (not always) when accessing the "Users" page. Here the related log:

2017-08-15 14:58:23 [INFO] Line content: {"reqId":"WZKbj9kMP3C3lLVAvtcomwAAAAI","level":3,"time":"2017-08-15T14:58:23+08:00","remoteAddr":"10.88.180.5","user":"tester1","app":"PHP","method":"POST","url":"/index.php/apps/user_ldap/ajax/wizard.php","message":"ldap_search(): Partial search results returned: Sizelimit exceeded at /www/nextcloud/apps/user_ldap/lib/LDAP.php#293","userAgent":"Mozilla/5.0 (Windows NT 10.0; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0","version":"12.0.0.29"}

@Nayar
Copy link

Nayar commented Mar 12, 2018

Any fix for this bug?

@blizzz
Copy link
Member

blizzz commented Mar 13, 2018

It's a false positive. Let's keep #2947 to have a second look and silence it at some point. closing this as dup.

@blizzz blizzz closed this as completed Mar 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants