Problems with search AD user - AgentTicketPhone

Moderator: crythias

Locked
mateuskovalski
Znuny newbie
Posts: 3
Joined: 04 Feb 2013, 19:37
Znuny Version: 3.1.6
Real Name: MATEUS KOVALSKI DE MOURA
Company: Stefanini IT Solutions

Problems with search AD user - AgentTicketPhone

Post by mateuskovalski »

Good afternoon,

realized the integration of OTRS with LDAP successfully, but must seek the customer through a code official in standard 00000-0.

The solution seems simple but I can not find the reason for the search system can not find the code for customers. I can search for any attribute including machine SID (S-1-5-21-1534035700-11. ..) but at CodFunc the system does not search, I thought the problem could be special characters but the SID breaks this theory.

Here is how the search is on view AgentTicketPhone when searched by other values ​​CustomerUserSearchFields: "foo 101579-6 foooo" <foo.foooo@dominio foo.foooo>

Here's my setup / otrs / Kernel / Config.pm.

AlwaysFilter => '(& (mail = *))',
# If your frontend ambos and your LDAP are unicode, use this:
       SourceCharset => 'utf-8',
       DestCharset => 'utf-8',
# If your frontend is and. g. iso-8859-1 and the character set of your
# Ldap server is utf-8, use these options:
# SourceCharset => 'utf-8',
# DestCharset => 'iso-8859-1',

# Net :: LDAP new params (if needed - for more info see perldoc Net :: LDAP)
Params => {
port => 389,
scheme => 'ldap',
timeout => 120,
async => 0,
version => 3,
}
}

CustomerKey => 'uid',

CustomerID => 'uid',

CustomerUserListFields => ['CodFunc', 'displayName', 'mail', 'uid'],

CustomerUserSearchFields => ['CodFunc', 'displayName', 'mail', 'uid'],
CustomerUserSearchPrefix =>'',
CustomerUserSearchSuffix => '*',
CustomerUserSearchListLimit => 1000
CustomerUserPostMasterSearchFields => ['email'],
CustomerUserNameFields => ['displayName', 'cn', 'uid'],

# Show not own tickets in customer panel, CompanyTickets
CustomerUserExcludePrimaryCustomerID => 0,
# Add a ldap filter for valid users (expert setting)
# Admin can not change customer preferences
AdminSetPreferences => 0,
CacheTTL => 300,
Map => [
# Note: Login, Email and CustomerID needed!
# Var, frontend, storage, shown (1 = always, 2 = lite), required, storage-type, http-link, readonly

['UserTitle', 'Title', 'CodFunc', 1, 1, 'var','', 0],
['UserFirstname', 'Firstname', 'displayName', 1, 1, 'var','', 0],
['UserLastname', 'Lastname', 'cn', 1, 1, 'var','', 0],
['UserLogin', 'Username', 'uid', 1, 1, 'var','', 0],
['USEREMAIL', 'Email', 'Email', 1, 1, 'var','', 0],
['UserCustomerID', 'CustomerID', 'uid', 1, 1, 'var','', 0],
['UserComment', 'Comment', 'description', 1, 0, 'var','', 0],
['UserLotacao', 'capacity', 'capacity', 1, 0, 'var','', 0],
['UserCI', 'CI (Computer)', 'sambaSID', 1, 0, 'var','', 0],

]
};
Locked