Username matching when using Exchange Server 2007




Incoming Email
10 years ago
9 years ago


(Reporter: Marc, Unassigned)




(1 attachment)



10 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv: Gecko/20080404 Firefox/
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:

Comment 1

10 years ago
Created attachment 321064 [details] [diff] [review]
Patch to lookup username in LDAP
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 I did it for you this time.
Attachment #321064 - Flags: review?(mkanat)

Comment 3

9 years ago
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.