
garthk at gmail
Jan 19, 2007, 4:41 AM
Post #1 of 3
(493 views)
Permalink
|
|
Trac authentication to Active Directory
|
|
I'm having trouble having Trac authenticate against AD. The usual mod_ldap bind/find isn't working for me, even using my own account for the bind. So, I'd like to try having Trac do the work. My Django authentication module works easily against AD because it binds using the credentials of the user trying to log on. In short: principalName = '%s@%s' % (username, domain) l = ldap.open(server) l.protocol_version = ldap.VERSION3 l.simple_bind_s(principalName, password) return l 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? How can I populate account detail in Trac with details taken from AD? Once I've got this working, I'll post the patch. Yours, Garth. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users[at]googlegroups.com To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
|