If you rename an object in ADUC letting all letters the same but changing only for example the initial from downcase to upcase you get a "out of memory" message.
I add Andrew Kroeger to this bug, because he found a solution for the problem (http://lists.samba.org/archive/samba-technical/2007-September/055593.html).
This should be fixed now, I've applied Andrew's patch.