mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
certprofile: remove 'rename' option
The initial fix of ticket 5247 rejected renames, but left the option behind for API compatibility. Remove the option now, according to the consensus that because it never worked, it is fine to remove it. Fixes: https://fedorahosted.org/freeipa/ticket/5247 Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
This commit is contained in:
parent
7b3bd4e85d
commit
86cd47af02
3
API.txt
3
API.txt
@ -731,7 +731,7 @@ output: Entry('result', <type 'dict'>, Gettext('A dictionary representing an LDA
|
||||
output: Output('summary', (<type 'unicode'>, <type 'NoneType'>), None)
|
||||
output: PrimaryKey('value', None, None)
|
||||
command: certprofile_mod
|
||||
args: 1,11,3
|
||||
args: 1,10,3
|
||||
arg: Str('cn', attribute=True, cli_name='id', multivalue=False, primary_key=True, query=True, required=True)
|
||||
option: Str('addattr*', cli_name='addattr', exclude='webui')
|
||||
option: Flag('all', autofill=True, cli_name='all', default=False, exclude='webui')
|
||||
@ -740,7 +740,6 @@ option: Str('description', attribute=True, autofill=False, cli_name='desc', mult
|
||||
option: File('file?', cli_name='file')
|
||||
option: Bool('ipacertprofilestoreissued', attribute=True, autofill=False, cli_name='store', default=True, multivalue=False, required=False)
|
||||
option: Flag('raw', autofill=True, cli_name='raw', default=False, exclude='webui')
|
||||
option: Str('rename', cli_name='rename', multivalue=False, primary_key=True, required=False)
|
||||
option: Flag('rights', autofill=True, default=False)
|
||||
option: Str('setattr*', cli_name='setattr', exclude='webui')
|
||||
option: Str('version?', exclude='webui')
|
||||
|
4
VERSION
4
VERSION
@ -90,5 +90,5 @@ IPA_DATA_VERSION=20100614120000
|
||||
# #
|
||||
########################################################
|
||||
IPA_API_VERSION_MAJOR=2
|
||||
IPA_API_VERSION_MINOR=154
|
||||
# Last change: pvoborni - change default vault type to 'symmetric'
|
||||
IPA_API_VERSION_MINOR=155
|
||||
# Last change: ftweedal - remove certprofile 'rename' option
|
||||
|
@ -115,7 +115,6 @@ class certprofile(LDAPObject):
|
||||
search_attributes = [
|
||||
'cn', 'description', 'ipacertprofilestoreissued'
|
||||
]
|
||||
rdn_is_primary_key = True
|
||||
label = _('Certificate Profiles')
|
||||
label_singular = _('Certificate Profile')
|
||||
|
||||
@ -323,7 +322,7 @@ class certprofile_mod(LDAPUpdate):
|
||||
def pre_callback(self, ldap, dn, entry_attrs, attrs_list, *keys, **options):
|
||||
ca_enabled_check()
|
||||
# Once a profile id is set it cannot be changed
|
||||
if 'rename' in options or 'cn' in entry_attrs:
|
||||
if 'cn' in entry_attrs:
|
||||
raise errors.ProtectedEntryError(label='certprofile', key=keys[0],
|
||||
reason=_('Certificate profiles cannot be renamed'))
|
||||
if 'file' in options:
|
||||
|
Loading…
Reference in New Issue
Block a user