mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
The admins group cannot be renamed.
433880
This commit is contained in:
parent
f02b5c1962
commit
f49ed705b3
@ -148,6 +148,11 @@ INPUT_NOT_DNS_A_RECORD = gen_error_code(
|
|||||||
0x0003,
|
0x0003,
|
||||||
"The requested hostname is not a DNS A record. This is required by Kerberos.")
|
"The requested hostname is not a DNS A record. This is required by Kerberos.")
|
||||||
|
|
||||||
|
INPUT_ADMINS_IMMUTABLE = gen_error_code(
|
||||||
|
INPUT_CATEGORY,
|
||||||
|
0x0004,
|
||||||
|
"The admins group cannot be renamed.")
|
||||||
|
|
||||||
#
|
#
|
||||||
# Connection errors
|
# Connection errors
|
||||||
#
|
#
|
||||||
|
@ -1518,6 +1518,9 @@ class IPAServer:
|
|||||||
if isinstance(newcn, str):
|
if isinstance(newcn, str):
|
||||||
newcn = [newcn]
|
newcn = [newcn]
|
||||||
|
|
||||||
|
if "admins" in oldcn:
|
||||||
|
raise ipaerror.gen_exception(ipaerror.INPUT_ADMINS_IMMUTABLE)
|
||||||
|
|
||||||
oldcn.sort()
|
oldcn.sort()
|
||||||
newcn.sort()
|
newcn.sort()
|
||||||
if oldcn != newcn:
|
if oldcn != newcn:
|
||||||
|
Loading…
Reference in New Issue
Block a user