I stumbled upon this experiment at apache LDAP project. I don't have the utility right now but I think this is a great idea: Groovy LDAP (I would have made it in ruby/jruby but I'm language agnostic so why not in groovy)
I remember when we were using rdf has a storage mecanism at joost, we used to run update scripts written in jruby (calling java native api). It was an handy solution, script language are more "natural" when it comes to creating/updating/deleting stuff (like SQL does)
Usually you want to hack something quick to fix some bad data and you don't want to start eclipse, compiling and build (like with ant).
Using groovy to ease LDAP maintenance tasks is a great idea.