customer autofill

Moderator: crythias

Locked
brandocomando
Znuny newbie
Posts: 10
Joined: 13 Apr 2013, 00:09
Znuny Version: 3.2.5-01.noarch

customer autofill

Post by brandocomando »

I have my otrs up and running with ldap configuration for both agents and customers. customers can log in to customer.pl just fine and agents are working great.
What i am having trouble with is autofilling customers name in ticket to form and in the customer information center form.

When i look at customer administration info page it shows all of my customers, their usernames and emails and everything. but if i try to look at their info using the customer information center it doesnt auto fill correctly.

for example if I start trying in the Customer ID section it gives me options, none of which are remotely similar to what I am typing ( screen shot attached), also if i start to type one of the options it gives me, the list stays the same (screenshot attached) . No matter what I type in the form I always get the same autofill options. And i am not sure where they are coming from, it looks like they are secondary email addresses of my users.

the second issue which might be related is in the Customer user form. this one always return the organization unit that my ldap users are in rather than their name, or email address. (screenshot attached)

here is the related info from my Config.pm

Code: Select all

  $Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
    $Self->{'Customer::AuthModule::LDAP::Host'} = 'xx.xx.xx.xx';
    $Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'ou=Liferay\, Inc.,ou=OU1,ou=OU2,o=DOMAIN';
    $Self->{'Customer::AuthModule::LDAP::UID'} = 'cn';

    $Self->{'Customer::AuthModule::LDAP::Params'} = {
        port => 389,
        timeout => 120,
        async => 0,
        version => 3,
    };

    $Self->{CustomerUser} = {
        Name => 'LDAP Data Source',
        Module => 'Kernel::System::CustomerUser::LDAP',
        Params => {
            Host => 'xx.xx.xx.xx',
            BaseDN => 'ou=Liferay\, Inc.,ou=OU1,ou=OU2,o=DOMAIN',
            SSCOPE => 'sub',
                SourceCharset => 'utf-8',
                DestCharset   => 'utf-8',
                Params => {
                    port => 389,
                    timeout => 120,
                    async => 0,
                    version => 3,
                },
        },
        CustomerKey => 'cn',
        CustomerID => 'mail',
        CustomerUserListFields => ['cn'],
        CustomerUserSearchFields => ['uid', 'cn', 'mail'],
        CustomerUserSearchPrefix => '',
        CustomerUserSearchSuffix => '*',
        CustomerUserSearchListLimit => 2500,
        CustomerUserPostMasterSearchFields => ['mail'],
        CustomerUserNameFields => ['givenname', 'sn'],
        CustomerUserExcludePrimaryCustomerID => 0,
        AdminSetPreferences => 0,
        Map => [
            [ 'UserTitle',      'Title',      'title',           1, 0, 'var', '', 0 ],
            [ 'UserFirstname',  'Firstname',  'givenname',       1, 1, 'var', '', 0 ],
            [ 'UserLastname',   'Lastname',   'sn',              1, 1, 'var', '', 0 ],
            [ 'UserLogin',      'Username',   'uid',             1, 1, 'var', '', 0 ],
            [ 'UserEmail',      'Email',      'mail',            1, 1, 'var', '', 0 ],
            [ 'UserCustomerID', 'CustomerID', 'mail',            0, 1, 'var', '', 0 ],
            [ 'UserCustomerIDs', 'CustomerIDs', 'second_customer_ids', 1, 0, 'var', '', 0 ],
            [ 'UserPhone',      'Phone',      'telephonenumber', 1, 0, 'var', '', 0 ],
            [ 'UserAddress',    'Address',    'postaladdress',   1, 0, 'var', '', 0 ],
            [ 'UserComment',    'Comment',    'description',     1, 0, 'var', '', 0 ],
        ],
    };


I have tryed playing around with these options trying to get it to map to the correct attributes:

Code: Select all

 CustomerKey => 'cn',
        CustomerID => 'mail',
        CustomerUserListFields => ['cn'],
        CustomerUserSearchFields => ['uid', 'cn', 'mail'],
but I haven't had any luck


it will be helpful to know that this is unfortunately a custom ldap configuration and is probably a large part of the problem, but I wanted to see if anyone has had a similar issue and knew of a simple solution.
You do not have the required permissions to view the files attached to this post.
Locked