Re: [Trac] How to rename users

2015-05-27 Thread Mo
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 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 
2015-05-27 09:40:43,441 Trac[perm] DEBUG: No policy allowed anonymous 
performing BROWSER_VIEW on 
2015-05-27 09:40:43,442 Trac[perm] DEBUG: No policy allowed anonymous 
performing BROWSER_VIEW on 
2015-05-27 09:40:43,442 Trac[perm] DEBUG: No policy allowed anonymous 
performing BROWSER_VIEW on 
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 
2015-05-27 09:40:43,444 Trac[perm] DEBUG: No policy allowed anonymous 
performing TRAC_ADMIN on 
2015-05-27 09:40:43,444 Trac[perm] DEBUG: No policy allowed anonymous 
performing TRAC_ADMIN on 
2015-05-27 09:40:43,444 Trac[perm] DEBUG: No policy allowed anonymous 
performing PERMISSION_GRANT on 
2015-05-27 09:40:43,445 Trac[perm] DEBUG: No policy allowed anonymous 
performing PERMISSION_REVOKE on 
2015-05-27 09:40:43,445 Trac[perm] DEBUG: No policy allowed anonymous 
performing TRAC_ADMIN on 
2015-05-27 09:40:43,445 Trac[perm] DEBUG: No policy allowed anonymous 
performing TICKET_ADMIN on 
2015-05-27 09:40:43,445 Trac[perm] DEBUG: No policy allowed anonymous 
performing TICKET_ADMIN on 
2015-05-27 09:40:43,445 Trac[perm] DEBUG: No policy allowed anonymous 
performing TICKET_ADMIN on 
2015-05-27 09:40:43,446 Trac[perm] DEBUG: No policy allowed anonymous 
performing TICKET_ADMIN on 
2015-05-27 09:40:43,446 Trac[perm] DEBUG: No policy allowed anonymous 
performing TICKET_ADMIN on 
2015-05-27 09:40:43,446 Trac[perm] DEBUG: No policy allowed anonymous 
performing TICKET_ADMIN on 
2015-05-27 09:40:43,446 Trac[perm] DEBUG: No policy allowed anonymous 
performing TICKET_ADMIN on 


It seems that username is received as "None", eventhough the same 
credentials are entered. Replacing the plugin with the 

Re: [Trac] How to rename users

2015-05-23 Thread Steffen Hoffmann
-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-

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] How to rename users

2015-05-22 Thread Mo
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.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] How to rename users

2015-05-21 Thread Ryan Ollos
On Thu, May 21, 2015 at 1:20 AM, Mo  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.


> 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.
>

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] How to rename users

2015-05-21 Thread Mo
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) ? 

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] How to rename users

2015-05-21 Thread Mo
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?
> http://trac.edgewall.org/wiki/TracUpgrade#a5.Refreshstaticresources
>

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.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] How to rename users

2015-05-20 Thread Steffen Hoffmann
-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-

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] How to rename users

2015-05-20 Thread Ryan Ollos
On Wed, May 20, 2015 at 7:38 AM, Mo  wrote:

>
>
> 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
>

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?
http://trac.edgewall.org/wiki/TracUpgrade#a5.Refreshstaticresources

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] How to rename users

2015-05-20 Thread Mo


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

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] How to rename users

2015-05-20 Thread Mo


Am Mittwoch, 20. Mai 2015 15:22:48 UTC+2 schrieb RjOllos:
>
> On Wed, May 20, 2015 at 6:00 AM, Mo > 
> wrote:
>
>> 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
>>
>
> 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.
>

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

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this gro

Re: [Trac] How to rename users

2015-05-20 Thread Ryan Ollos
On Wed, May 20, 2015 at 6:00 AM, Mo  wrote:

>
> 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
>

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.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] How to rename users

2015-05-20 Thread Mo

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

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] How to rename users

2015-05-20 Thread Jun Omae
On Wed, May 20, 2015 at 8:47 PM, Mo  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)


-- 
Jun Omae  (大前 潤)

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] How to rename users

2015-05-20 Thread Mo


Am Mittwoch, 20. Mai 2015 13:36:16 UTC+2 schrieb Jun Omae:
>
> > Am Mittwoch, 20. Mai 2015 13:14:12 UTC+2 schrieb Jun Omae: 
> > 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. 
>
> 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. 
>

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

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] How to rename users

2015-05-20 Thread Jun Omae
> Am Mittwoch, 20. Mai 2015 13:14:12 UTC+2 schrieb Jun Omae:
> 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.

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.

-- 
Jun Omae  (大前 潤)

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] How to rename users

2015-05-20 Thread Mo


Am Mittwoch, 20. Mai 2015 13:14:12 UTC+2 schrieb Jun Omae:
>
> On Wed, May 20, 2015 at 8:09 PM, Mo > 
> 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.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] How to rename users

2015-05-20 Thread Jun Omae
On Wed, May 20, 2015 at 8:09 PM, Mo  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  (大前 潤)

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


[Trac] How to rename users

2015-05-20 Thread Mo
Hi,

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

Best regards, Mo

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


[Trac] How to rename users?

2007-10-13 Thread Steve McCusker

Marcus

Here are the two Python scripts for changing user names throughout a Trac
0.10.4 database and for changing the Apache digest file. If you are using
Basic authorisation instead of digest, the script would need modifying.

I have used the scripts on my Windows 2000 Trac 0.10.4 installation and it
looks OK.

Hope this is of some help.

Steve McCusker

PS I did send these to you direct earlier but maybe they didn't get through.

generate_user_change_digest.py
--

