How to rename users

277 views
Skip to first unread message

Mo

unread,
May 20, 2015, 7:09:29 AM5/20/15
to trac-...@googlegroups.com
Hi,

how can I rename existing user accounts? Is this only possible directly in the database while adjusting htpasswd accordingly?

Best regards, Mo

Jun Omae

unread,
May 20, 2015, 7:14:12 AM5/20/15
to trac-...@googlegroups.com
On Wed, May 20, 2015 at 8:09 PM, Mo <burcheri...@gmail.com> wrote:
> how can I rename existing user accounts? Is this only possible directly in
> the database while adjusting htpasswd accordingly?

See https://trac-hacks.org/wiki/RenameUserPlugin and
https://trac-hacks.org/wiki/RenameUsersScript.

--
Jun Omae <jun...@gmail.com> (大前 潤)

Mo

unread,
May 20, 2015, 7:25:54 AM5/20/15
to trac-...@googlegroups.com


Am Mittwoch, 20. Mai 2015 13:14:12 UTC+2 schrieb Jun Omae:
On Wed, May 20, 2015 at 8:09 PM, Mo <burcheri...@gmail.com> wrote:
> how can I rename existing user accounts? Is this only possible directly in
> the database while adjusting htpasswd accordingly?

See https://trac-hacks.org/wiki/RenameUserPlugin and
https://trac-hacks.org/wiki/RenameUsersScript.

Both are deprecated, as functionality was added to AccountManager? I have AccountManager installed, and tried
  trac-admin /path/to/trac/environment renameuser oldname newname
but that does not work:
  Error: Command not found

RenameUserPlugin says it has an AdminPanel for renaming users, also added to AccountManager, but I can't see a panel but Admin->Accounts->Users->Review Account Attributes or Add/Change, neither supports the change of the username itself.

Jun Omae

unread,
May 20, 2015, 7:36:16 AM5/20/15
to trac-...@googlegroups.com
Admin-ui panel for changing new uid is added. See
https://trac-hacks.org/ticket/10902#comment:4

AccountManagerPlugin 0.5 is not released yet. If you want to use,
install https://trac-hacks.org/svn/accountmanagerplugin/trunk.

Mo

unread,
May 20, 2015, 7:47:28 AM5/20/15
to trac-...@googlegroups.com

I have the trunk version installed, as well as trac 1.0.4.
I can't see the Admin Panel for changing usernames.

Jun Omae

unread,
May 20, 2015, 8:00:36 AM5/20/15
to trac-...@googlegroups.com
On Wed, May 20, 2015 at 8:47 PM, Mo <burcheri...@gmail.com> wrote:
>> AccountManagerPlugin 0.5 is not released yet. If you want to use,
>> install https://trac-hacks.org/svn/accountmanagerplugin/trunk.
>
> I have the trunk version installed, as well as trac 1.0.4.
> I can't see the Admin Panel for changing usernames.

I just confirm with Trac 1.0.5 and accountmanagerplugin trunk on new virtualenv.
The panel exists.

1. Visit /admin
2. Click Accounts / Users link in side bar
3. Click username link in accounts list (See attached accounts-list.png)
4. Click "Change User ID" tab (See attached change-uid.png)
accounts-list.png
change-uid-tab.png

Mo

unread,
May 20, 2015, 9:00:58 AM5/20/15
to trac-...@googlegroups.com

Am Mittwoch, 20. Mai 2015 14:00:36 UTC+2 schrieb Jun Omae:

I just confirm with Trac 1.0.5 and accountmanagerplugin trunk on new virtualenv.
The panel exists.

 1. Visit /admin
 2. Click Accounts / Users link in side bar
 3. Click username link in accounts list (See attached accounts-list.png)
 4. Click "Change User ID" tab (See attached change-uid.png)
 
Thank you very much.
But I'm sorry, this Change User ID tab does not exist here.

I even updated to trac 1.0.5 now. I got the AccountManagerPlugin like this:

