On 5/3/07 9:59, "Lars Skjærlund" <[EMAIL PROTECTED]> wrote:
> Hi list, > > I've started creating an application that runs against a larger Novell > eDir system. > > Unfortunately, I have huge performance problems :-(. > > Basically, here's what I want to do (in pseudocode): > > @entries = LDAP->Search(Projects) > > foreach my $entry (@entries) { > LDAP->Search($entry->{Project_Manager}) > ... > } > > In this case, the object could be to find the full name of each project > manager. > > Unfortunately, this code is extremely slow when run against a directory > with several thousand projects - responsetime is measured in lots of > minutes. Are your searches synchronous, or can you fire them all off in parallel? > Why isn't there an LDAP->Read function? I have the DN name of the > object in question and need not search for it. LDAP does not provide a read operation in the protocol; you always have to simulate it with a base object search using the DN you know. > As it appears I cannot read it directly, how do I get the attributes of > an object when I know the DN - in the most efficient way? $ldap->search(base => "the DN you know", scope => 'base', filter => '(objectclass=*)'); Cheers, Chris