Remove LDAP user login name

Moderator: crythias

Locked
jfreeman2nc
Znuny advanced
Posts: 136
Joined: 04 Oct 2010, 14:14
Znuny Version: 3.0.10; 3.1.4
Location: US, SC
Contact:

Remove LDAP user login name

Post by jfreeman2nc »

I have OTRS configured to use LDAP for authentication. When we send an email internal OTRS will automatically fill in the user field as you type, however the field always shows the login name from AD. Is the section below in the Config.pm file where I go to remove fields I do not wish to automatically bring over from AD?

Code: Select all

 Map => [
            # note: Login, Email and CustomerID needed!
            # var, frontend, storage, shown, required, storage-type, http-link
            #[ 'UserSalutation', 'Salutation', 'salutation', 1, 0, 'var' ],
            [ 'UserFirstname', 'Firstname', 'first_name', 1, 1, 'var' ],
            [ 'UserLastname', 'Lastname', 'last_name', 1, 1, 'var' ],
            [ 'UserLogin', 'Login', 'login', 1, 1, 'var' ],
            [ 'UserPassword', 'Password', 'pw', 0, 1, 'var' ],
            [ 'UserEmail', 'Email', 'email', 0, 1, 'var' ],
            [ 'UserCustomerID', 'CustomerID', 'customer_id', 0, 1, 'var' ],
            [ 'UserComment', 'Comment', 'comments', 1, 0, 'var' ],
            [ 'ValidID', 'Valid', 'valid_id', 0, 1, 'int' ],
        ],
But now I just see that the login field is required, can I change the 1 to a 0 so that login is not shown such as below?

Code: Select all

 [ 'UserLogin', 'Login', 'login', 0, 1, 'var' ],
Again, my main goal is to only show the internal user first and last name; email address when the To: field is automatically populated.
OTRS 3.1.4
Windows Server 2008 R2
MySQL

OTRS 3.0.10 - soon to be 3.0.12 or 3.1.4
Windows Server 2008 R2
MySQL DB
jfreeman2nc
Znuny advanced
Posts: 136
Joined: 04 Oct 2010, 14:14
Znuny Version: 3.0.10; 3.1.4
Location: US, SC
Contact:

Re: Remove LDAP user login name

Post by jfreeman2nc »

Does anyone have any ideas on how to modify what is filled in automatically or how to remove certain parts from being populated?
OTRS 3.1.4
Windows Server 2008 R2
MySQL

OTRS 3.0.10 - soon to be 3.0.12 or 3.1.4
Windows Server 2008 R2
MySQL DB
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Remove LDAP user login name

Post by crythias »

Code: Select all

            # note: Login, Email and CustomerID needed!
everything else is optional. comment a line if you don't want it, just like UserSalutation isn't synced.
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
jfreeman2nc
Znuny advanced
Posts: 136
Joined: 04 Oct 2010, 14:14
Znuny Version: 3.0.10; 3.1.4
Location: US, SC
Contact:

Re: Remove LDAP user login name

Post by jfreeman2nc »

This only maps to the Customer LDAP database correct? Where does the auto-fill pull from? For example, in the To: field when creating a new ticket, oftentimes the ticket will go to someone internal and their email address auto-populates as you type the recipients name. However, when the field is populated, it also shows the user's login name, first and last name, as well as email address. It just makes the To: line extra cluttered.

EX:

Say if a ticket is created and sent to Bob Smith, the To: line includes the following:

SmithB Bob Smith bob.smith@examplecompany.com

is there any way just to display either the first and last name or just email address?
OTRS 3.1.4
Windows Server 2008 R2
MySQL

OTRS 3.0.10 - soon to be 3.0.12 or 3.1.4
Windows Server 2008 R2
MySQL DB
Locked