mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix internal error when renaming user with an empty string.
ticket 2629
This commit is contained in:
committed by
Martin Kosek
parent
88927fb78b
commit
c043a65728
@@ -551,7 +551,7 @@ class user_mod(LDAPUpdate):
|
||||
has_output_params = LDAPUpdate.has_output_params + user_output_params
|
||||
|
||||
def pre_callback(self, ldap, dn, entry_attrs, attrs_list, *keys, **options):
|
||||
if 'rename' in options:
|
||||
if options.get('rename') is not None:
|
||||
config = ldap.get_ipa_config()[1]
|
||||
if 'ipamaxusernamelength' in config:
|
||||
if len(options['rename']) > int(config.get('ipamaxusernamelength')[0]):
|
||||
|
Reference in New Issue
Block a user