On 17 Aug 2004, at 09:37, Mike Jackson wrote:
[EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote:


You can else try something like this..

- Make un sub program that take a DN in paramter and make search for
objects with "objectClass=organizationalUnit" and a "BASE" scope.
-> If found, for each objects, recursively call your sub program with
DN as parameter.
-> And then, delete all entries under this OU.


I think, this method works, i have done something like this in java. But it
may exist a better way to do this.

Here you go. You might need to implement paged result sets, if your directory enforces a result limit.

Can somebody with commit access include this into the examples? Also,
suggestions for improvement of speed are welcome :-)

I added it into the contrib directory.

Graham.



Reply via email to