# Generate a new Apache digest file with old users names replaced by new
ones
# and new users names added. The program can replace old passwords as well,
and
# for new users it will generate a password if none is supplied.
# The program reads a text file with lines that contain:
#   a single letter code (O for Old users or N for new users)
#   the old user name if the code='O' or the digest realm for the new user
if code='N'
#   the new user name
#   a password
# These parameters are separated by white space and must not contain white
space.
#
# This is the same file format as used by generate_user_change_sql.py
#
# Entries in the old digest file for users not listed in the user_names_file
# are copied to the new digest file without change.
#
# Usage:
#   python generate_user_change_digest.py user_names_file_name
old_digest_file new_digest_file
#
# Tested using Python 2.3.5 & Apache 2.0.59
#
# (c) 2007  Steve McCusker, Granmac Pty Ltd ([EMAIL PROTECTED])
#
# This program is not guaranteed to be correct, any use is at the user's
risk.
# The author does not restrict the use of this program in any way.

import sys
from string import *
import os.path
from random import sample
import md5

if len(sys.argv) != 4:
print('There must be three command line parameters.')
print('Usage:')
print('  python generate_user_change_digest.py user_names_file_name
old_digest_file new_digest_file')
exit(2)

inputFile = open(sys.argv[1],'r')
user_names = inputFile.readlines()
inputFile.close()

new_users = []
name_mapping = {}

for user in user_names:
words = split(user)
code = upper(words[0])
if (len(words) < 3) or (len(words) > 4):
print("ERROR: Incorrrect format in " + user)
if code == 'N':
new_user = [rstrip(words[2]), rstrip(words[1])]
if len(words) == 4:
new_user.append(rstrip(words[3]))
new_users.append(new_user)
else:
old_user = [rstrip(words[2])]
if len(words) == 4:
old_user.append(rstrip(words[3]))
name_mapping[rstrip(words[1])] = old_user

inputFile = open(sys.argv[2],'r')
old_digest_lines = inputFile.readlines()
inputFile.close()
outputFile = open(sys.argv[3],'wb')

for line in old_digest_lines:
digest_entry = split(line,':')
old_user = digest_entry[0]
if name_mapping.has_key(digest_entry[0]):
new_user = name_mapping[old_user]
if len(new_user) == 1:
password = rstrip(digest_entry[2])
else:
password = new_user[1]
realm = digest_entry[1]
print('Changing old user '+old_user+' to new user '+new_user[0]+'
with password '+password)
prefix = '%s:%s:' % (new_user[0], realm)
unenc = prefix + password
digest = md5.new(unenc).hexdigest()
new_entry = prefix + digest
outputFile.write(new_entry +'\n')
else:
print("Copying unchanged user '"+old_user+\
  "' to new digest file.")
outputFile.write(line)

for new_user in new_users:
if len(new_user) == 2:
new_pass = ''.join(sample(lowercase,2)+sample(digits,2)+\
   sample(uppercase,2)+sample(lowercase,2))
else:
new_pass = new_user[2]
realm = new_user[1]
print('Adding new user '+new_user[0]+' with password '+new_pass)
prefix = '%s:%s:' % (new_user[0], realm)
unenc = prefix + new_pass
digest = md5.new(unenc).hexdigest()
new_entry = prefix + digest
outputFile.write(new_entry +'\n')

outputFile.close()


generate_user_change_sql.py
---

# Generate the SQL needed to change the Trac 0.10.4 database to change a
user name.
# The program reads a text file with lines that contain:
#   a single letter code (O for Old users or N for new users)
#   the old user name if the code='O' or the digest realm for the new user
if code='N'
#   the new user name
#   a password
# These parameters are separated by white space and must not contain white
space.
#
# This is the same file format as used by generate_user_change_digest.py
# This program does not use the password field and ignores lines starting
# with a code of 'N'.
#
# Usage:
#   python generate_user_change_sql.py user_names_file_name new_sql_file
#
# Tested using Python 2.3.5
#
# (c) 2007  Steve McCusker, Granmac Pty Ltd ([EMAIL PROTECTED])
#
# This program is not guaranteed to be correct, any use is at the user's
risk.
# The author does not restrict the use of this program in any way.

import sys
from string i

[Trac] How to rename users?

2007-09-27 Thread Steve McCusker

Hi Marcus

I have the same problem.

The user names appear in lots of tables in the database. These fields hold
the actual user name strings not just foreign keys into the
session_attribute table where user names and email addresses are stored. So
if you change a user name you have to find all the occurrences of the user
name in the database and change it there too.

I have written a piece of SQL to do this, and because I have quite a few
users to change, I wrote a python script to generate the SQL for all the
user names in a text file (with each line having the old user name and the
new user name for one user).

The other part of the problem I had was to change the user names in the
Apache digest file I use for authentication. I wrote another python script
to change these. This uses the same text file as input as the first python
script described above.

I can let you have copies of these if you like BUT all of these scripts are
untested as I haven't got to the point when I want to make the changes. So
you might prefer not to use the scripts or to wait until I have tested them,
probably in a week or two.

Cheers

Steve McCusker

PS I am using Trac 0.10.4
No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.488 / Virus Database: 269.13.32/1033 - Release Date: 27/09/2007
11:06


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] How to rename users?

2007-09-26 Thread Marcus Lindblom

Hi,

We have the unfortunate situation that some users have different name
in different trac instances. There are tickets assoicated with users
in both places. In order to fix this, we'd like to rename the users
and avoid having to reassign all tickets by hand.

Is this possible somehow? I couldn't find anything in this group or on
the trac site.

Cheers,
/Marcus


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---