Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 306502 Details for
Bug 448005
AuthTokenSubjectNameDefault plugin derives SubjectName incorrectly
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
The proper patch
AuthTokenSubjectNameDefault-fix2.patch (text/plain), 2.15 KB, created by
Aleksander Adamowski
on 2008-05-23 14:20:23 UTC
(
hide
)
Description:
The proper patch
Filename:
MIME Type:
Creator:
Aleksander Adamowski
Created:
2008-05-23 14:20:23 UTC
Size:
2.15 KB
patch
obsolete
>Index: common/src/com/netscape/cms/profile/def/AuthTokenSubjectNameDefault.java >=================================================================== >--- common/src/com/netscape/cms/profile/def/AuthTokenSubjectNameDefault.java (revision 47) >+++ common/src/com/netscape/cms/profile/def/AuthTokenSubjectNameDefault.java (working copy) >@@ -25,6 +25,7 @@ > import com.netscape.certsrv.request.*; > import com.netscape.certsrv.property.*; > import com.netscape.certsrv.apps.*; >+import com.netscape.certsrv.authentication.*; > > import netscape.security.x509.*; > import com.netscape.cms.profile.common.*; >@@ -40,6 +41,8 @@ > public class AuthTokenSubjectNameDefault extends EnrollDefault { > > public static final String VAL_NAME = "name"; >+ protected static String DEFAULT_DNPATTERN = >+ "$request.auth_token.tokencertsubject$"; > > public AuthTokenSubjectNameDefault() { > super(); >@@ -130,9 +133,10 @@ > // authenticate the subject name and populate it > // to the certinfo > try { >- X500Name name = new X500Name( >- request.getExtDataInString(IProfileAuthenticator.AUTHENTICATED_NAME)); >- >+ String subjectName = getSubjectName(request); >+ X500Name name = new X500Name(subjectName); >+ CMS.debug("AuthTokenSubjectNameDefault: subjectName is: " + subjectName >+ + "; X500Name is: " + name.toString()); > info.set(X509CertInfo.SUBJECT, new CertificateSubjectName(name)); > } catch (Exception e) { > // failed to insert subject name >@@ -141,4 +145,17 @@ > "CMS_PROFILE_SUBJECT_NAME_NOT_FOUND")); > } > } >+ private String getSubjectName(IRequest request) >+ throws EProfileException, IOException { >+ >+ CMS.debug("nsTokenDeviceKeySubjectNameDefault: in getSubjectName"); >+ String pattern = DEFAULT_DNPATTERN; >+ String sbjname = ""; >+ if (request != null) { >+ CMS.debug("pattern = "+pattern); >+ sbjname = mapPattern(request, pattern); >+ CMS.debug("nsTokenDeviceKeySubjectNameDefault: getSubjectName(): subject name mapping done"); >+ } >+ return sbjname; >+ } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 448005
:
306421
| 306502