How to add LDAP auotcomplete to Customer's new ticket form?

Moderator: crythias

Locked
zbigniew
Znuny newbie
Posts: 53
Joined: 11 Dec 2014, 13:30
Znuny Version: 5.0.23
Real Name: Zbigniew Luszpinski

How to add LDAP auotcomplete to Customer's new ticket form?

Post by zbigniew »

Hi,

/otrs/customer.pl?Action=CustomerTicketMessage

Here, at Customer Ticket Message I would like to add field to select additional user from LDAP. The same as it is done in NewTicketPhone->'Customer User' field. Tried to copy 'Customer User' code from AgentTicketCustomer.tt to CustomerTicketMessage.tt and field 'Customer User' is added to CustomerTicketMessage form but it is not LDAP active which means I start typing names but LDAP autocomplete known from NewTicketPhone-> Customer User do not autocomplete typed names here.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: How to add LDAP auotcomplete to Customer's new ticket form?

Post by crythias »

This would have to be programmed. Customer side information is private. It wouldn't be a good idea (generally) to have a customer be able to find all the clients in the ticketing system.

Even if the ticketing system is internal for one organization, the ticketing system is one ticket-one customer. It's up to the agents to share information, not the Customer.
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
zbigniew
Znuny newbie
Posts: 53
Joined: 11 Dec 2014, 13:30
Znuny Version: 5.0.23
Real Name: Zbigniew Luszpinski

Re: How to add LDAP auotcomplete to Customer's new ticket form?

Post by zbigniew »

Hello Crythias,

thanks for fast response. I understand your arguments and agree with them but unfortunately I need to have this field with ldap autocomplete added despite of security issues. Can you show me sample code how to add this?

I found similar issue here:
viewtopic.php?t=26533&p=106272
but with no code.
In my case declarant/submitter is person logged in to customer.pl page which creates ticket and it chooses from LDAP beneficiary of a ticket to show Agent for who this ticket is filled in. I have added dynamic field where this information can be manually typed in but this is uncomfortable when LDAP can be used.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: How to add LDAP auotcomplete to Customer's new ticket form?

Post by crythias »

Like I said, it has to be programmed. It's a bit beyond what I'm able to provide on this forum at this time.
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
Clares
Znuny newbie
Posts: 2
Joined: 04 Oct 2019, 10:38
Znuny Version: 3.3
Real Name: Clares

Re: How to add LDAP auotcomplete to Customer's new ticket form?

Post by Clares »

Hi zbigniew,

I am new to OTRS, and I am interested in this Thread, could you tell me how you passed the information to the DynamicFields from LDAP?
did you finally get the purpose of autocomplete at customer area?
thank you in advance
Locked