Hi Matthias,
On Jul 15, 2013, at 3:17 PM, matthias.schoeppe(a)now-it.de wrote:
  Hello,
 when I fill out the LDAP settings and save them, I get an error message
 "Failed to execute the [groovy] macro"
 and the detailed reason is
 "org.xwiki.rendering.macro.MacroExecutionException: You don't have the
 right to execute this script"
 Has anyone a idea for me, why i get this error. Where is the problem? 
Seems the LDAP admin UI requires Programming Rights.
You should raise a bug in jira IMO: 
http://jira.xwiki.org
In the meantime use a user with programming rights and it should work fine.
Thanks
-Vincent