Match Common Name attribute in Subject

ipa cert_find command has an option called --subject.
The option is documented as --subject=STR Subject.
It is expected that a --subject option searches by X.509 subject field but it does not do so.
It searches for CN not cert subject. Hence changing content of --subject help option.

Resolves: https://pagure.io/freeipa/issue/7322
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
amitkuma 2017-12-25 16:21:01 +05:30 committed by Rob Crittenden
parent 3927b0e7b1
commit 326fd6a70d
4 changed files with 4 additions and 4 deletions

View File

@ -132,7 +132,7 @@ class cert_find(Command):
parameters.Str(
'subject',
required=False,
label=_(u'Subject'),
label=_(u'Match cn attribute in subject'),
),
parameters.Int(
'revocation_reason',

View File

@ -132,7 +132,7 @@ class cert_find(Command):
parameters.Str(
'subject',
required=False,
label=_(u'Subject'),
label=_(u'Match cn attribute in subject'),
),
parameters.Int(
'revocation_reason',

View File

@ -132,7 +132,7 @@ class cert_find(Command):
parameters.Str(
'subject',
required=False,
label=_(u'Subject'),
label=_(u'Match cn attribute in subject'),
),
parameters.Int(
'revocation_reason',

View File

@ -1307,7 +1307,7 @@ class cert_find(Search, CertMethod):
takes_options = (
Str('subject?',
label=_('Subject'),
doc=_('Subject'),
doc=_('Match cn attribute in subject'),
autofill=False,
),
Int('min_serial_number?',