Skip to content
Snippets Groups Projects
Unverified Commit 8eccd5a6 authored by Yoda-BZH's avatar Yoda-BZH Committed by GitHub
Browse files

feat(socket_authentication): allow unix_socket authentication

parent f1084e59
No related branches found
No related tags found
No related merge requests found
...@@ -42,6 +42,9 @@ include: ...@@ -42,6 +42,9 @@ include:
- password_hash: '{{ user['password_hash'] }}' - password_hash: '{{ user['password_hash'] }}'
{%- elif user['password'] is defined and user['password'] != None %} {%- elif user['password'] is defined and user['password'] != None %}
- password: '{{ user['password'] }}' - password: '{{ user['password'] }}'
{%- elif user['unix_socket'] is defined and user['unix_socket'] != None %}
- allow_passwordless: True
- unix_socket: True
{%- else %} {%- else %}
- allow_passwordless: True - allow_passwordless: True
{%- endif %} {%- endif %}
......
...@@ -135,6 +135,13 @@ mysql: ...@@ -135,6 +135,13 @@ mysql:
- database: bar - database: bar
table: foobar table: foobar
grants: ['select', 'insert', 'update', 'delete'] grants: ['select', 'insert', 'update', 'delete']
# User 'alice' will be allowed to connect to the server without password
# as long as she has access to the unix socket.
# This option forces allow_passwordless to be set to True
alice:
host: 'localhost'
unix_socket: true
nopassuser: nopassuser:
password: ~ password: ~
host: localhost host: localhost
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment