summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/plugins/config.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ipalib/plugins/config.py b/ipalib/plugins/config.py
index 482b06bf8..79db77e98 100644
--- a/ipalib/plugins/config.py
+++ b/ipalib/plugins/config.py
@@ -149,6 +149,12 @@ class config_mod(LDAPUpdate):
entry_attrs['ipamigrationenabled'] = 'TRUE'
else:
entry_attrs['ipamigrationenabled'] = 'FALSE'
+ if 'ipadefaultprimarygroup' in entry_attrs:
+ group=entry_attrs['ipadefaultprimarygroup']
+ try:
+ api.Command['group_show'](group)
+ except errors.NotFound:
+ raise errors.NotFound(message=unicode("The group doesn't exist"))
return dn
api.register(config_mod)