RE: [Trac] LDAP plugin advice, user details

2010-06-24 Thread Cooke, Mark
 -Original Message-
 From: trac-users@googlegroups.com On Behalf Of smbr...@teledyne.com
 Sent: 22 June 2010 17:20
 To: trac-users@googlegroups.com
 Subject: [Trac] LDAP plugin advice, user details
 
 Hi all,
 
 The number of projects we have here is growing and I'm getting an 
 increasing number of complaints from users about having to 
 fill in their details repeatedly in the user preferences.
 
 I use apache and mod_ldap to authenticate. Trac running over 
 mod_python. 
 
 Looking on trac-hacks there are a number of LDAP plugins, 
 does anyone use any of them just to pull user data from LDAP (Active 
 Directory) rather than authentication as well?
 
 Any advice appreciated.
 
 Simon
 
I have the same issue.  I would have thought this must be a fairly
common scenario.  However, I have not tried any of the LDAP plugins as
none seemed suitable from what I could see.  I was thinking of rolling a
local python script to auto-replicate details between environments
(although this could run into problems if people need to use e.g.
different addresses for different tasks).

I hope someone will have a good suggestion.

~ mark c

P.S. As recently mentioned, recommend you replace the now dead
mod_python with mod_wsgi if you can...

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



Re: [Trac] Re: Doubts!!!

2010-06-24 Thread Erik Andersson
On Thu, Jun 24, 2010 at 1:06 AM, Josh Godsiff
j...@oxideinteractive.com.auwrote:

 What exactly are you asking?

 +1


 On 24/6/2010 7:31 AM, igormuzetti wrote:

 I installed Trac. I even accessed the trac browsing through my browser
 by typing:
 # Tracd-p 8080 / srv/trac/repositorios/projeto1
 I went on my browser and told:
 http://localhost:8080
 Appeared to list Project1, Project1 came in and went into the trac
 wiki.

 Now, I know some tool to access the trac integrated with svn
 (TortoiseSVN) because I already have it installed on client machines
 (windows) and the SVN server is installed on the server also has
 installed the trac. I'm on the road? The TracExplorer help me (for
 windows)?

 On 10 jun, 01:37, igormuzettiigormuze...@gmail.com  wrote:


 Personally, I could install trac on Suse 11.1 by downloading the
 package it (. Tar.gz) through this link:
 http://trac.edgewall.org/wiki/TracDownload
 and installing the same hand, now I try to configure it and start
 using it.

 On 9 jun, 18:56, igormuzettiigormuze...@gmail.com  wrote:



 Thanks! I managed to install Trac using the link:
 http://software.opensuse.org/search?q=tracbaseproject=openSUSE%
 3A11.2
 Has anyone heard of Trac Explorer? A plugin for integration with
 Subversion on windows? Not know what I should set in when SVN-
 Settings-  Scripts-hook  Inssue ...-  Add-  Add new server tell the
 directory created in C: \ track and then I click OK, then I must
 inform the server address track? That I do not know.





 --
 You received this message because you are subscribed to the Google Groups
 Trac Users group.
 To post to this group, send email to trac-us...@googlegroups.com.
 To unsubscribe from this group, send email to
 trac-users+unsubscr...@googlegroups.comtrac-users%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/trac-users?hl=en.



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



Re: [Trac] Write-access to the svn repository via the source browser

2010-06-24 Thread Ryan J Ollos


Piper, Nick wrote:
 
 
 It's already been discussed a little over the last few years as
 http://trac.edgewall.org/ticket/2956
 
 That ticket is mostly about 'Upload file', but we'd also like to have:
  * Rename
  * Delete
  * mkdir
  * Maybe edit for simple text files
 

Just curious if anyone has seen features like this implemented in a
standalone application, something similar to ViewVC or WebSVN (both of which
are purely viewers).

A copy operation would also useful, for the purpose of automatically
creating branches when tickets are accepted.

-- 
View this message in context: 
http://old.nabble.com/Write-access-to-the-svn-repository-via-the-source-browser-tp28974369p28980072.html
Sent from the Trac Users mailing list archive at Nabble.com.

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



