Parsing string from Active Directory

Moderator: crythias

Post Reply
chrotha
Znuny newbie
Posts: 93
Joined: 29 Jun 2018, 13:44
Znuny Version: 6.x.x/7.0.x
Real Name: Ruben Sardinha

Parsing string from Active Directory

Post by chrotha »

Hello Everyone.

I'm having a bit of a hard time getting some information from the Active Directory.
We have a field, in this case, the manager field, whenever we map it using the LDAP mapping module, we get the full value of the field, in our case is "CN=username,OU=Organization..." and so on.
My question is, is it possible to parse the string that's being returned from the Active Directory, so that the value that appears in the manager field for the customer user is on what's in front of the "CN="?

I'm not sure if this helps but I'm using OTRS 6 and RHEL 8.4 as my OS

Thanks in advance
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Parsing string from Active Directory

Post by root »

Hi,

This needs development. The only alternative I knew is a commercial module which solves this.

- 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 ?
chrotha
Znuny newbie
Posts: 93
Joined: 29 Jun 2018, 13:44
Znuny Version: 6.x.x/7.0.x
Real Name: Ruben Sardinha

Re: Parsing string from Active Directory

Post by chrotha »

Hey Roy,

Thanks for the reply, could you tell me the name of the module?

Thanks
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Parsing string from Active Directory

Post by root »

Hi,

I've send you and pm

- 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 ?
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Parsing string from Active Directory

Post by crythias »

It seems someone pulled it from Javascript:
viewtopic.php?p=162928#p162928
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
Post Reply