From 35fa7b3989a7b9bebe19848bbd8b6056f758bccb Mon Sep 17 00:00:00 2001 From: Kevin Velghe Date: Fri, 1 Apr 2016 22:37:49 +0200 Subject: [PATCH 1/2] Implement libsecret password backend --- misc/userscripts/password_fill | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/misc/userscripts/password_fill b/misc/userscripts/password_fill index bc12e228b..fba09c78e 100755 --- a/misc/userscripts/password_fill +++ b/misc/userscripts/password_fill @@ -273,6 +273,28 @@ pass_backend() { } # ======================================================= +# ======================================================= +# backend: secret +secret_backend() { + init() { + return + } + query_entries() { + local domain="$1" + while read -r line ; do + if [[ "$line" =~ "attribute.username = " ]] ; then + files+=("$domain ${line#${BASH_REMATCH[0]}}") + fi + done < <( secret-tool search --unlock --all domain "$domain" 2>&1 ) + } + open_entry() { + local domain="${1%% *}" + username="${1#* }" + password=$(secret-tool lookup domain "$domain" username "$username") + } +} +# ======================================================= + # load some sane default backend reset_backend pass_backend From 2b2ab5268a2babfa019bbbd67a7b3c582f5e5257 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 4 Apr 2016 07:52:44 +0200 Subject: [PATCH 2/2] Regenerate authors --- README.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.asciidoc b/README.asciidoc index 11c0783b9..2a0ebc982 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -164,8 +164,8 @@ Contributors, sorted by the number of commits in descending order: * Nathan Isom * Thorsten Wißmann * Philipp Hansch -* Austin Anderson * Kevin Velghe +* Austin Anderson * Alexey "Averrin" Nabrodov * avk * ZDarian