Re: [Trac] LDAP plugin advice, user details

2010-06-24 Thread Emmanuel Blot
 Looking on trac-hacks there are a number of LDAP plugins, does anyone use
 any of them just to pull user data from LDAP (Active Directory) rather
 than authentication as well?

As far as I can tell, there is no API in Trac to retrieve details from
anywhere but its own database.
The IUserDirectory interface (or whatever its new name) has been
discussed many times, but is yet to be implemented; meanwhile no Trac
plugin may provide user data to the Trac core for now.

Cheers,
Manu

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



Re: [Trac] Write-access to the svn repository via the source browser

2010-06-24 Thread W. Martin Borgert

Quoting Ryan J Ollos ry...@physiosonics.com:

A copy operation would also useful, for the purpose of automatically
creating branches when tickets are accepted.


This could probably be more easily achieved by a post-commit-hook.

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



Re: [Trac] LDAP plugin advice, user details

2010-06-24 Thread Pendorbound
On Jun 24, 2010, at 2:15, Cooke, Mark mark.co...@siemens.com wrote:
 -Original Message-
 From: trac-users@googlegroups.com On Behalf Of smbr...@teledyne.com
 Sent: 22 June 2010 17:20
 To: trac-users@googlegroups.com
 Subject: [Trac] LDAP plugin advice, user details
 
 Hi all,
 
 The number of projects we have here is growing and I'm getting an 
 increasing number of complaints from users about having to 
 fill in their details repeatedly in the user preferences. 
 
 
 Looking on trac-hacks there are a number of LDAP plugins, 
 does anyone use any of them just to pull user data from LDAP (Active 
 Directory) rather than authentication as well?
 
 
 
 

Are you just looking to pre-fill username and email from AD?  I'm not sure if 
it's quite what you're looking for, but I wrote a Python script which drives 
the LDAP plugin to pre-populate Trac with users' name and email address on a 
scheduled basis (we've got it cron'd once an hour).  It also does a bit more 
such as populate a memcached that I hacked into the LDAP plugin to speed things 
up a bit, but that could be torn back out easily enough.

I'm away from my desk for the morning, but I could post the script or perhaps 
just attach it to the TracHacks wiki page for the LDAP plugin later today if 
you'd find that useful.

We still do use the LdapPlugin for authentication, but just to do group lookups 
as we have Apache handling the actual user login in front of Trac.  I don't see 
any reason that the user population part shouldn't work independently of the 
actual login though.

Best regards,
Zac Bedell

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



Re: [Trac] LDAP plugin advice, user details

2010-06-24 Thread smbrown
trac-users@googlegroups.com wrote on 24/06/2010 12:50:23:
 Are you just looking to pre-fill username and email from AD?  I'm 
 not sure if it's quite what you're looking for, but I wrote a Python
 script which drives the LDAP plugin to pre-populate Trac with users'
 name and email address on a scheduled basis (we've got it cron'd 
 once an hour).  It also does a bit more such as populate a memcached
 that I hacked into the LDAP plugin to speed things up a bit, but 
 that could be torn back out easily enough.

Yes, just so people can get notifications from trac environments they've 
never used 

 I'm away from my desk for the morning, but I could post the script 
 or perhaps just attach it to the TracHacks wiki page for the LDAP 
 plugin later today if you'd find that useful.

Putting it on Track hacks sounds like a good idea to me.

Thanks

Simon

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



[Trac] Re: Help with new trac 12 plugin upgrade

2010-06-24 Thread Bobbysmith007
Thanks very much for your responses!

 If you're talking about the upgrade process only, then you have to
 realize that there's anyway no global transaction going on. For most
 backends (well, any except PostgreSQL), most of the changes happening
 during an upgrade like creating a new table, adding a column, etc. will
 do an implicit commit and can't be rollbacked.
 Seehttp://trac.edgewall.org/changeset/9568in particular.

