Accessing LDAP fields for reports

Moderator: crythias

Locked
fondofotrs
Znuny newbie
Posts: 42
Joined: 13 Jan 2011, 09:40
Znuny Version: 3.04

Accessing LDAP fields for reports

Post by fondofotrs »

hi,

i am still learning otrs and am asked to create reports based on customer location. The customers are configured using LDAP and i can make the location field visible to agents by properly configuring in config.pm. however, i am asked to create report based on location. since that LDAP field is not in database, how can i use that LDAP field while querying the data for location? requesting for some helpful answers from you all experienced practitioners.
sascha
Znuny newbie
Posts: 18
Joined: 07 Sep 2013, 07:38
Znuny Version: OTRS 4.0

Re: Accessing LDAP fields for reports

Post by sascha »

Did you find a solution? I am confronted with the same problem.


Best regards
Sascha
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Accessing LDAP fields for reports

Post by jojo »

you can copy vales from customer data to a ticket. The setting is called DynamicFieldFromCustomerUser

Please also update your signature with your OTRS version
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
sascha
Znuny newbie
Posts: 18
Joined: 07 Sep 2013, 07:38
Znuny Version: OTRS 4.0

Re: Accessing LDAP fields for reports

Post by sascha »

Ten minutes before you answered I had the same idea :-)

If you already have done it, perhaps you could push me in the right direction:
I added two dynamic text fields to the "new ticket" form and did the same for the
required ldap fields in Config.pm.
But how can I copy the contents of the ldap fields to the dynamic form fields as soon as the customer in the
create new ticket form is selected?

Best regards
Sascha
stephan14x
Znuny newbie
Posts: 13
Joined: 08 Jan 2014, 08:54
Znuny Version: 2.4 > 3.3 > 6 > 7
Real Name: Stephan Lang
Company: Bock 1 GmbH & Co. KG

Re: Accessing LDAP fields for reports

Post by stephan14x »

Hi,

there is a similar post in German here: viewtopic.php?f=35&t=24042
And a English description on my Blog at http://stephan14x.evidente.de/?p=80

You do not need to display the dynamic fields on the Screen where the customer creates the ticket, the module performs the action while the ticket is stored in the DB (after the customer has clicked submit).

Regards Stephan
Started with OTRS 2.4 and used OTRS 6.0 until 2023
After a Year of Hell using a leading cloud tool, I'm resetting to OTRS Znuny - Voyager Reference intended
Updated my OTRS 6 on Debian 9 to Znuny 7 on Debian 12 - and will now fix 10 years of config and file hacks
Locked