Account.enroll_certificate() assumes that userCertificate can be added
only to nsAccount and does a check for DS version where this objectClass
was introduced.
But userCertificate is a valid attribute for inetOrgPerson objectClass
too. And enroll_certificate() can be used with this objectClass.
Fix Description:
Instead of relying on a DS version we should trust the server to add or
reject an invalid attribute.
Bug Description:
Account.enroll_certificate()assumes thatuserCertificatecan be addedonly to
nsAccountand does a check for DS version where this objectClasswas introduced.
But
userCertificateis a valid attribute forinetOrgPersonobjectClasstoo. And
enroll_certificate()can be used with this objectClass.Fix Description:
Instead of relying on a DS version we should trust the server to add or
reject an invalid attribute.
Fixes: https://pagure.io/389-ds-base/issue/50774
Reviewed by: ???