This is a tool for domains setup I built using Groovy as the back end connecting to an LDAP server, this is through a JDNI connection (not coded by me) and Grails as the Services gateway, it uses a REST interface to do the domain creation.

I also used some REST and GSP files to do the views.