LDAP Contacts?

Moderator: crythias

Locked
knischan
Znuny newbie
Posts: 65
Joined: 29 Sep 2011, 05:18
Znuny Version: 3.0.11
Real Name: Ken
Company: Baltimore City Mayor's Office

LDAP Contacts?

Post by knischan »

Hi. I tried searching, but "contact" finds a slew of stuff that is not relevant to my inquiry. I have LDAP setup to pull customer data. It works great, very happy. I have the following LDAP filter:

AlwaysFilter => '(&(objectclass=user)(mail=*))',

I have many Exchange contacts for people who work at my location, but not on my network. I tried to change the filter to:

AlwaysFilter => '(&(objectclass=user)(objectclass=contact)(mail=*))',

..but that broke everything. Couldn't even pull up user data then. Is it not possible to use contact information? Wasn't sure if I was just doing it wrong, or if that's not possible. Thanks!
OTRS 3.0.11 / IIS7 / MSSQL 2005 / VMware ESX
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: LDAP Contacts?

Post by crythias »

you used & (AND) which meant match ALL the criteria...
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
knischan
Znuny newbie
Posts: 65
Joined: 29 Sep 2011, 05:18
Znuny Version: 3.0.11
Real Name: Ken
Company: Baltimore City Mayor's Office

Re: LDAP Contacts?

Post by knischan »

Hmmm. I tried various other ways with varied degrees of fail. Finally, I figured hey, I should try using ADUC's custom search to test my LDAP queries. I finally got what I needed, users and contacts, using this:

(&(objectCategory=person)(|(objectClass=user)(objectClass=contact))(|(mail=*)))

Threw that into OTRS and I still get just users, not contacts. *sigh* I'm gonna be bald by the time the night is over lol.

PS, I also tried:

(&(objectClass=contact))

..and I got users and computer accounts (??) in my customers tab, but no contacts.

PPS.. I just thought hey, lets just disable filtering. Let it cull everything, wide open. STILL no contacts. Are contacts not supported? I can see them in ADUC, so I know they are there.
OTRS 3.0.11 / IIS7 / MSSQL 2005 / VMware ESX
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: LDAP Contacts?

Post by crythias »

Can contacts be/are they members of the group?
Because they're not exactly "Entities with permissions"
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Kristian
Znuny newbie
Posts: 12
Joined: 16 Feb 2011, 16:28
Znuny Version: 3.1.13

Re: LDAP Contacts?

Post by Kristian »

Hi all,

i still have the same problem like knischan. my otrs with a customer-ldap-backend doenst shows me my LDAP contacts.

Here is my filter:

Code: Select all

AlwaysFilter => '(&(objectCategory=CN=Person,.....)(!(userAccountControl=514))(mail=*)(!(sAMAccountName=res*))(!(sAMAccountName=admin*))(!(sAMAccountName=#*))(!(proxyAddresses=smtp:*.invalid)))'
It works very fine if i try this via my LDAP Browser and it shows me accounts and contacts.

There is any solution or another way to implement external email adresses with this customer-backend?

regards Kristian
openSUSE 11.4 / OTRS 3.1.13 / MySQL 5.1.63
Locked