Support

Admin Tools

#13649 administrator area password truncates at 8 characters

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Wednesday, 26 September 2012 02:19 CDT

user67173
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? Yes
Have I searched the tickets before posting? Yes
Have I read the documentation before posting (which pages?)? No
Joomla! version: (2.5.1)
PHP version: (unknown)
MySQL version: (unknown)
Host: (optional, but it helps us help you)
Admin Tools version: (2.3.2)

Description of my issue:
Not really and issue. My Administrator Area password I used is nine characters long however, I can provide eight of the characters and reach the administrator logon page.

nicholas
Akeeba Staff
Manager
He he, that's actually a limitation of the UNIX crypt() function. Let's backtrack a little.

In order to enable the password protection, Admin Tools has to create a .htaccess file enabling Apache's password protection and a .htpasswd file containing the username and password. Apache understands the password in one of the following formats: plain text, hashed with crypt() (unless it's a Windows server), hashed with a platform-specific hash algorithm. We must use one of them.

The plain text method is insecure and is only used as a last resort and on Windows systems.

The platform-specific hash algorithm is SHA (which is not widely supported by most live servers, unfortunately) or a very Apache-specific MD5-based algorithm which is too slow and very difficult to implement in PHP. Bummer. If we want to use it we have to call a system-wide binary called "htpasswd". The problem is that we don't know if this binary exists, where it's stored, if we can use shell_exec() in PHP to run it or even if it can write to our .htpasswd file. This makes using it out of the question.

And this leaves us with encrypting the password with the crypt() function. It has a drawback: it will only take into account the first 8 characters of the password. And that's why everything past the 8th character is ignored.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!