From: Mark W. <mew...@un...> - 2000-07-04 17:28:59
|
Graham Barr wrote: > On Mon, Jul 03, 2000 at 12:33:44PM -0700, Allen, Robbie wrote: > > All I'm really asking is for the search method to return all entries > > that match the search criteria. To be safe, I need to use VLV in all of > > my searches, because one day the number of entries returned may exceed > > the server limit, or the server limit may one day be set lower, and the > > application may break because it does not get all the entries it thinks > > it should. This may not be an issue in some environments, but it is in > > mine. > If the LDAP server can return all of the entries it will during a search. If it doesn't then it will throw an error. That's what you want! If you suddenly bind yourself to a particular method and then one day it doesn't work (e.g. you suddenly start searching on an LDAP server that doesn't support controls & your search is still beyond the limit)& it's not documented, the developer won't know why. The simple answer is to always include the proper control in all of your searches and document why you are doing this. I don't know why that's so #!$@!$! difficult ;). You also always have the option of binding as the Directory Manager account. Insecure as hell, but that will work for most servers ;). > > Ah, it sounds like you want the LDAPiranah module someone wrote a while ?? I couldn't find it on CPAN. I'd be happy to help someone get this to work if that would make your life easier. I'll be out of town for most of the next 2 weeks but after that I'll help with what I can. > back. Itwill need so changes to work with the latest Net::LDAP though. In fact > I have some changes planned for Net::LDAP which will make that kind of > thing easier. Cool. Mark > > > Graham. |