Using proxyAddresses from Active Directory

Moderator: crythias

Locked
altinac
Znuny newbie
Posts: 11
Joined: 22 May 2014, 17:13
Znuny Version: 6.4.4
Real Name: Dave Ballard

Using proxyAddresses from Active Directory

Post by altinac »

We have several users that use some of their email aliases to email our implementation of OTRS. These users have those aliases populated within the proxyAddresses attributed within Active Directory. Is there a way to get OTRS to query that field to find the email address and which sAMAccountName attribute it is associated with?

We are using Active Directory as our Customer database instead of a local database to ensure our customer data is up to date.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Using proxyAddresses from Active Directory

Post by jojo »

yes,
adjust

CustomerUserPostMasterSearchFields => ['email'],

in the CustomerUser definition in your config
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
altinac
Znuny newbie
Posts: 11
Joined: 22 May 2014, 17:13
Znuny Version: 6.4.4
Real Name: Dave Ballard

Re: Using proxyAddresses from Active Directory

Post by altinac »

email is not a valid attribute in our directory.

I did find that if I put proxyAddresses into the CustomerUserSearchFields I can at least search for the sending email to find the right sAMAccountName. This is provided I set both the CustomerUserSearchPrefix and CustomerUserSearchSuffix to *. Of course, I have to do this manually after the ticket is created.

I'm wondering if there is a CustomerUserPostMasterSearchPrefix and CustomerUserPostMasterSearchSuffix option? I did try adding those to Config.pm, but it didn't work. Is there a way to get CustomerUserPostMasterSearchFields to use proxyAddresses, but add wildcards around the search string to ensure it finds the correct entry?

Thanks.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Using proxyAddresses from Active Directory

Post by jojo »

a ldap attribute only is allowed to contain one email address to have this working. you can have multiple attributes in the CustomerUserPostMasterSearchFields.

email should be a valid attribute in an AD. If not, repair your AD setup
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Locked