The AutoPassword feature does not work as expected because of the incorrect size of the password string.
We must multiply the string length by 2 because the size is in the number of bytes occupied by the characters of the string, and the gDCryptAutoPassword encoding is UTF16-LE.
The AutoPassword feature does not work as expected because of the incorrect size of the password string. We must multiply the string length by 2 because the size is in the number of bytes occupied by the characters of the string, and the gDCryptAutoPassword encoding is UTF16-LE.