71cf23c Issue 50774 - Account.enroll_certificate() should not check for DS version

Authored and Committed by vashirov 4 years ago
    Issue 50774 - Account.enroll_certificate() should not check for DS version
    
    Bug Description:
    
    `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.
    
    Fixes: https://pagure.io/389-ds-base/issue/50774
    
    Reviewed by: mhonek (Thanks!)