Missing krbprincipalname when uid is not set
When user_add command is executed without uid parameter filled, user account is created without 'krbprincipalname' attribute. This renders the user account unusable. https://fedorahosted.org/freeipa/ticket/1279
This commit is contained in:
1 parent
cbc5df4536
commit
04bc564e73
1 file changed
+1
@@ -347,6 +347,7 @@ class user_add(LDAPCreate):
|
||||
home_dir = home_dir.replace('//', '/').rstrip('/')
|
||||
entry_attrs['homedirectory'] = home_dir
|
||||
entry_attrs.setdefault('krbpwdpolicyreference', 'cn=global_policy,cn=%s,cn=kerberos,%s' % (api.env.realm, api.env.basedn))
|
||||
entry_attrs.setdefault('krbprincipalname', '%s@%s' % (entry_attrs['uid'], api.env.realm))
|
||||
|
||||
if 'gidnumber' not in entry_attrs:
|
||||
# gidNumber wasn't specified explicity, find out what it should be
|
||||
|
||||
Reference in new issue
Block a user