diff options
Diffstat (limited to 'scripts/git-integration/git-auth.py')
-rwxr-xr-x | scripts/git-integration/git-auth.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/git-integration/git-auth.py b/scripts/git-integration/git-auth.py index 8701d5e..801a1d3 100755 --- a/scripts/git-integration/git-auth.py +++ b/scripts/git-integration/git-auth.py @@ -12,6 +12,7 @@ aur_db_host = config.get('database', 'host') aur_db_name = config.get('database', 'name') aur_db_user = config.get('database', 'user') aur_db_pass = config.get('database', 'password') +aur_db_socket = config.get('database', 'socket') key_prefixes = config.get('auth', 'key-prefixes').split() username_regex = config.get('auth', 'username-regex') @@ -25,7 +26,7 @@ if pubkey is None or not pubkey.startswith(valid_prefixes): db = mysql.connector.connect(host=aur_db_host, user=aur_db_user, passwd=aur_db_pass, db=aur_db_name, - buffered=True) + unix_socket=aur_db_socket, buffered=True) cur = db.cursor() cur.execute("SELECT Username FROM Users WHERE SSHPubKey = %s " + |