Apologies - it's not strictly Net::LDAP related....
I don't know if it's related, but I have a novell (5.1) LDAP server that no
matter what I do I can't get it to return more than 500 entries (tried 4
different clients including Net::LDAP).
It has a default setting of returning a max of 500, but seems to completely
ignore it when I change that to anything else..I've tried
501,1000,5000,10000 with no difference.
You see, I have about 10000 user objects (sorry inetorg objects) across ~20
ou's, and frequently more than 500 objects in an ou.
(rebooting and/or reloading the NLM's doesn't help)
I have worked around the problem in Net::LDAP with code like:
foreach $ou (@oulist){
foreach $letter (@alphabet) {
(search for all names beginning with $letter)
}
}
...which works because I always have less than 500 smiths in an ou!
Any Novell-ites seen similar?... and got a solution? then e-mail me off-list.
David.
At 08:25 PM 2/1/01 +1100, Pete wrote:
>Hi everyone,
>
>I have come across a strange issue and am hoping others may
>have something to offer as we can't figure out why it is happening.
>
>Firstly, the server is setup to return 1000 entries on a query.
>
>Now when querying sn=me*, only 113 names are returned, there
>should be in the realm of 240. The problem was highlighted when
>looking for sn values of met* there should be 10, but we only get 1
>back. So that was the next query we did, sn=met*, which returns
>the right number.
>
>I think it has something to do with the server rather than the client
>(we have tried perl ldap and two other ldap clients and the results
>are the same).
>
>Like I said, I'm hoping someone may have seen this before and can
>offer a pointer as we have spent ages on this with no idea where to
>look next.
>
>Thanks,
>
>
>Pete.
>
>
>
--------------------------------------------------------------------
David Bussenschutt Email: D.B...@ma...
Senior Computing Support Officer & Systems Administrator/Programmer
Location: Griffith University. Information Technology Services
Brisbane Qld. Aust. (TEN bldg. rm 1.33) Ph: (07)38757079
--------------------------------------------------------------------
|