summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/certprofile.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/plugins/certprofile.py')
-rw-r--r--ipalib/plugins/certprofile.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipalib/plugins/certprofile.py b/ipalib/plugins/certprofile.py
index 6f9a41875..5550ed942 100644
--- a/ipalib/plugins/certprofile.py
+++ b/ipalib/plugins/certprofile.py
@@ -291,6 +291,9 @@ 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 'cn' in entry_attrs:
+ raise errors.ACIError(info=_('cn is immutable'))
if 'file' in options:
with self.api.Backend.ra_certprofile as profile_api:
profile_api.disable_profile(keys[0])