Answering own post:

The command line tool got me the following message:
ldap_search: Sizelimit exceeded

ldap_search: additional info: R004028 The size limit for your search has
been reached. (tdbm_search.c|1.76|981)

I gave myself ldap administrator rights, and then the entire command line
went through, so retried the perl script; it worked. Not a major issue,
since the user add/delete function has to have those rights anyway.



"tyson" <[EMAIL PROTECTED]> wrote in message
a6g6sa$[EMAIL PROTECTED]">news:a6g6sa$[EMAIL PROTECTED]...
> I'm trying to search for (&(objectclass=InetOrgPerson) (uid=*))
>
> In other words, I want to list every human I have in my db, so I can build
a
> list of users in order to synchronise an LDAP server with a non-LDAP
> compliant server.
>
> Using the following code:
>
> my $filter="(&(objectclass=InetOrgPerson) (uid=*))";
> my $ldap = new Mozilla::LDAP::Conn($host,$port,$dn,$passwd) || die("Failed
> to open connect.\n");
> my $entry=$ldap->search($base, "subtree", $filter, 0, @attribs);
>
> This search returns nothing. Zip. The way the docs read on the =*
operator,
> all antries that have a value for the attribute on the left should be
> listed. I get nothing.
>
> If I modify the search to use, for example, "(uid=a*)", the search works,
> and I get about 200 people whose uid's begin with "a". To the best of my
> knowledge, that isn't right, and would introduce much lameness and
stupidity
> into my script by having to iterate through the entire alphabet to get
> everybody.
>
> Nothing about this exists on the FAQ, and bugfixes listed in 1.4.1 do not
> mention this issue.
>
> Any ideas out there?
>
>
>



Reply via email to