10.1 Object class violation when creating a user with a Template object

The driver fails to create a user with the following error:

LDAPException: Object Class Violation (65) Object Class Violation

To workaround the issue, perform the following actions:

  1. Look for the setPasswordAfterCreate attribute in the Template object used to create a user.

  2. Remove the attribute if it exists in the object.