How are passwords Encrypted?

Moderator: crythias

Locked
karlie
Znuny newbie
Posts: 4
Joined: 23 Feb 2011, 13:22
Znuny Version: 3.4

How are passwords Encrypted?

Post by karlie »

Hi,

Was wondering if anyone can shed some light on how OTRS encrypts passwords stored in the database?

And is there a simple way to change this?

Thanks
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: How are passwords Encrypted?

Post by crythias »

http://source.otrs.org/viewvc.cgi/otrs/ ... iew=markup (start at around line 72)

$Self->{ConfigObject}->Get('AuthModule::DB::CryptType') (md5, sha1, sha2, plain?) (Default? md5...?)
http://source.otrs.org/viewvc.cgi/otrs/ ... iew=markup

Code: Select all

342	    # This is the auth. module againt the otrs db
343	    $Self->{AuthModule} = 'Kernel::System::Auth::DB';
344	
345	    # password crypt type (sha2|sha1|md5|crypt|plain)
346	#    $Self->{'AuthModule::DB::CryptType'} = 'md5';
since this isn't actually *assigned* here, it's likely to also be in the SysConfig:
Customer::AuthModule::DB::CryptType

Default value: MD5-Crypt
If "DB" was selected for Customer::AuthModule, the crypt type of passwords must be specified. I don't know why we can't change the admin authmodule the same way, but if you put the uncommented line 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
karlie
Znuny newbie
Posts: 4
Joined: 23 Feb 2011, 13:22
Znuny Version: 3.4

Re: How are passwords Encrypted?

Post by karlie »

Thanks for that... its helped no end with my integration.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: How are passwords Encrypted?

Post by crythias »

If you have specific questions that might help someone reply with something that can help you, please post.
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
Locked