[CR #277742] The Security Management application programming interface (SMAPI) does not support setting the PKIName field for a subject. Specifically, the SMAPI does not allow you to create a subject who logs in to the environment with a certificate.
Creating a subject who logs in to the environment
with a certificate
Create a subject using the SubjectManagement home interface in the SMAPI:
SubjectManagementHome home = ctx.lookup(.....); SubjectManagement subject = home.create(......);
Find the subject using SubjectIntf in OMAPI:
SubjectIntfHome shome = ctx.lookup(...); SubjectIntf s = home.create();
Get the primaryKey of the newly created subject. This is the SubjectDN to be passed into Objmgmt:
String subjectDN = (String) subject.getPrimaryKey(); Subject subject = s.findSubject(subjectDN);
Set the PKIName field of the subject and update the subject:
subject.pkiName = CertificateDN; s.updateSubject(subject);
See “Subject account management” for more information.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |