Customer::AuthModule::DB::Table not considered

Moderator: crythias

Locked
michele_petrazzo
Znuny newbie
Posts: 11
Joined: 05 Apr 2011, 16:56
Znuny Version: 3

Customer::AuthModule::DB::Table not considered

Post by michele_petrazzo »

Hello list,
I just modified my Condig/Defaults.pm file for say to authentication my customers to an external db, but otrs seem to not considered the values that I wrote into the configuration:

$Self->{'Customer::AuthModule::DB::Table'}

point always to the "default" value "customer_users" also if I add another value. And the error log say the same.

The very strange thing it's that, one line above, the $Self->{'Customer::AuthModule::DB::DSN'} have a value that the otrs engine fetch and use correctly!

What can be?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Customer::AuthModule::DB::Table not considered

Post by jojo »

never change the Defaults.pm

Copy the content to Config.pm and change it there.

In CustomerUser Part via Database there is a line
Table => 'customer_user',
you should change this to your needs...
"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
michele_petrazzo
Znuny newbie
Posts: 11
Joined: 05 Apr 2011, 16:56
Znuny Version: 3

Re: Customer::AuthModule::DB::Table not considered

Post by michele_petrazzo »

jojo wrote:never change the Defaults.pm

Copy the content to Config.pm and change it there.
Opsss, my fault.
Like now I modified only and all inside Defaults.pm.
So, you are saying that I have to comment inside the Defaults.pm the various:
$Self->{CustomerUser} = { Name => DSN, User, etc... + Map, and so on... and write them into Config.pm?
And the same for $Self->{'Customer::AuthModule::DB::User'}, DB::Password, etc... ?
In CustomerUser Part via Database there is a line
Table => 'customer_user',
you should change this to your needs...
Can I have customer authentication point to a different db / table from that I have to Customer::AuthModule?

Thanks
michele_petrazzo
Znuny newbie
Posts: 11
Joined: 05 Apr 2011, 16:56
Znuny Version: 3

Re: Customer::AuthModule::DB::Table not considered

Post by michele_petrazzo »

Done.
Modified the Config.pm and all works.

Thanks!
Locked