Hi,
I have set up an LDAP customerbackend. I'm interested in presenting all the values from the LDAP attribute "memberOf".
Information i presented in the box Customer information - Comment when creating a ticket in Agent frontend.
../Custom/Kernel/Config.pm:
[ 'UserComment', 'Comment', 'memberOf', 1, 0, 'var', '', 0 ],
LDAP memberOf:
CN=Telmar Corp@2012-Telmar Corp-FRO1005,OU=Telmar Corp,OU=tc,DC=TCAD,DC=local
CN=Telmar Corp@2012-Telmar Corp-KIS1001,OU=Telmar Corp,OU=tc,DC=TCAD,DC=local
CN=Telmar Corp@2012-Telmar Corp-PSP5020,OU=Telmar Corp,OU=tc,DC=TCAD,DC=local
CN=Telmar Corp@2012-Telmar Corp-999999,OU=Telmar Corp,OU=tc,DC=TCAD,DC=local
CN=Telmar Corp@2012-PK41,OU=Group,OU=Telmar Corp,OU=tc,DC=TCAD,DC=local
Customer information i OTRS shows only the first line.
Is it possible to show all lines?
Is it possible to use a regex to extract info?
Retrieve LDAP attribute values
Moderator: crythias
Retrieve LDAP attribute values
Testing: OTRS 3.0.5
OS: 2003 server
OS: 2003 server
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Retrieve LDAP attribute values
No, it's not possible, for many different reasons.
First, ldap shows:
memberOf: xxx
memberOf: yyy
memberOf: zzz
Feel free to modify the Customer User/LDAP.pm CustomerUserDataGet to combine multiple redundant fields.
look for and change this:
First, ldap shows:
memberOf: xxx
memberOf: yyy
memberOf: zzz
Feel free to modify the Customer User/LDAP.pm CustomerUserDataGet to combine multiple redundant fields.
look for and change this:
Code: Select all
# get first entry
my $Result2 = $Result->entry(0);
if ( !$Result2 ) {
return;
}
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