CN is used for objects and folders, OU is Organizational Unit.
It's weird that your script would work calling the user an OU. It shouln't work at all.