How to encrypt clear passwords for OTRS?

Moderator: crythias

Post Reply
dmitrymozheyko
Znuny newbie
Posts: 2
Joined: 11 Jun 2013, 12:47
Znuny Version: 3.2.7

How to encrypt clear passwords for OTRS?

Post by dmitrymozheyko »

Hi all.
I use OTRS 3.2.7 and see in customer_user table passwords hash(?)'s such as $1$username$kIbJUh1oqeYjLdXSY2KhL0
I have solid customer database with logins and clear text passwords.
How i can encrypt existing users passwords for saving in this table?
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: How to encrypt clear passwords for OTRS?

Post by reneeb »

What is configured for "Customer::AuthModule::DB::CryptType"?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
dmitrymozheyko
Znuny newbie
Posts: 2
Joined: 11 Jun 2013, 12:47
Znuny Version: 3.2.7

Re: How to encrypt clear passwords for OTRS?

Post by dmitrymozheyko »

Kernel/Config/Files/Framework.xml

Code: Select all

...
 <ConfigItem Name="Customer::AuthModule::DB::CryptType" Required="1" Valid="1" ConfigLevel="200">
        <Description Translatable="1">If "DB" was selected for Customer::AuthModule, the crypt type of passwords must be specified.</Description>
        <Group>Framework</Group>
        <SubGroup>Frontend::Customer::Auth</SubGroup>
        <Setting>
            <Option SelectedID="md5">
                <Item Key="crypt">Crypt</Item>
                <Item Key="md5">MD5-Crypt</Item>
                <Item Key="plain">Plain</Item>
                <Item Key="sha1">SHA-1</Item>
                <Item Key="sha2">SHA-2</Item>
            </Option>
        </Setting>
    </ConfigItem>
...
catweazle
Znuny advanced
Posts: 121
Joined: 15 Feb 2012, 12:22
Znuny Version: 3.1

Re: How to encrypt clear passwords for OTRS?

Post by catweazle »

Should be changed after switching to an other encryption. BUT Agent have to change password manuall in own AgentPreferences.
1: OTRS 3.1.21 + Support + MasterSlave @ CentOS 6.5 , MySQL
2: Test: OTRS 3.1.21 + Support + MasterSlave @ CentOS 6.5 , MySQL
3: Test-2: OTRS 3.3.x + Support + MasterSlave @ CentOS 6.5 , MySQL (iphone, idoit-trash)
Post Reply