[turba] feature request
Andrew Morgan
morgan@orst.edu
Tue Oct 8 18:31:01 2002
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
---------------------- multipart/mixed attachment
On Mon, 7 Oct 2002, Chuck Hagenbuch wrote:
> Quoting Andrew Morgan <morgan@orst.edu>:
>
> > What I'd like to see is an option in config/sources.php that lets me set
> > the sizelimit on the ldap_search() php function. Is this already done,
> > or would a patch against Turba v1.1 be useful?
>
> A patch against CVS HEAD would be great. We'll take care of backporting it
> to RELENG_1 once it gets tested in HEAD.
>
> -chuck
Attached is a patch against Turba v1.1. This is a fairly trivial patch
because the support is already there in php's ldap module to set a
sizelimit. I have tested this on our local setup in a limited fashion
without difficulty.
Let me know how this looks...
Andy
---------------------- multipart/mixed attachment
LS0tIHR1cmJhL2xpYi9Ecml2ZXIvbGRhcC5waHAub3JpZwlUdWUgT2N0ICA4
IDA5OjM0OjA0IDIwMDINCisrKyB0dXJiYS9saWIvRHJpdmVyL2xkYXAucGhw
CVR1ZSBPY3QgIDggMTA6MjE6MzkgMjAwMg0KQEAgLTE1OSwxMyArMTU5LDIy
IEBADQogICAgICAgICAgICAgJGF0dHJbXSA9ICdzbic7DQogICAgICAgICB9
DQogDQorCS8qDQorCSAqIEFkZCBhIHNpemVsaW1pdCwgaWYgc3BlY2lmaWVk
LiBEZWZhdWx0IGlzIDAsIHdoaWNoIG1lYW5zIG5vIGxpbWl0Lg0KKwkgKiBO
b3RlOiBZb3UgY2Fubm90IG92ZXJyaWRlIGEgc2VydmVyLXNpZGUgbGltaXQg
d2l0aCB0aGlzLg0KKwkgKi8NCisJJHNpemVsaW1pdCA9IDA7DQorCWlmICgh
ZW1wdHkoJHRoaXMtPnBhcmFtc1snc2l6ZWxpbWl0J10pKSB7DQorCSAgICAk
c2l6ZWxpbWl0ID0gJHRoaXMtPnBhcmFtc1snc2l6ZWxpbWl0J107DQorCX0N
CisNCiAgICAgICAgIC8qIEx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2l6ZWxpbWl0KSkpIHsNCiAgICAgICAgICAg
ICAkdGhpcy0+ZXJybm8gPSBsZGFwX2Vycm5vKCR0aGlzLT5kcyk7DQogICAg
ICAgICAgICAgJHRoaXMtPmVycnN0ciA9IGxkYXBfZXJyb3IoJHRoaXMtPmRz
KTsNCiAgICAgICAgICAgICAvLyBGSVhNRTogcmFpc2UgYW4gZXhjZXB0aW9u
IHVzaW5nIFBFQVIgZXJyb3IgaGFuZGxpbmcNCg==
---------------------- multipart/mixed attachment
LS0tIHR1cmJhL2NvbmZpZy9zb3VyY2VzLnBocC5kaXN0Lm9yaWcJVHVlIE9j
dCAgOCAxMDoyNjoyOCAyMDAyDQorKysgdHVyYmEvY29uZmlnL3NvdXJjZXMu
cGhwLmRpc3QJVHVlIE9jdCAgOCAxMDoyNzoyOCAyMDAyDQpAQCAtMTgyLDYg
KzE4Miw3IEBADQogICAgICAgICAncm9vdCcgPT4gJ2RjPWV4YW1wbGUsZGM9
Y29tJywNCiAgICAgICAgICdiaW5kX2RuJyA9PiAnY249YWRtaW4sb3U9dXNl
cnMsZGM9ZXhhbXBsZSxkYz1jb20nLA0KICAgICAgICAgJ2JpbmRfcGFzc3dv
cmQnID0+ICcqKioqKioqKicsDQorICAgICAgICAnc2l6ZWxpbWl0JyA9PiAy
MDAsDQogICAgICAgICAnZG4nID0+IGFycmF5KCdjbicpLA0KICAgICAgICAg
J29iamVjdGNsYXNzJyA9PiAncGVyc29uJywNCiAgICAgICAgICd2ZXJzaW9u
JyA9PiAzDQo=
---------------------- multipart/mixed attachment--