I run postgresql primarily.  I'm curious why I kept getting aborted
transactions errors though if this was not being transactioned.
(Perhaps autocommit is off by default on postgres, and so the missing
commit / close calls (that I just removed) are part of the problem).
If as stated all the other backends tend to autocommit for most
everything anyway, then I could see this behaviour (an error in a
select causing subsequent upgrade statements to fail) being missed.

The solution I came up with, but have not fully tested yet, was the
use of savepoints which seems to support a standard syntax in all of
the supported backends (NOT TESTED, but SQL99 standard).  I also
rewrote and reorganized my upgrade code to not use table existence
checks in the couple places it was.

Once I spent a day thinking and refactoring my upgrade process so that
it was not relying on catching so many exceptions, I was no longer
getting upgrade errors. Thus I think that overall I made my upgrade
process more robust.  Also if the main upgrade process is not in a
transaction then my try/catched'ed postgres sequence updates shouldn't
cause problems on other backends. (Though I still need to test more)

http://en.wikipedia.org/wiki/Savepoint
http://www.sqlite.org/lang_savepoint.html
http://www.postgresql.org/docs/current/interactive/sql-savepoint.html
http://dev.mysql.com/doc/refman/5.0/en/savepoint.html

#Savepoint example:
def db_table_exists(env,  table):
db = env.get_read_db()
cur = db.cursor()
has_table = True;
try: # an exception can break a transaction if we are in one
cur.execute(SAVEPOINT db_table_exists;)
cur.execute(SELECT * FROM %s LIMIT 1 % table)
except Exception, e:
cur.execute(ROLLBACK TO SAVEPOINT db_table_exists;)
has_table = False
return has_table



  An example:  updating the sequences in postgresql to contain the new
  correct value (after manually inserting rows with new ids).  This is not
  necessary and invalid in sqllite but seemed necessary in Postgresql, so
  that there would not be duplicate ids.

 Bitten has this problem as well, IIRC. Would be nice to have a
 standard way to handle this, which is what 
 http://trac.edgewall.org/ticket/8575 is about. There's an
 update_sequence function you could try, and if that works, this could
 be turned into a patch which would add corresponding dummy functions for
 the other backends...

As to the patches I may look into that, but I have an awful lot else
on my plate at the moment.


Thanks again,
Russ

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



[Trac] Where does Trac store changesets?

2010-06-24 Thread David
I am currently trying to brose the changeset databases and so far I
believe that the sqlite:db/trac.db only stores types of changes and
paths to files without actually storing the changes while the svn
repository itself seems to store all data in binary files (which I
can't figure out how to access). Is there any interface which can be
tweaked to return a source repository directory or a stream of the
source files (besiders ITemplateStreamFilter, I need access to the
whole repository)? I'm writing a plugin which needs to browse the
repository in it's entirety and access previous revisions of the
repository, like the Backlinks plugin for wiki pages but for the
actual source and not wiki pages.

Long story short, how can a plugin access the repository and analyze
the text?

thanks!
DMS
dmarangonisimon...@gmail.com

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



[Trac] Re: Where does Trac store changesets?

2010-06-24 Thread David
NVM, found it [ Context(oject) does the trick] Is there a was to get a
list of repository files at an arbitrary revision number?

On Jun 24, 11:00 am, David dmarangonisimon...@gmail.com wrote:
 I am currently trying to brose the changeset databases and so far I
 believe that the sqlite:db/trac.db only stores types of changes and
 paths to files without actually storing the changes while the svn
 repository itself seems to store all data in binary files (which I
 can't figure out how to access). Is there any interface which can be
 tweaked to return a source repository directory or a stream of the
 source files (besiders ITemplateStreamFilter, I need access to the
 whole repository)? I'm writing a plugin which needs to browse the
 repository in it's entirety and access previous revisions of the
 repository, like the Backlinks plugin for wiki pages but for the
 actual source and not wiki pages.

 Long story short, how can a plugin access the repository and analyze
 the text?

 thanks!
 DMS
 dmarangonisimon...@gmail.com

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