LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-23-2018, 02:53 AM   #1
bulletproof.rs
Member
 
Registered: Jun 2011
Posts: 51

Rep: Reputation: Disabled
phpMyAdmin Showing #1819 - Your password does not satisfy the current policy requirements


Hello everyone.

I've been having issues on one of the servers im administrating, basically, whenever i try to create a user in phpmyadmin i receive an error message stating:
Code:
#1819 - Your password does not satisfy the current policy requirements
However, I've made sure that password policies are down to bare minimum.
Here's the output generated from console:
Code:
mysql> SHOW VARIABLES LIKE 'validate_password%'
    -> ;
+--------------------------------------+-------+
| Variable_name                        | Value |
+--------------------------------------+-------+
| validate_password.check_user_name    | OFF   |
| validate_password.dictionary_file    |       |
| validate_password.length             | 6     |
| validate_password.mixed_case_count   | 0     |
| validate_password.number_count       | 0     |
| validate_password.policy             | LOW   |
| validate_password.special_char_count | 0     |
+--------------------------------------+-------+
7 rows in set (0.00 sec)
When i try to add a user from phpmyadmin, i will get the error message already mentioned but when i use the exact same syntax directly in mysql console, i have no issues.
Server I'm running on is using Apache/2.4.6 on CentOS 7.5 with PHP/7.2.9 and MySQL Version is 8.0.12
phpMyAdmin version is (should be latest) 4.8.3.

I'm really really thinking this as a phpmyadmin bug since, as i said, it works fine when i type the syntax manually, either in mysql console or in SQL tab of phpmyadmin.
That would not be an option when we go into production since I'm trying to make this as easier as possible for end user to use.

I've set these in my.cnf file:
Code:
validate_password.check_user_name=OFF
validate_password.policy=LOW
validate_password.length=6
validate_password.mixed_case_count=0
validate_password.number_count=0
validate_password.special_char_count=0
default_authentication_plugin=mysql_native_password
Any ideas ?
Thanks in advance !


EDIT:
Problem solved by running : "UNINSTALL COMPONENT 'file://component_validate_password';"

Last edited by bulletproof.rs; 08-23-2018 at 03:29 AM.
 
Old 08-25-2018, 07:14 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by bulletproof.rs View Post
I'm trying to make this as easier as possible for end user to use.
I understand that and thanks for posting your solution. However given past compromises I would very much like you to first think what kind of data you'll be storing and how leaking that would not only affect end users but also the image of the product or service you'll be providing. Think about offering end users ways to ease authentication, yes, but please don't compromise the most basic of information security requirements.
 
Old 08-25-2018, 08:52 AM   #3
bulletproof.rs
Member
 
Registered: Jun 2011
Posts: 51

Original Poster
Rep: Reputation: Disabled
Server itself is perfectly isolated from outside world and it cannot be accessed from outside of private network and even from within inside, you need VPN to access it. This is for our developers to use and develop scripts that will use other servers as a gateway to go outside, gather info and store them into database. End users i was thinking about are 3 people in development sector from within my company. They already have pretty strong passwords but the problem is they couldn't have created them from phpmyadmin, they needed to do it manually but wanted a way to not do it in that way since they are not comfortable with CLI.
They are well aware of possible security risks either way and I am completely agreeing with you with what you say.
 
Old 08-25-2018, 10:08 AM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,728

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Further to unSpawn's thoughts, and understanding that, in your case, turning off password validation might be acceptable, I have to ask...did you restart mysql after you changed the validation parameters?
Did you log off and back onto phpMyAdmin?

Just looking for reasons that might help others in the future without disabling password validation.
 
Old 08-25-2018, 11:01 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by bulletproof.rs View Post
They are well aware of possible security risks either way and I am completely agreeing with you with what you say.
Thanks, that's one worry less : - )
 
Old 08-25-2018, 11:09 AM   #6
bulletproof.rs
Member
 
Registered: Jun 2011
Posts: 51

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by scasey View Post
Further to unSpawn's thoughts, and understanding that, in your case, turning off password validation might be acceptable, I have to ask...did you restart mysql after you changed the validation parameters?
Did you log off and back onto phpMyAdmin?

Just looking for reasons that might help others in the future without disabling password validation.
Yes, definitely, i have restarted mysqld and ran CTRL+F5 to reload the page - that is to reload with clearing the cache of that page. It logged me out automatically... For whatever reason, when password validation was enabled, phpmyadmin was unable to create user account for mo natter how strong password was typed in. Even when password requirements were lowered to hell.

I think there are definitely some compatibility issues between phpmyadmin and mysql 8. Since it works like a charm on mysql 5x.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
phpmyadmin is not showing welcome page pavanchauhan Linux - Newbie 2 12-30-2013 06:02 AM
Configure my Redhat directory server password policy and account lockout policy arunplanet Linux - Newbie 4 10-06-2012 08:59 AM
How to set the password policy and lockout policy bin_shell Linux - Security 4 03-24-2010 03:30 PM
phpMyAdmin is not showing properly edhan Linux - Newbie 1 09-09-2003 12:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration