Extend the agent user table

Moderator: crythias

Locked
sciolto
Znuny newbie
Posts: 16
Joined: 04 Oct 2010, 09:19
Znuny Version: 2.4.7

Extend the agent user table

Post by sciolto »

Hi board,
I have searched this without any result across the board..

Is there any possibility to extend the agent user db table to store more information and map some agent information from ldap with $Self->{'AuthSyncModule::LDAP::UserSyncMap'} ?

Many thanks in advance!
Several OTRS 2.4 and 3.0 installations. All on CentOS /w Apache & MySql.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Extend the agent user table

Post by crythias »

User demographics isn't (shouldn't be?) synced from LDAP. If you want more info from LDAP, add Map fields.
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
sciolto
Znuny newbie
Posts: 16
Joined: 04 Oct 2010, 09:19
Znuny Version: 2.4.7

Re: Extend the agent user table

Post by sciolto »

crythias wrote:User demographics isn't (shouldn't be?) synced from LDAP. If you want more info from LDAP, add Map fields.
Hi crythias thanks for the quick answer! What are Map fields? Do you mean that additional field's values could be taken from an LDAP search?

thanks !
Several OTRS 2.4 and 3.0 installations. All on CentOS /w Apache & MySql.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Extend the agent user table

Post by crythias »

Yes, the Map in Config.pm
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
sciolto
Znuny newbie
Posts: 16
Joined: 04 Oct 2010, 09:19
Znuny Version: 2.4.7

Re: Extend the agent user table

Post by sciolto »

crythias wrote:Yes, the Map in Config.pm
Hi there! Sorry but I can't find anything regarding Map fields in the OTRS Docu. Do you have any link ?

Thanks so much!
Several OTRS 2.4 and 3.0 installations. All on CentOS /w Apache & MySql.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Extend the agent user table

Post by crythias »

I made a mistake, confusing Customers with Agents.

No, you can't, because User.pm GetUserData only covers:

Code: Select all

    while ( my @Row = $Self->{DBObject}->FetchrowArray() ) {
        $Data{UserID}        = $Row[0];
        $Data{UserLogin}     = $Row[1];
        $Data{UserTitle}     = $Row[2];
        $Data{UserFirstname} = $Row[3];
        $Data{UserLastname}  = $Row[4];
        $Data{UserPw}        = $Row[5];
        $Data{ValidID}       = $Row[6];
        $Data{CreateTime}    = $Row[7];
        $Data{ChangeTime}    = $Row[8];
    }
My apologies for the confusion on this.
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
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Extend the agent user table

Post by jojo »

Try to use the user preferences and do the sync via preferences key. Some more information on extending the preferences you'll find here:

http://blog.otrs.org/2011/09/05/agent-s ... ignatures/
"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
sciolto
Znuny newbie
Posts: 16
Joined: 04 Oct 2010, 09:19
Znuny Version: 2.4.7

Re: Extend the agent user table

Post by sciolto »

crythias wrote:I made a mistake, confusing Customers with Agents.

No, you can't, because User.pm GetUserData only covers:

Code: Select all

    while ( my @Row = $Self->{DBObject}->FetchrowArray() ) {
        $Data{UserID}        = $Row[0];
        $Data{UserLogin}     = $Row[1];
        $Data{UserTitle}     = $Row[2];
        $Data{UserFirstname} = $Row[3];
        $Data{UserLastname}  = $Row[4];
        $Data{UserPw}        = $Row[5];
        $Data{ValidID}       = $Row[6];
        $Data{CreateTime}    = $Row[7];
        $Data{ChangeTime}    = $Row[8];
    }
My apologies for the confusion on this.
No prob ! But it would be nice to have the same map we can use for customers to manage agent details as well. I think I will post it on ideascale !
Several OTRS 2.4 and 3.0 installations. All on CentOS /w Apache & MySql.
sciolto
Znuny newbie
Posts: 16
Joined: 04 Oct 2010, 09:19
Znuny Version: 2.4.7

Re: Extend the agent user table

Post by sciolto »

jojo wrote:Try to use the user preferences and do the sync via preferences key. Some more information on extending the preferences you'll find here:

http://blog.otrs.org/2011/09/05/agent-s ... ignatures/
Thanks this is a good workaround !
Several OTRS 2.4 and 3.0 installations. All on CentOS /w Apache & MySql.
michab
Znuny newbie
Posts: 1
Joined: 11 Feb 2013, 12:44
Znuny Version: 2.3.4
Real Name: michael bladowski

Re: Extend the agent user table

Post by michab »

sorry, for me it´s not clear if i have to add or modify anthing at the DB.
i have an old version here: 2.3.4
i added the XML and activated the new block at the sysconfig, but the user preferences does not show anything.
thanks for any help!
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Extend the agent user table

Post by jojo »

2.3. is really outdated. Please update to a new 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
Locked