Situation: I am logging users into Trac with SSPI authentication in Apache. Once users are logged in, I don't want them to have to enter their email address on the "Preferences" page so that notification emails will work -- we have an AD server setup, so when Trac is going through it's email notification logic, I want it to: - see if the owner/subscribers have entered an email address, per the existing "preferences" mechanism; if they have, use that - if they haven't entered an email address this way, then I'd like it to go query the AD server for a user matching their username -- if one matches, use that email instead
I've got a Python script that works like a champ, built on Tim Golden's awesome active_directory package (http:// tgolden.sc.sabren.com/python/active_directory.html) -- when run standalone, it works flawlessly, exactly as I want it to. However, and this is the rub, when I hack the same simple code into the appropriate place in the Trac codebase (e.g., /trac/notification.py: 286 or so), it fails to match the username up with a user. The only thing I can think of is that when I run the script standalone, I run it as my logged-in user account -- when Trac runs the same code, it is running it via it's parent process' (Apache) creds (as "System" in this case). Any thoughts? Tips? And if you have an entirely different but better way to accomplish what I'm trying to accomplish, please smack me and say so :D Thanks in advance... P.S. -- yes, I've seen the thread "Drop down list for LDAP users and email" (http://groups.google.com/group/trac-users/browse_thread/thread/ a80be94fd53c9bbe/eab6797d74becd62?lnk=gst&q=ldap +email&rnum=1#eab6797d74becd62) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
