Ticket #10945 (new enhancement)

Opened 2 months ago

Last modified 2 weeks ago

Add extensible user ID change support

Reported by: hasienda Assigned to: hasienda
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords: rename user
Cc: rjollos Trac Release:

Description

This is the consequence of successive code reviews after creating #10900, #10901 and #10902.

This way the functionality will gain independence of 3rd-party support, that may never be offered anyway. At least within the mandatory 14 day period there was no reaction from any author/maintainer of the hacks that the aforementioned ticket have been filed against.

Meanwhile basic support code has already been published in changesets [12700:12702] and [12706].

Attachments

20130317_acct_mgr-uid-change.png (75.8 kB) - added by hasienda on 03/17/13 15:59:32.
Feedback on user ID change request with all change components enabled, including other supported plugins

Change History

03/17/13 15:46:18 changed by hasienda

Note that the term 'user ID' change(r) has been coined do set it apart form 'username'. Maybe in the future this could become separate things, if Trac would introduce a unique ID i.e. within the t:wiki:GenericTrac concept, so I decided to not focus to much on the user-visible string right from the start.

03/17/13 15:49:06 changed by hasienda

(In [12736]) AccountManagerPlugin: Add optional user ID changer components for other plugins, refs #10900, #10901, #10902, #10944 and #10945.

In addition to VotePlugin (supported by RenameTracUsersScript too) support for

is provided within this plugin.

With the publication of this code the requests for feedback are almost obsoleted, even more, because non of the pre-existing solutions provided the coverage and extensibility, that is offered now within this plugin.

03/17/13 15:57:54 changed by hasienda

See 24 Trac db tables changing right on your user ID change command by just filling both, the 'Username' and the new 'New username' fields in the users (accounts) admin panel:

Feedback on user ID change request with all change components enabled, including other supported plugins

03/17/13 15:59:32 changed by hasienda

  • attachment 20130317_acct_mgr-uid-change.png added.

Feedback on user ID change request with all change components enabled, including other supported plugins

03/22/13 03:23:08 changed by rjollos

  • summary changed from Add extensibe user ID change support to Add extensible user ID change support.

05/05/13 23:10:29 changed by hasienda

(In [13054]) AccountManagerPlugin: Added flexibility for user ID change support, refs #10945.

New options permit

  • migration to existing accounts - found to be essential for users with write-protected password stores, for setups of multiple Trac environments with shared password store(s) or as workaround for missing password reset
  • preserving passwords in general for users in SessionStore or specifically when migrating to an existing account (for users in any password store)
  • retaining login data of previous account - again essential for migrating one user ID in multiple Trac environments with shared password store(s)

Special processing of Trac db table session_attribute has been required, replacing the corresponding user ID changer component.

05/06/13 01:01:20 changed by hasienda

(In [13055]) AccountManagerPlugin: Default password password must be non-empty, refs #10945.

Fixing a critical implementation issue, where on user ID change the new account has been created with empty password, and subsequent password reset would have added an alternative random password instead of replacing the initial password due to prior improvements of the password reset procedure.

05/06/13 01:57:40 changed by hasienda

(In [13056]) AccountManagerPlugin: Calculate 'keep_passwd' properly, refs #10945.


Add/Change #10945 (Add extensible user ID change support)




Change Properties
Action