svn co http://trac-hacks.org/svn/accountmanagerplugin/
cd accountmanagerplugin/trunk/
python setup.py bdist_egg
cp dist/TracAccountManager-0.5dev_r0-py2.7.egg ~/projects/trac/plugins
rc-service uwsgi restart

Ryan Ollos

unread,
May 20, 2015, 9:22:48 AM5/20/15
to trac-...@googlegroups.com
I can see only two possibilities:
 - the plugin you think is loading is not the plugin being loaded in your environment: check the version on your plugin admins panel.
 - the necessary components are not enabled in your environment: you'll need "acct_mgr.model.* = enabled".

However, I'm not even sure that the latter would prevent the //Change User ID// tab from being visible.

The tab does exist. There is something wrong or misconfigured in your environment.


Mo

unread,
May 20, 2015, 10:23:19 AM5/20/15
to trac-...@googlegroups.com, ryan.j...@gmail.com

Weird. After doing the installation steps from scratch with a fresh svn co, I found  2 egg files:
-rw-r--r-- 1 trac trac 214K Mai 20 16:04 TracAccountManager-0.5.dev0-py2.7.egg
-rw-r--r-- 1 trac trac 214K Mai 20 13:45 TracAccountManager-0.5dev_r0-py2.7.egg

Removing both and re-installing the new one did not help.
I deleted ~trac/.python-eggs/* which seems to cache the egg file at runtime. The tab is still not there.

Adding acct_mgr.model.* = enabled did not help either. However from the debug log, the right plugin is loaded, but there is no component acct_mgr.model

2015-05-20 16:15:19,878 Trac[loader] DEBUG: Loading acct_mgr.admin from /mnt/data/trac/projects/trac/plugins/TracAccountManager-0.5.dev0-py2.7.egg
2015-05-20 16:15:19,884 Trac[loader] DEBUG: Loading acct_mgr.api from /mnt/data/trac/projects/trac/plugins/TracAccountManager-0.5.dev0-py2.7.egg
2015-05-20 16:15:19,885 Trac[loader] DEBUG: Loading acct_mgr.db from /mnt/data/trac/projects/trac/plugins/TracAccountManager-0.5.dev0-py2.7.egg
2015-05-20 16:15:19,886 Trac[loader] DEBUG: Loading acct_mgr.htfile from /mnt/data/trac/projects/trac/plugins/TracAccountManager-0.5.dev0-py2.7.egg
2015-05-20 16:15:19,887 Trac[loader] DEBUG: Loading acct_mgr.http from /mnt/data/trac/projects/trac/plugins/TracAccountManager-0.5.dev0-py2.7.egg
2015-05-20 16:15:19,888 Trac[loader] DEBUG: Loading acct_mgr.macros from /mnt/data/trac/projects/trac/plugins/TracAccountManager-0.5.dev0-py2.7.egg
2015-05-20 16:15:19,889 Trac[loader] DEBUG: Loading acct_mgr.notification from /mnt/data/trac/projects/trac/plugins/TracAccountManager-0.5.dev0-py2.7.egg
2015-05-20 16:15:19,891 Trac[loader] DEBUG: Loading acct_mgr.opt.announcer.uid_chg from /mnt/data/trac/projects/trac/plugins/TracAccountManager-0.5.dev0-py2.7.egg
2015-05-20 16:15:19,918 Trac[loader] DEBUG: Skipping "acct_mgr.opt.announcer.uid_chg = acct_mgr.opt.announcer.uid_chg [announcer]": ("DistributionNotFound: TracAnnouncer" not found)
2015-05-20 16:15:19,918 Trac[loader] DEBUG: Loading acct_mgr.opt.radius from /mnt/data/trac/projects/trac/plugins/TracAccountManager-0.5.dev0-py2.7.egg
2015-05-20 16:15:19,944 Trac[loader] DEBUG: Skipping "acct_mgr.opt.radius = acct_mgr.opt.radius [pyrad]": ("DistributionNotFound: Pyrad" not found)
2015-05-20 16:15:19,944 Trac[loader] DEBUG: Loading acct_mgr.opt.tracforms.uid_chg from /mnt/data/trac/projects/trac/plugins/TracAccountManager-0.5.dev0-py2.7.egg
2015-05-20 16:15:19,970 Trac[loader] DEBUG: Skipping "acct_mgr.opt.tracforms.uid_chg = acct_mgr.opt.tracforms.uid_chg [forms]": ("DistributionNotFound: TracForms" not found)
2015-05-20 16:15:19,970 Trac[loader] DEBUG: Loading acct_mgr.opt.tracscreenshots.uid_chg from /mnt/data/trac/projects/trac/plugins/TracAccountManager-0.5.dev0-py2.7.egg
2015-05-20 16:15:19,996 Trac[loader] DEBUG: Skipping "acct_mgr.opt.tracscreenshots.uid_chg = acct_mgr.opt.tracscreenshots.uid_chg [screenshots]": ("DistributionNotFound: TracScreenshots" not found)
2015-05-20 16:15:19,996 Trac[loader] DEBUG: Loading acct_mgr.opt.tracvote.uid_chg from /mnt/data/trac/projects/trac/plugins/TracAccountManager-0.5.dev0-py2.7.egg
2015-05-20 16:15:20,023 Trac[loader] DEBUG: Skipping "acct_mgr.opt.tracvote.uid_chg = acct_mgr.opt.tracvote.uid_chg [vote]": ("DistributionNotFound: TracVote" not found)
2015-05-20 16:15:20,023 Trac[loader] DEBUG: Loading acct_mgr.pwhash from /mnt/data/trac/projects/trac/plugins/TracAccountManager-0.5.dev0-py2.7.egg
2015-05-20 16:15:20,024 Trac[loader] DEBUG: Loading acct_mgr.register from /mnt/data/trac/projects/trac/plugins/TracAccountManager-0.5.dev0-py2.7.egg
2015-05-20 16:15:20,025 Trac[loader] DEBUG: Loading acct_mgr.svnserve from /mnt/data/trac/projects/trac/plugins/TracAccountManager-0.5.dev0-py2.7.egg
2015-05-20 16:15:20,026 Trac[loader] DEBUG: Loading acct_mgr.web_ui from /mnt/data/trac/projects/trac/plugins/TracAccountManager-0.5.dev0-py2.7.egg

Mo

unread,
May 20, 2015, 10:38:14 AM5/20/15
to trac-...@googlegroups.com, ryan.j...@gmail.com


Am Mittwoch, 20. Mai 2015 16:23:19 UTC+2 schrieb Mo:

2015-05-20 16:15:19,891 Trac[loader] DEBUG: Loading acct_mgr.opt.announcer.uid_chg from /mnt/data/trac/projects/trac/plugins/TracAccountManager-0.5.dev0-py2.7.egg
2015-05-20 16:15:19,918 Trac[loader] DEBUG: Skipping "acct_mgr.opt.announcer.uid_chg = acct_mgr.opt.announcer.uid_chg [announcer]": ("DistributionNotFound: TracAnnouncer" not found)

About this skipping... Is this responsible for the missing username changer?
Is the TracAnnouncer plugin required for that? I had to disable that after this issue:
https://groups.google.com/d/msg/trac-users/qyHgywBxEuo/5NQ0mhI3Q1kJ

Ryan Ollos

unread,
May 20, 2015, 10:46:47 AM5/20/15
to Mo, trac-...@googlegroups.com
That's just an optional component for renaming UIDs associated with AnnouncerPlugin. You should still have the basic AccountManager UID renaming functionality.

Do you show AccountManager 0.5dev installed on the "About Trac" page? 

Did you refresh static resources after the plugin install?

Steffen Hoffmann

unread,
May 20, 2015, 6:53:26 PM5/20/15
to trac-...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 20.05.2015 16:23, Mo wrote:
> Adding acct_mgr.model.* = enabled did not help either. However from the
> debug log, the right plugin is loaded, but there is no component
> acct_mgr.model

It might be worth looking for a small (i) sign in the web-UI, that
should explain, that UID change support is not available.

Apart from UID changer components there is more about the UID change,
especially it relies on password reset enabled an working too [1]. My
own recent tests regarding this issue indicate, that it might be too
hard by now to accomplish a working setup. Comments and suggestions welcome.

Steffen Hoffmann


[1]
https://trac-hacks.org/wiki/CookBook/AccountManagerPluginConfiguration#PasswordReset
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlVdEF4ACgkQ31DJeiZFuHfIDwCeJFy+Z2SR7wEjzdyAmK7Oxjfe
sPcAmgLN+2igqne0FhSK8ZvAgBnYoPLH
=2ewk
-----END PGP SIGNATURE-----

Mo

unread,
May 21, 2015, 4:20:25 AM5/21/15
to trac-...@googlegroups.com, ryan.j...@gmail.com, burcheri...@gmail.com
Am Mittwoch, 20. Mai 2015 16:46:47 UTC+2 schrieb RjOllos:

That's just an optional component for renaming UIDs associated with AnnouncerPlugin. You should still have the basic AccountManager UID renaming functionality.

Do you show AccountManager 0.5dev installed on the "About Trac" page? 

Did you refresh static resources after the plugin install?

Thanks, coming closer. About says:

acct-mgr.admin     N/A     /usr/lib64/python2.7/site-packages/acct_mgr/admin.pyc
acct
-mgr.api     N/A     /usr/lib64/python2.7/site-packages/acct_mgr/api.pyc
...

So my recent plugin is not used, really. These files are remaining from some early installation of www-apps/trac-accountmanager by the Gentoo-Distribution, the package was already uninstalled but the files are still there. I'm not even sure if this is a distribution bug. After package installation of the addon, the .pyc files are not there and they don't belong to the package, so removing these files is not part of the package.

However I deleted the directory, now About says:
TracAccountManager     0.5.dev0     /mnt/data/trac/projects/trac-pmp/plugins/TracAccountManager-0.5.dev0-py2.7.egg

I will have to re-check now all the issues I had with AccountManager and the Announcement plugin as I had some old release running all the time.

However, acct_mgr.model.* is there now, I enabled it, but the Admin->Accounts->Users still has not User ID tab, the account names are not even hyperlinked anymore.

About what Steffen said... I have
[account-manager]
reset_password = true

But I had issues with that some time ago and I'm still not sure how to get this fixed:
https://trac-hacks.org/ticket/12278


Best regards.

Mo

unread,
May 21, 2015, 5:06:59 AM5/21/15
to trac-...@googlegroups.com
Am Donnerstag, 21. Mai 2015 00:53:26 UTC+2 schrieb hasienda:

It might be worth looking for a small (i) sign in the web-UI, that
should explain, that UID change support is not available.

Where do I find that (i) ?

Ryan Ollos

unread,
May 22, 2015, 2:01:22 AM5/22/15
to Mo, trac-...@googlegroups.com
On Thu, May 21, 2015 at 1:20 AM, Mo <burcheri...@gmail.com> wrote:
Thanks, coming closer. About says:

acct-mgr.admin     N/A     /usr/lib64/python2.7/site-packages/acct_mgr/admin.pyc
acct
-mgr.api     N/A     /usr/lib64/python2.7/site-packages/acct_mgr/api.pyc
...

So my recent plugin is not used, really. These files are remaining from some early installation of www-apps/trac-accountmanager by the Gentoo-Distribution, the package was already uninstalled but the files are still there. I'm not even sure if this is a distribution bug. After package installation of the addon, the .pyc files are not there and they don't belong to the package, so removing these files is not part of the package.

However I deleted the directory, now About says:
TracAccountManager     0.5.dev0     /mnt/data/trac/projects/trac-pmp/plugins/TracAccountManager-0.5.dev0-py2.7.egg

I will have to re-check now all the issues I had with AccountManager and the Announcement plugin as I had some old release running all the time.

However, acct_mgr.model.* is there now, I enabled it, but the Admin->Accounts->Users still has not User ID tab, the account names are not even hyperlinked anymore.

Did you see my hint about needing to run the TracAdmin deploy command? You might not be using the templates from the latest version of the plugin you just installed.

Mo

unread,
May 22, 2015, 8:09:42 AM5/22/15
to trac-...@googlegroups.com, burcheri...@gmail.com, ryan.j...@gmail.com
Am Freitag, 22. Mai 2015 08:01:22 UTC+2 schrieb RjOllos:

Did you see my hint about needing to run the TracAdmin deploy command? You might not be using the templates from the latest version of the plugin you just installed.

Yes, I read that. As I guess I have no static resources, I did not deploy. I would not even know where to deploy.
Having static resources however I like to start sometime later, as it could improve the performance, no?


However I big issue with the AccountManagerPlugin, after enabling the real trunk version, no user is able to login anymore. Replacing TracAccountManager-0.5dev_r0-py2.7.egg by TracAccountManager-0.4.3-py2.7.egg built from 0.11 (?), the logins are working again.

The config section:
[account-manager]
htpasswd_file
= /mnt/data/trac/projects/trac/trac.htpasswd
htpasswd_hash_type
= md5
login_attempt_max_count
= 3
password_store
= HtPasswdStore
persistent_sessions
= true
reset_password
= true
user_lock_time
= 30


Something to adjust for the new version? Or something wrong configured and applied what the old version just ignored?

Best regards,
Mo.

Steffen Hoffmann

unread,
May 23, 2015, 1:03:27 PM5/23/15
to trac-...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 22.05.2015 14:09, Mo wrote:
> However I big issue with the AccountManagerPlugin, after enabling the
> real trunk version, no user is able to login anymore. Replacing
> TracAccountManager-0.5dev_r0-py2.7.egg by
> TracAccountManager-0.4.3-py2.7.egg built from 0.11 (?), the logins are
> working again.

README.update in the base directory of the plugin contains upgrading
information regarding thing to watch out for different version
transitions. But I cannot see anything relevant for the configuration
disclosed by you.

It could help to see DEBUG logging of such a failed login attempt,
ideally preceded by an environment reload. If you dislike sending it
here, you could easily send it to me directly, even encrypted with my
public OpenPGP key, if you insist.

Steffen Hoffmann
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlVgss4ACgkQ31DJeiZFuHfghQCfa/4p/MPEeWzmNs1/VbC3GDKM
ZFYAnjN/1FIw1eH81Yar5N4tg/tJpE4N
=1vjj
-----END PGP SIGNATURE-----

Mo

unread,
May 27, 2015, 3:55:30 AM5/27/15
to trac-...@googlegroups.com
Am Samstag, 23. Mai 2015 19:03:27 UTC+2 schrieb hasienda:

It could help to see DEBUG logging of such a failed login attempt,
ideally preceded by an environment reload. If you dislike sending it
here, you could easily send it to me directly, even encrypted with my
public OpenPGP key, if you insist.

I'm fine with posting DEBUG output with some ofuscated project and user names... if there is space for that in this mailing list...

Here is the DEBUG of a failed login:

2015-05-27 09:40:43,432 Trac[main] DEBUG: Dispatching <RequestWithSession "POST '/login'">V
2015-05-27 09:40:43,432 Trac[web_ui] DEBUG: LoginModule._remote_user: Authentication attempted for 'None'
2015-05-27 09:40:43,433 Trac[guard] DEBUG: AccountGuard.user_locked(None) = None (anonymous user)
2015-05-27 09:40:43,433 Trac[web_ui] DEBUG: LoginModule.authenticate: Set 'REMOTE_USER' = 'None'
2015-05-27 09:40:43,435 Trac[session] DEBUG: Retrieving session for ID '985923c96fe1d4f28ea34adc'
2015-05-27 09:40:43,436 Trac[web_ui] DEBUG: LoginModule.process_request: 'user_locked' = False
2015-05-27 09:40:43,436 Trac[chrome] DEBUG: Prepare chrome data for request
2015-05-27 09:40:43,437 Trac[perm] DEBUG: No policy allowed anonymous performing DISCUSSION_VIEW on None
2015-05-27 09:40:43,439 Trac[PyGIT] DEBUG: PyGIT.Storage instance 139990116671120 constructed
2015-05-27 09:40:43,439 Trac[PyGIT] DEBUG: requested weak PyGIT.Storage instance 139990116671120 for '/mnt/data/userspace/project-prod/projA/'
2015-05-27 09:40:43,439 Trac[git_fs] DEBUG: disabled CachedRepository for '/mnt/data/userspace/project-prod/projA/'
2015-05-27 09:40:43,439 Trac[PyGIT] DEBUG: PyGIT.Storage instance 139990116669136 constructed
2015-05-27 09:40:43,439 Trac[PyGIT] DEBUG: requested weak PyGIT.Storage instance 139990116669136 for '/mnt/data/userspace/project-prod/projB/'
2015-05-27 09:40:43,440 Trac[git_fs] DEBUG: disabled CachedRepository for '/mnt/data/userspace/project-prod/projB/'
2015-05-27 09:40:43,440 Trac[PyGIT] DEBUG: PyGIT.Storage instance 139990116668176 constructed
2015-05-27 09:40:43,440 Trac[PyGIT] DEBUG: requested weak PyGIT.Storage instance 139990116668176 for '/mnt/data/userspace/project-prod/projC/'
2015-05-27 09:40:43,440 Trac[git_fs] DEBUG: disabled CachedRepository for '/mnt/data/userspace/project-prod/projC/'
2015-05-27 09:40:43,441 Trac[PyGIT] DEBUG: PyGIT.Storage instance 139990115561680 constructed
2015-05-27 09:40:43,441 Trac[PyGIT] DEBUG: requested weak PyGIT.Storage instance 139990115561680 for '/mnt/data/userspace/project-prod/projB4/'
2015-05-27 09:40:43,441 Trac[git_fs] DEBUG: disabled CachedRepository for '/mnt/data/userspace/project-pb/projB4/'
2015-05-27 09:40:43,441 Trac[perm] DEBUG: No policy allowed anonymous performing BROWSER_VIEW on <Resource u'repository:proja, source:/'>
2015-05-27 09:40:43,441 Trac[perm] DEBUG: No policy allowed anonymous performing BROWSER_VIEW on <Resource u'repository:projb, source:/'>
2015-05-27 09:40:43,442 Trac[perm] DEBUG: No policy allowed anonymous performing BROWSER_VIEW on <Resource u'repository:projb4, source:/'>
2015-05-27 09:40:43,442 Trac[perm] DEBUG: No policy allowed anonymous performing BROWSER_VIEW on <Resource u'repository:projc, source:/'>
2015-05-27 09:40:43,442 Trac[perm] DEBUG: No policy allowed anonymous performing REPORT_VIEW on None
2015-05-27 09:40:43,443 Trac[perm] DEBUG: No policy allowed anonymous performing DISCUSSION_ADMIN on None
2015-05-27 09:40:43,443 Trac[perm] DEBUG: No policy allowed anonymous performing ACCTMGR_CONFIG_ADMIN on None
2015-05-27 09:40:43,443 Trac[perm] DEBUG: No policy allowed anonymous performing ACCTMGR_USER_ADMIN on None
2015-05-27 09:40:43,444 Trac[perm] DEBUG: No policy allowed anonymous performing TRAC_ADMIN on None
2015-05-27 09:40:43,444 Trac[perm] DEBUG: No policy allowed anonymous performing PROJECT_SETTINGS_VIEW on <Resource 'projects'>
2015-05-27 09:40:43,444 Trac[perm] DEBUG: No policy allowed anonymous performing TRAC_ADMIN on <Resource u'admin:general/basics'>
2015-05-27 09:40:43,444 Trac[perm] DEBUG: No policy allowed anonymous performing TRAC_ADMIN on <Resource u'admin:general/logging'>
2015-05-27 09:40:43,444 Trac[perm] DEBUG: No policy allowed anonymous performing PERMISSION_GRANT on <Resource u'admin:general/perm'>
2015-05-27 09:40:43,445 Trac[perm] DEBUG: No policy allowed anonymous performing PERMISSION_REVOKE on <Resource u'admin:general/perm'>
2015-05-27 09:40:43,445 Trac[perm] DEBUG: No policy allowed anonymous performing TRAC_ADMIN on <Resource u'admin:general/plugin'>
2015-05-27 09:40:43,445 Trac[perm] DEBUG: No policy allowed anonymous performing TICKET_ADMIN on <Resource u'admin:ticket/components'>
2015-05-27 09:40:43,445 Trac[perm] DEBUG: No policy allowed anonymous performing TICKET_ADMIN on <Resource u'admin:ticket/milestones'>
2015-05-27 09:40:43,445 Trac[perm] DEBUG: No policy allowed anonymous performing TICKET_ADMIN on <Resource u'admin:ticket/versions'>
2015-05-27 09:40:43,446 Trac[perm] DEBUG: No policy allowed anonymous performing TICKET_ADMIN on <Resource u'admin:ticket/priority'>
2015-05-27 09:40:43,446 Trac[perm] DEBUG: No policy allowed anonymous performing TICKET_ADMIN on <Resource u'admin:ticket/resolution'>
2015-05-27 09:40:43,446 Trac[perm] DEBUG: No policy allowed anonymous performing TICKET_ADMIN on <Resource u'admin:ticket/severity'>
2015-05-27 09:40:43,446 Trac[perm] DEBUG: No policy allowed anonymous performing TICKET_ADMIN on <Resource u'admin:ticket/type'>


It seems that username is received as "None", eventhough the same credentials are entered. Replacing the plugin with the old relesase version makes it work a
btw, switching plugins around I tried symlinking them like this: TracAccountManager.egg -> plugins.d/TracAccountManager-0.4.3-py2.7.egg
The plugin is correctly loaded but the plugins is failing, the "Login" link is completely missing:

2015-05-27 09:36:28,725 Trac[loader] DEBUG: Loading acct_mgr.admin from /mnt/data/trac/projects/trac-A/plugins/plugins.d/TracAccountManager-0.4.3-py2.7.egg
2015-05-27 09:36:28,731 Trac[loader] DEBUG: Loading acct_mgr.api from /mnt/data/trac/projects/trac-A/plugins/plugins.d/TracAccountManager-0.4.3-py2.7.egg
2015-05-27 09:36:28,733 Trac[loader] DEBUG: Loading acct_mgr.db from /mnt/data/trac/projects/trac-A/plugins/plugins.d/TracAccountManager-0.4.3-py2.7.egg



Mo

unread,
May 28, 2015, 2:50:37 AM5/28/15
to trac-...@googlegroups.com
In the meanwhile I removed the accounts and created new accounts with correct usernames. As the installation is not that old I re-assigned all tickets manually.
However I like to suggest, that a renaming function would be useful in core Trac for the next releases with all renamings required in the database.

Best regards.

RjOllos

unread,
May 28, 2015, 6:31:34 PM5/28/15
to trac-...@googlegroups.com
On Thursday, May 28, 2015 at 2:50:37 AM UTC-4, Mo wrote:
In the meanwhile I removed the accounts and created new accounts with correct usernames. As the installation is not that old I re-assigned all tickets manually.
However I like to suggest, that a renaming function would be useful in core Trac for the next releases with all renamings required in the database.

There is a possibility that much of the AccountManagerPlugin functionality could be integrated into Trac in the next major release (1.4). It is high on the list of changes I'm considering to pursue given the importance and fundamental functionality provided by AccountManagerPlugin.

- Ryan
Reply all
Reply to author
Forward
0 new messages