How to create a user with certificate with lib389

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

Let say i want to create a user with userCertificate fileld. My user will look like bellow.

users_people = UserAccounts(topo.standalone, DEFAULT_SUFFIX)
users_people.create(properties={
        'uid': 'certUser2',
        'cn': 'CUser2',
        'sn': 'CertificateUser2',
        'givenName': 'CU2',
        'description': "This is certUser2's description",
        'mail': 'certUser1@xxxxxxxxxxx',
        'userPassword': PW_DM,
        'userCertificate': 'some_cert_+++NUhz+Rigq7xT5g0Jqo1gXq1jJFdCw==',
        'manager': f'uid=certUser2,ou=People,{DEFAULT_SUFFIX}',
        'homeDirectory': '/home/' + 'certUser2',
        'uidNumber': '1000',
        'gidNumber': '2000'
    })

Here i have put userCertificate field manually (which i dont want to do). But how can i achieve this without putting userCertificate field manually . Like create a user and userCertificate field will be auto field with auto generated certificates . 

Regards
Anuj Borah
_______________________________________________
389-devel mailing list -- 389-devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to 389-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/389-devel@xxxxxxxxxxxxxxxxxxxxxxx

[Index of Archives]     [Fedora Directory Announce]     [Fedora Users]     [Older Fedora Users Mail]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Review]     [Fedora Art]     [Fedora Music]     [Fedora Packaging]     [CentOS]     [Fedora SELinux]     [Big List of Linux Books]     [KDE Users]     [Fedora Art]     [Fedora Docs]

  Powered by Linux