I'm able to rename a CN for a user when it doesn't have a comma, but some of our users were previously entered as "Lastname, Firstname" and none of those will work when attempting to rename them. I tried escaping the comma with a backslash per some related topics I found regarding moving or creating users with commas, but nothing really seems to work with renaming them.
The error I get is... 'An invalid dn syntax has been specified.\r\n', None, 0, -2147016654), None
I tried poking around at some of the files in the PYAD library and printing out some variables it was using in some of the relevant functions, and at some point it seems to be leaving out the last name and the comma and it just has the first name with a space in front of it, and then it can't find that. I don't know enough beyond that to approach how to fix it or work around it.