Hi all, @crythias, @jojo,
I am trying to implement multivalue dynamic LDAP Customer Map attributes. Documentation mention only about multivalue CustomerIDs, but not other attributes. For example I have LDAP object with CustomerID and all required related attributes, BUT I also have optional customer attributes that consist of let's say :
- customer endpoint
- endpoint status
- telephone number
(these attributes are able to be multivalue - i.e. customer has multiple phone numbers)
Let's say there are 3 telephone numbers. How do I parse these to Map variables in configuration ?
Map example :
Map => [
# note: Login, Email and CustomerID needed!
[ 'UserFirstname', 'Firstname', 'x-my-SAP-Name', 1, 1, 'var', '', 0 ],
[ 'UserLogin', 'Username', 'x-my-SAP-ID', 1, 1, 'var', '', 0 ],
[ 'UserEmail', 'Email', 'x-my-SAP-Email', 1, 1, 'var', '', 0 ],
[ 'UserEndpoint', 'Endpoint 1', 'x-my-SAP-UserEndpoint', 1, 1, 'var', '', 0 ],
[ 'UserEndpointStatus', 'Status 1', 'x-my-SAP-UserEndpointStatus', 1, 1, 'var', '', 0 ],
[ 'UserTelephoneNumber', 'Number 1', 'x-my-SAP-UserTelephoneNumber', 1, 1, 'var', '', 0 ],
],
How do I make fields/vars UserEndpoint, UserEndpointStatus, UserTelephoneNumber dynamic ? Is it possible ?
In LDAP, x-my-SAP-UserTelephoneNumber attribute of CustomerUser Object is not defined in schema as "SINGLE-VALUE", but without it, so there can be also 2 or more attributes with another values that holds i.e. multiple mobile phone numbers. Because our customers can have multiple Endpoints/Statuses and also i.e. telephone numbers.
Thanks in advance for any suggestion.
BR,
Martin
LDAP multivalue CustomerMap attributes
Moderator: crythias
LDAP multivalue CustomerMap attributes
OTRS 6.0.3-1, MySQL
-
- Moderator
- Posts: 10169
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: LDAP multivalue CustomerMap attributes
I haven't had a chance to look at it, but it's possible (?) that attribute[0] and attribute[1] might work. I can't be sure.
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
-
- Administrator
- Posts: 3968
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: LDAP multivalue CustomerMap attributes
Hi,
OTRS uses the following code:
From the documentation of Net::LDAP:
OTRS uses the following code:
Code: Select all
my $Value = $Self->_ConvertFrom( $Result2->get_value( $Entry->[2] ) ) || '';
- RoyIn a scalar context returns the first value for the attribute or undef if the attribute does not exist.
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Re: LDAP multivalue CustomerMap attributes
Do you think there is some way to change this ? We need to have multiple same attributes related to our Customers object.
OTRS 6.0.3-1, MySQL
-
- Administrator
- Posts: 3968
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: LDAP multivalue CustomerMap attributes
This should be possible with custom development and depends on the use case. Which is?Snowmanko wrote:Do you think there is some way to change this ? We need to have multiple same attributes related to our Customers object.
- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Re: LDAP multivalue CustomerMap attributes
As I stated in first post, I want to add multiple Customer information i.e. I want to add multiple phone numbers (attribute in LDAP - phoneNumber can be stated in object multiple times), i.e. I want to add multiple CustomerEndpoints (this means something like office branch), under this CustomerEndpoint there should be information like EndpointNumber (next attribute), EndpointStatus and so on.
So at the end, when ticket will be created and Customer will be asigned to ticket I want to use http://doc.otrs.com/doc/manual/admin/st ... stomeruser to asign specific problematic CustomerEndpoint to ticket dynamic fields. (this is example)
I hope my use case is understandable.
So at the end, when ticket will be created and Customer will be asigned to ticket I want to use http://doc.otrs.com/doc/manual/admin/st ... stomeruser to asign specific problematic CustomerEndpoint to ticket dynamic fields. (this is example)
I hope my use case is understandable.
OTRS 6.0.3-1, MySQL
-
- Administrator
- Posts: 3968
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: LDAP multivalue CustomerMap attributes
Hi,
That's possible with custom development by creating a event handler or modifying the LDAP backend.
- Roy
That's possible with custom development by creating a event handler or modifying the LDAP backend.
- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?