#5407 Possible to rename user to longer than maximum username length
Closed: wontfix 5 years ago by rcritten. Opened 8 years ago by fskola.

No exception raised when trying to rename a user to too long value using setattr.

Reproducer:

>>> from ipatests.test_xmlrpc.test_user_plugin import UserTracker
>>> tracker = UserTracker(name=u'user1', givenname=u'Test', sn=u'User1')
>>> tracker.create()
Ran command: ipalib.plugins.user.user_add()(u'user1', givenname=u'Test', sn=u'User1', version=u'2.155'): OK
>>> cmd = tracker.make_update_command(updates=dict(setattr=(u'uid=%s' % 'tuser1234567890123456789012345678901234567890')))
>>> cmd()
Ran command: ipalib.plugins.user.user_mod()(u'user1', version=u'2.155', setattr=u'uid=tuser1234567890123456789012345678901234567890'): OK

# ipa user-show tuser1234567890123456789012345678901234567890
  User login: tuser1234567890123456789012345678901234567890
 (...)

# ipa config-show
  Maximum username length: 32
 (...)

# echo -n tuser1234567890123456789012345678901234567890 | wc -c
45

using --setattr instead of --rename option is sort of a workaround. Not a priority.

Metadata Update from @fskola:
- Issue assigned to someone
- Issue set to the milestone: Ticket Backlog

7 years ago

Thank you taking time to submit this request for FreeIPA. Unfortunately this bug was not given priority and the team lacks the capacity to work on it at this time.

Given that we are unable to fulfil this request I am closing the issue as wontfix. To request re-consideration of this decision please reopen this issue and provide additional technical details about its importance to you.

Metadata Update from @rcritten:
- Issue close_status updated to: wontfix
- Issue status updated to: Closed (was: Open)

5 years ago

Login to comment on this ticket.

Metadata