ldap filter how to return first attribute mail

Moderator: crythias

Post Reply
mirkofranciosi
Znuny newbie
Posts: 1
Joined: 26 Oct 2010, 11:47
Znuny Version: 2.4.7

ldap filter how to return first attribute mail

Post by mirkofranciosi »

hi,

I have the following question.

I have integrated with an OTRS 2.4.7 openldap schema that contains more "mail" 'attributes.

The problem 'when interacting with the user through notifications or responses, the system automatically fills in the CC: field and you get multiple notifications.
how can I solve this problem?

how can I set a filter to select only the first mail?

I enclose ldap schema and setting config.pm

dn: krb5PrincipalName=carmcast@yyyyyyyyy,ou=KerberosPrincipals,dc=zzzzzz,dc=oooo
uid: carmcast
shadowExpire: -1
objectClass: top
objectClass: person
objectClass: areanordAccount
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: areanordPerson
objectClass: nabla2PersonalAccount
objectClass: account
objectClass: posixAccount
objectClass: shadowAccount
objectClass: sambaSamAccount
objectClass: krb5KDCEntry
objectClass: krb5Principal
sambaAcctFlags:
sambaPwdLastSet: 1198152323
shadowMin: 0
ou: KerberosPrincipals
ou: Nessuno
ou: Settore no
ou: People
description: Castiello Carmela
sn: Castiello
givenName: Carmela
mail: carmela.castiello@comune.xxxxxx.xx.it
mail: carmcast@comune.xxxxxx.xx.it




$Self->{CustomerUser} = {
Name => 'LDAP Backend',
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
Host => 'ldap.wwwww.aaaa',
BaseDN => 'ou=KerberosPrincipals,dc=zzzzzz,dc=ooooo',
SSCOPE => 'sub',
},
CustomerKey => 'uid',
CustomerID => 'mail',
CustomerUserListFields => ['cn', 'mail'],
CustomerUserSearchFields => ['uid', 'cn', 'mail'],
CustomerUserSearchPrefix => '',
CustomerUserSearchSuffix => '*',
CustomerUserSearchListLimit => 250,
CustomerUserPostMasterSearchFields => ['mail'],
CustomerUserNameFields => ['givenname', 'sn'],
CustomerUserEmailUniqCheck => 1,
Post Reply