#5319 winsync-migrate: Failure encountered if user is member of entity with posix-unfriendly name
Closed: Fixed None Opened 8 years ago by tbabej.

If the migrated user is member of an entity which contains characters not accepted by IPA, migration will exit with a traceback:

ipa.ipaserver.install.ipa_winsync_migrate.WinsyncMigrate: DEBUG:   File "/usr/lib/python2.7/site-packages/ipapython/admintool.py", line 171, in execute
    return_value = self.run()
  File "/usr/lib/python2.7/site-packages/ipaserver/install/ipa_winsync_migrate.py", line 348, in run
    self.migrate_role_memberships(entry)
  File "/usr/lib/python2.7/site-packages/ipaserver/install/ipa_winsync_migrate.py", line 282, in migrate_role_memberships
    object_container_dn=DN(api.env.container_rolegroup, api.env.basedn),
  File "/usr/lib/python2.7/site-packages/ipaserver/install/ipa_winsync_migrate.py", line 258, in migrate_memberships
    create_winsync_group(obj)
  File "/usr/lib/python2.7/site-packages/ipaserver/install/ipa_winsync_migrate.py", line 232, in create_winsync_group
    api.Command['group_add'](name, external=True)
  File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 441, in __call__
    self.validate(**params)
  File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 721, in validate
    param.validate(value, self.env.context, supplied=param.name in kw)
  File "/usr/lib/python2.7/site-packages/ipalib/parameters.py", line 837, in validate
    self._validate_scalar(value)
  File "/usr/lib/python2.7/site-packages/ipalib/parameters.py", line 856, in _validate_scalar
    rule=rule,

ipa.ipaserver.install.ipa_winsync_migrate.WinsyncMigrate: DEBUG: The ipa-migrate-winsync command failed, exception: ValidationError: invalid 'group_name': may only include letters, numbers, _, -, . and $
ipa.ipaserver.install.ipa_winsync_migrate.WinsyncMigrate: ERROR: invalid 'group_name': may only include letters, numbers, _, -, . and $

master:

  • a758f16 winsync-migrate: Convert entity names to posix friendly strings
  • 75cba4e winsync-migrate: Properly handle collisions in the names of external groups

ipa-4-2:

  • aac5f93 winsync-migrate: Convert entity names to posix friendly strings
  • d639e93 winsync-migrate: Properly handle collisions in the names of external groups

Metadata Update from @tbabej:
- Issue assigned to tbabej
- Issue set to the milestone: FreeIPA 4.2.2

7 years ago

Login to comment on this ticket.

Metadata