Is there any way I can hard code the CustomerID in Kernel/Config.pm, rather than using an LDAP attribute?
I'm asking this because the company where I'm currently supporting OTRS, does not fill in the Company field (in Actigve Directory) for everyone - for employees, it can be variations on the company name and for contractors, the field is blank.
This prevents me from giving everyone the same company ID so people can see each other's tickets.
Hardcoded CustomerID?
Moderator: crythias
Hardcoded CustomerID?
OTRS 3.2.11 on Centos 6.4 with MySQL 5.0. Agents and internal customers authenticate via Active Directory.
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Hardcoded CustomerID?
*A* way to do this is to mass apply the CustomerID to everyone in some other field within LDAP.
An icky other way (I guess?) might be to manipulate Kernel/System/CustomerUser/LDAP.pm
FInd something like:
and replace it with maybe:
I have no idea if this will work, but maybe it could.
An icky other way (I guess?) might be to manipulate Kernel/System/CustomerUser/LDAP.pm
FInd something like:
Code: Select all
# customer id
if ( $Self->{CustomerUserMap}->{CustomerID} ) {
$Self->{CustomerID} = $Self->{CustomerUserMap}->{CustomerID};
}
else {
$Self->{LogObject}->Log(
Priority => 'error',
Message => 'Need CustomerUser->CustomerID in Kernel/Config.pm',
);
return;
}
Code: Select all
$Self->{CustomerID} = "MyCustomerID";
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
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
Re: Hardcoded CustomerID?
I'll try it out and see what happens. Thanks for the suggestion.
OTRS 3.2.11 on Centos 6.4 with MySQL 5.0. Agents and internal customers authenticate via Active Directory.