[SOLVED] How to use cryptpassword.pl

Moderator: crythias

Locked
intrepidfroot
Znuny newbie
Posts: 16
Joined: 22 Mar 2012, 10:21
Znuny Version: 31000
Real Name: Matthew Smith

[SOLVED] How to use cryptpassword.pl

Post by intrepidfroot »

Hello,

I'd like to encrypt the passwords stored in the config.pl but have been unable to find any documentation/posts etc on the subject.

Any assistance would be appreciated
Last edited by intrepidfroot on 23 Apr 2012, 14:17, edited 1 time in total.
CSL
Znuny expert
Posts: 159
Joined: 11 Nov 2011, 19:27
Znuny Version: 3.0.11

Re: How to use cryptpassword.pl

Post by CSL »

Just tried this out on my test system and it seemed to work ok. Run the following from the command line:

perl /opt/otrs/bin/otrs.CryptPassword.pl yourpassword

Replacing 'yourpassword' with the database password you have in /opt/otrs/Kernel/Config.pm. This will give you output that looks like the following:

bin/otrs.CryptPassword.pl <Revision 1.5> - to crypt database password for Kernel/Config.pm
Copyright (C) 2001-2010 xxx, http://otrs.org/
Crypted password: {7909b8}

Just replace your password in Config.pm with the Crypted password, including the braces, and you should be good to go.
Backend: OTRS 3.0.11 RedHat Enterprise Linux 6.2, Apache, MySQL with replication
Frontend: OTRS 3.0.11 RedHat Enterprise Linux 6.2 with SELinux, Apache SSL
intrepidfroot
Znuny newbie
Posts: 16
Joined: 22 Mar 2012, 10:21
Znuny Version: 31000
Real Name: Matthew Smith

Re: How to use cryptpassword.pl

Post by intrepidfroot »

Thanks CSL,

works a treat. I was excluding the { }'s which was causing my issue.

Have a good day!
Locked