Not all AD Attributes showing in Customers

Moderator: crythias

Locked
sstolane
Znuny newbie
Posts: 3
Joined: 10 Jul 2015, 09:19
Znuny Version: 4.0.3
Real Name: Silvester

Not all AD Attributes showing in Customers

Post by sstolane »

Hello!
I have LDAP authenticating to AD (agents and customers) in OTRS 4.0.3. In customers I give properly displayname, First Name, Last Name, Email, Title, Description, and Phone Number from AD. For some reason the Mobile, Company and others AD attributes isn't shown (just empty field), but they are absolutly exists in AD. Please help...

My Config.PM here:

Code: Select all

$Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
$Self->{'Customer::AuthModule::LDAP::Host'} = '10.1.12.11';
$Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'DC=sstolane,dc=ru';
$Self->{'Customer::AuthModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'Customer::AuthModule::LDAP::GroupDN'} = 'cn=OTRSCustomers,OU=Function,OU=Groups,,DC=sstolane,DC=ru';
$Self->{'Customer::AuthModule::LDAP::AccessAttr'} = 'member';
$Self->{'Customer::AuthModule::LDAP::UserAttr'} = 'DN';
$Self->{'Customer::AuthModule::LDAP::SearchUserDN'} = 'CN=otrs_svc_adm,OU=Service Account,DC=sstolane,DC=ru';
$Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = '******';
$Self->{'Customer::AuthModule::LDAP::Params'} = {
port    => 389,
timeout => 120,
async   => 0,
version => 3,
};

$Self->{'Customer::AuthModule::LDAP::Die'} = 1;

$Self->{CustomerUser} = {
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
Host => '10.1.12.11',
BaseDN => 'OU=Users,DC=sstolane,DC=ru',
SSCOPE => 'sub',
UserDN => 'CN=otrs_svc_adm,OU=Service Account,DC=sstolane,DC=ru',
UserPw => '******',
SourceCharset => 'utf-8',
DestCharset   => 'utf-8',
},
SourceCharset => 'utf-8',
DestCharset => 'utf-8',
CustomerKey => 'sAMAccountName',
CustomerID => 'Description',
CustomerUserListFields => ['displayname'],
CustomerUserSearchFields => ['sAMAccountName', 'Description','displayname'],
CustomerUserSearchPrefix => '',
CustomerUserSearchSuffix => '*',
CustomerUserSearchListLimit => 10000,
CustomerUserPostMasterSearchFields => ['sAMAccountName', 'Description','displayname'],
CustomerUserNameFields => ['displayname'],
CustomerUserExcludePrimaryCustomerID => 0,
AdminSetPreferences => 0,
Map => [
[ 'UserFirstname', 'Firstname', 'displayname', 1, 1, 'var', ],
[ 'UserLogin', 'Username', 'sAMAccountName', 1, 1, 'var', ],
[ 'UserEmail', 'Email', 'mail', 1, 1, 'var', ],
[ 'UserCustomerID', 'CustomerID', 'Description', 1, 1, 'var', ],
[ 'UserTelephone', 'Telephone', 'telephonenumber', 1, 1, 'var', ],
[ 'UserMobile', 'MobileTelephone', 'Mobile', 1, 1, 'var', ],
[ 'UserCompany', 'Company', 'Company', 1, 1, 'var', ],
],
};
[/i]
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Not all AD Attributes showing in Customers

Post by crythias »

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
sstolane
Znuny newbie
Posts: 3
Joined: 10 Jul 2015, 09:19
Znuny Version: 4.0.3
Real Name: Silvester

Re: Not all AD Attributes showing in Customers

Post by sstolane »

I tried for example, 'Company', 'company' and others - nothing. But when in console i typing

Code: Select all

ldapsearch -x -h 10.1.12.11 -b dc=sstolane,dc=ru -D qwe@sstolane.ru -W "(cn=User)" company
it put me User's company properly....
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Not all AD Attributes showing in Customers

Post by crythias »

sstolane wrote:properly displayname, First Name, Last Name, Email, Title, Description, and Phone Number from AD.
Your Map:

Code: Select all

Map => [
[ 'UserFirstname', 'Firstname', 'displayname', 1, 1, 'var', ],
[ 'UserLogin', 'Username', 'sAMAccountName', 1, 1, 'var', ],
[ 'UserEmail', 'Email', 'mail', 1, 1, 'var', ],
[ 'UserCustomerID', 'CustomerID', 'Description', 1, 1, 'var', ],
[ 'UserTelephone', 'Telephone', 'telephonenumber', 1, 1, 'var', ],
[ 'UserMobile', 'MobileTelephone', 'Mobile', 1, 1, 'var', ],
[ 'UserCompany', 'Company', 'Company', 1, 1, 'var', ],
],
Title, Description are not here. Wonder where they could be?

Maybe someone uncommented Defaults.pm (wouldn't be a good idea.)
https://github.com/OTRS/otrs/blob/maste ... s.pm#L1453
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
sstolane
Znuny newbie
Posts: 3
Joined: 10 Jul 2015, 09:19
Znuny Version: 4.0.3
Real Name: Silvester

Re: Not all AD Attributes showing in Customers

Post by sstolane »

Nope, I don't touch this file, all commented in CustomerUser in Defaults.pm.

Description is here:

Code: Select all

[ 'UserCustomerID', 'CustomerID', 'Description', 1, 1, 'var', ],
Title was an example (as well as HomePage, HomePhone, StreetAddress, State and many others don't shown... Work only several well-known properties)
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Not all AD Attributes showing in Customers

Post by crythias »

I doubt this is something that can be determined without looking directly at your environment.
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
Locked