How can I change the name of the project?

19 views
Skip to first unread message

somenxavier

unread,
Mar 12, 2015, 2:26:05 PM3/12/15
to trac-...@googlegroups.com
Hi,

When I set the project environment as

$
trac-admin foo initenv

and I want to change foo name for 'bla'. How can I do that?
I assume Trac Standalone with foo as a realm in passwords file


Thanks a lot,
Xan

Ryan Ollos

unread,
Mar 12, 2015, 2:36:43 PM3/12/15
to trac-...@googlegroups.com
You can directly edit the [project] section of conf/trac.ini in your environment.



Alternatively, you can use:
$ trac-admin foo config set project name <new-name>


Xavier

unread,
Mar 13, 2015, 10:22:02 AM3/13/15
to trac-...@googlegroups.com, Ryan Ollos
On Thu, 12 Mar 2015 11:36:39 -0700
Ryan Ollos <rjo...@gmail.com> ha escrit:

> On Thu, Mar 12, 2015 at 6:08 AM, somenxavier <somen...@gmail.com> wrote:
>
> > Hi,
> >
> > When I set the project environment
> > <http://trac.edgewall.org/wiki/TracInstall#CreatingaProjectEnvironment> as
> >
> >
> > $ trac-admin foo initenv
> >
> >
> > and I want to change foo name for 'bla'. How can I do that?
> > I assume Trac Standalone with foo as a realm in passwords file
> > <http://trac.edgewall.org/wiki/TracStandalone#UsingAuthentication>
> >
>
> You can directly edit the [project] section of conf/trac.ini in your
> environment.
>
> - http://trac.edgewall.org/wiki/TracIni#project-section
>
>

But what about password file? I should change the realm to new name. And the directory when trac project runs (mv foo bla?)?

Thanks,

somenxavier

unread,
Mar 14, 2015, 1:07:34 PM3/14/15
to trac-...@googlegroups.com
The problem is the password file:

If I change realm:
[root@mercuri trac]# diff passwordstrac.txt passwordstracnew.txt
1c1
< xan:foo:a3d685a9cfeb66687ddf55eadf6113c3
---
> xan:bla:a3d685a9cfeb66687ddf55eadf6113c3

And I run
/usr/bin/python2 /usr/bin/tracd -d -p 8081 --protocol http --auth *,/etc/trac/passwordstracnew.txt,bla /srv/http/tasks/bla/
then I can't login with the same password. Strange?

What can I do?

El dijous, 12 març de 2015 19:26:05 UTC+1, somenxavier va escriure:

Dave Huang

unread,
Mar 14, 2015, 1:21:22 PM3/14/15
to trac-...@googlegroups.com
On 2015-03-14 12:07, somenxavier wrote:
> The problem is the password file:
>
> If I change realm:
> [root@mercuri trac]# diff passwordstrac.txt passwordstracnew.txt
> 1c1
> < xan:foo:a3d685a9cfeb66687ddf55eadf6113c3
> ---
> > xan:bla:a3d685a9cfeb66687ddf55eadf6113c3
>
> And I run
> /usr/bin/python2 /usr/bin/tracd -d -p 8081 --protocol http --auth
> *,/etc/trac/passwordstracnew.txt,bla /srv/http/tasks/bla/
> then I can't login with the same password. Strange?

That's how HTTP digest authentication works--the realm is included in
the hash: http://en.wikipedia.org/wiki/Digest_access_authentication
If you want to change the realm, you'll have to reset all the passwords.

--
Name: Dave Huang | Mammal, mammal / their names are called /
INet: kh...@azeotrope.org | they raise a paw / the bat, the cat /
FurryMUCK: Dahan | dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 39 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++

Xavier

unread,
Mar 15, 2015, 8:36:23 AM3/15/15
to trac-...@googlegroups.com, Dave Huang
Thanks, now auth works.

On Sat, 14 Mar 2015 12:21:08 -0500
Dave Huang <kh...@azeotrope.org> ha escrit:
> --
> You received this message because you are subscribed to a topic in the Google Groups "Trac Users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/trac-users/NOLXwB3esgE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to trac-users+...@googlegroups.com.
> To post to this group, send email to trac-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/trac-users.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages