Garth T Kidd wrote:
If I derive DirectLdapAuthentication from BasicAuthentication, can I
simply over-ride do_auth and plug in the code above?

How can I tell Trac to use DirectLdapAuthentication?

I'd suggest making an account manager backend for this. This means creating a plugin that implements the IPasswordStore interface from account manager:

http://trac-hacks.org/browser/accountmanagerplugin/0.10/acct_mgr/api.py#L15

How can I populate account detail in Trac with details taken from AD?

If you're referring to things like fullname and email address, this is a little harder. unfortunately, the interface to the session table (which holds the email addr, etc) hasn't been wrapped in a nice interface. So the short answer is, you can't.

Once I've got this working, I'll post the patch.

Like Emmanuel Blot said, I'd recommend making it a plugin and posting it on trac-hacks.org

-John



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