mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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?',
|
||||
|
||||
Reference in New Issue
Block a user