Danny Adair wrote: > Thanks Noah, Thanks Brad, > > That looks simple enough, Brad (though I would have preferred not to > touch the (apt-get installed) trac source). I'll give it a shot. > > 1. So I can use DbAuth just for the IUserDirectory information? > Authentication is done and user name is passed through by Apache.
Ah, I see. Well, you won't really need DbAuth, then. Just the IUserDirectory patch on #2456. But there is an example of a custom UserDir plugin in DbAuth code... http://www.trac-hacks.org/browser/dbauthplugin/0.10/dbauth/userdir.py#L22 I could see you writing your own DannyUserDirectory plugin, that goes against your own tables, instead of the Trac session table... As a starting point, you could use the one in DbAuth code, or the DefaultUserDirectory one in the patch. > > 2. Aren't user id (for authentication - "banderson") and user name (for > display - "Brad Anderson") two separate things? I can only see > "users_username_field" which seems to be used for both. Is that because > trac doesn't have that difference? See above, you really don't need DbAuth. (although it escapes me how people get on without it ;) ) I do see the need for you to begin messing with get_supported_attributes() and get_user_attribute() methods, for things like first name, last name, or just full name. This is the way to retrieve many other attributes from your existing table(s). > > Btw, I don't know how the sequence of IUserDirectory providers is > currently determined, but you may want to flatten the user list (first > found is only found). Not sure how that can be done with generators in a > scalable fashion. Oh, that IUserDirectory is plenty rough, but got me past my issue. I imagine the fact that it's nowhere near complete has something to do with its lack of inclusion in /trunk to date. As I said, it solved my issue, and I moved on, hoping someone would embellish it and get it into /trunk at some point. nudge, nudge, wink wink. Cheers, BA --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
