Username matching when using Exchange Server 2007

UNCONFIRMED
Unassigned

Status

()

Bugzilla
Incoming Email
--
enhancement
UNCONFIRMED
10 years ago
9 years ago

People

(Reporter: Marc, Unassigned)

Tracking

Details

Attachments

(1 attachment)

(Reporter)

Description

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

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 http://www.bugzilla.org/docs/reviewer-list.html. 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.