User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:220.127.116.11) Gecko/20080404 Firefox/18.104.22.168 Build Identifier: I played around with the email_in feature of bugzilla and realized that with my Exchange Server 2007 the username matching didn't work. We use SAMAccountName as login name for Bugzilla and LDAPmailattribute is also set to SAMAccountName. But the Exchange Server always sets the from address to the LDAP attribute "mail". Mail attribute differs to SAMAccountName and therefore it is not possible to submit anything. I wrote a little patch which searches in LDAP for the mail attribute and sets $username to the corresponding value of LDAPmailattribute. To enable my subroutine I added the parameter "emailadfromtranslator" to my params-file. For me this works quite well. I tested my patch with version 3.0.4. The Patch is made against CVS Head. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Comment on attachment 321064 [details] [diff] [review] Patch to lookup username in LDAP You need to ask for review so that your patch shows up on people's radar. See http://www.bugzilla.org/docs/reviewer-list.html. I did it for you this time.
Attachment #321064 - Flags: review?(mkanat)
Comment on attachment 321064 [details] [diff] [review] Patch to lookup username in LDAP Ohh, hmm. Instead of this, I think we should have a Bugzilla::User class method that looks up users from all possible auth methods that provide a lookup, and Auth methods can provide a "lookup" sub or something like that.
Attachment #321064 - Flags: review?(mkanat) → review-
You need to log in before you can comment on or make changes to this bug.