Basically I m not using htpasswd to store passwords. As I am hosting multiple 
repo I am using accountmanagers's session store. It does not use any htpasswd 
file as per my knowledge. That session-store stores all the passwords/logins in 
its owl trac site.  I found a workaround to get my job done.

1) I add a user having TRAC_ADMIN privilidges by my script
2) That user  is already available in one htpasswd file (whose path I have 
commented in /etc/apache2/httpd.conf as I am using webview+accountmanager). 
3) Uncomment that line in httpd.conf of apache.
4) I restart apache. login through http and add one more TRAC_ADMIN user.
5) I delete the old user. 
6) Comment back that same line in httpd.conf. 
7) Restart apache and so I have one superuser working according to my wishes.

My be next time I will post my script which does the initial thing. I know that 
it a lil bit of quacky solution but its doing my job. The whole thig is coming 
due to sessionStore of AccountManager plugin.

regards -

 Alind Sharma




________________________________
From: Sergio Charpinel Jr. <[email protected]>
To: [email protected]
Sent: Wednesday, 26 August, 2009 5:12:00 PM
Subject: [Trac] Re: trac_admin and account-manager plugin

You want to add user password? Just add a entry in your HtPasswd file.
I dont know if it is what you are asking for.


2009/8/13 alind <[email protected]>


>>I have written a sript (linux shell + python) to automate most of the
>>task of creating a blank mercurial repository,  putting up a trac
>>site, editing the trac.ini file of the site. I am using account-
>>manager plugin and its SessionStore + HtPasswdHashMethod. Now as I
>>dont have any admin user by default on this newly created site,
>>Now the problem is that how can I add password to the WIKI_ADMIN user
>>Suppose I create user using
>>trac-admin $NEW_REPO permission add super_user_name WIKI_ADMIN
>>But I cant login into the super_user_name without setting the
>>password.
>
>>I am also using web_view plugin. I have disabled the registration
>>module. The scenario is to be used for a restrcted access where
>>anonymous users cant access the repo (this I am able to do). And i
>>want to automate the process of adding new repo with minmum human
>>intervention for future use.
>>Hope I was able to explain clearly. I can be more detailed if
>>required.
>>Thanks in advance.
>
>
>


-- 
Sergio Roberto Charpinel Jr.



      Love Cricket? Check out live scores, photos, video highlights and more. 
Click here http://cricket.yahoo.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to