[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Possible to iterate over all records?
> I'm trying to populate and synchronize an OpenLDAP directory from data
> in our existing LDAP-accessible X.500 directory. I can only get a
> limited amount of result entries in response to a query like
> ldapsearch -h ldap500.hq.nasa.gov '(uid=*)' uid
> which is not surprising: X.500's LDAP interface doesn't want me
> sucking down all its CPU while I harvest information.
> Is it possible to change the limits in the number of results offered
> based on an authenticated connection
No, this is limited on the server.
> -- like I do with attribute/value
> access based on ACLs? (I understand our X.500/LDAP product will be
> different than OpenLDAP but expect such a feature would have an analog).
You need to look into paging support, you can still get all your
results; you just do it in chunks.
> Alternately, is it possible to iterate over every entry, like one
> would with a relational database resultset using some kind of
> get_next($resultset) operation?
No.
> I haven't seen anything like this in
> the docs I've read, and it kinda makes no sense in a pure directory
> context. If such a thing existed, it would make my life a lot easier,
> so I'm grasping at straws.
Maybe some things, but it would be a horrible idea and abused with
abandon.