On 29/12/03 3:09 pm, Jim Harle <[EMAIL PROTECTED]> wrote:

> Chris,
> Two things might be an issue.  First (and less likely) check to see that you
> are binding as an account with sufficient priveleges to delete users.  The
> more
> probable thing is that you are choking the server by sending too many requests
> at nearly the same time.  First, try just exiting after
> $ldap->delete($entry->dn( ) );
> If that works, try putting a 1 second pause after the same.

In fact it might be sensible to wait for a result code after doing each
delete. It'll slow down the client, but might avoid locking the server up!

You will need to make sure that you don't try to delete parent entries
before child entries, if your search happens to return both parents and
children. You also cannot rely on the order in which the results are
returned, so you may want to do some sorting of the returned names before
trying to delete them.

Cheers,

Chris

Reply via email to