mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
detect SIZELIMIT_EXCEEDED in ldap queries and truncate
the problem is, how the heck do we properly handle these? Jerry? It seems that the Win2000 ADS server only returns a max of 1000 records!
This commit is contained in:
parent
f81882fc95
commit
9338964720
@ -84,6 +84,10 @@ ADS_STATUS ads_do_search(ADS_STRUCT *ads, const char *bind_path, int scope,
|
||||
bind_path, scope,
|
||||
exp, (char **) attrs, 0, NULL, NULL,
|
||||
&timeout, LDAP_NO_LIMIT, (LDAPMessage **)res);
|
||||
if (rc == LDAP_SIZELIMIT_EXCEEDED) {
|
||||
DEBUG(3,("Warning! sizelimit exceeded in ldap. Truncating.\n"));
|
||||
rc = 0;
|
||||
}
|
||||
return ADS_ERROR(rc);
|
||||
}
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user