diff --git a/ipaserver/plugins/baseuser.py b/ipaserver/plugins/baseuser.py index ae16a978a..6035228f1 100644 --- a/ipaserver/plugins/baseuser.py +++ b/ipaserver/plugins/baseuser.py @@ -539,6 +539,9 @@ class baseuser_add(LDAPCreate): if entry_attrs.get('ipatokenradiususername', None): add_missing_object_class(ldap, u'ipatokenradiusproxyuser', dn, entry_attrs, update=False) + if entry_attrs.get('ipauserauthtype', None): + add_missing_object_class(ldap, u'ipauserauthtypeclass', dn, + entry_attrs, update=False) def post_common_callback(self, ldap, dn, entry_attrs, *keys, **options): assert isinstance(dn, DN) diff --git a/ipaserver/plugins/user.py b/ipaserver/plugins/user.py index 6f7facb53..e4ee572b2 100644 --- a/ipaserver/plugins/user.py +++ b/ipaserver/plugins/user.py @@ -617,10 +617,6 @@ class user_add(baseuser_add): 'ipauser' not in entry_attrs['objectclass']: entry_attrs['objectclass'].append('ipauser') - if 'ipauserauthtype' in entry_attrs and \ - 'ipauserauthtypeclass' not in entry_attrs['objectclass']: - entry_attrs['objectclass'].append('ipauserauthtypeclass') - rcl = entry_attrs.get('ipatokenradiusconfiglink', None) if rcl: if 'ipatokenradiusproxyuser' not in entry_attrs['objectclass']: