mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
migrate-ds: remove unused def_group_gid context property
it's no longer used anywhere Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
parent
fda9698844
commit
a6ca9800fa
@ -758,12 +758,10 @@ can use their Kerberos accounts.''')
|
||||
def_group = config.get('ipadefaultprimarygroup')
|
||||
context['def_group_dn'] = api.Object.group.get_dn(def_group)
|
||||
try:
|
||||
g_attrs = ldap.get_entry(context['def_group_dn'], ['gidnumber', 'cn'])
|
||||
ldap.get_entry(context['def_group_dn'], ['gidnumber', 'cn'])
|
||||
except errors.NotFound:
|
||||
error_msg = _('Default group for new users not found')
|
||||
raise errors.NotFound(reason=error_msg)
|
||||
if 'gidnumber' in g_attrs:
|
||||
context['def_group_gid'] = g_attrs['gidnumber'][0]
|
||||
|
||||
context['has_upg'] = ldap.has_upg()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user